gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Rotation backgrounds + sprites

#44413 - Pacifist - Wed Jun 01, 2005 3:43 pm

I haven't read anything that suggests sprites and rotation backgrounds can't be displayed at the same time but I can't make it happen.

The simplest example of my problem is when modifying the ndslib 256_color_bmp example.

I'f I change

Code:

videoSetModeSub(MODE_0_2D | DISPLAY_BG3_ACTIVE);

vramSetMainBanks(VRAM_A_MAIN_BG_0x6000000, VRAM_B_LCD,
                     VRAM_C_SUB_BG , VRAM_D_LCD);


to

Code:

   videoSetMode( MODE_1_2D |
               DISPLAY_SPR_1D_LAYOUT |
               DISPLAY_SPR_ACTIVE |
               DISPLAY_BG3_ACTIVE );

    vramSetMainBanks(VRAM_A_MAIN_BG_0x6000000, VRAM_B_MAIN_SPRITE,
                     VRAM_C_SUB_BG , VRAM_D_LCD);



I just get a flat grey screen.

Anyone else have similar problems?

#44420 - Darkain - Wed Jun 01, 2005 5:58 pm

Pacifist wrote:
I'f I change
Code:
videoSetModeSub

to
Code:
videoSetMode

I just get a flat grey screen.

_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS

#44424 - Pacifist - Wed Jun 01, 2005 6:29 pm

ah thats actually bad copy and pasting, I did set the proper screen mode. Although I've discovered my problem: I set it to mode 1

I'm trying to use normal rotation backgrounds instead of extended rotation backgrounds. I'll just swap to mode 3 instead of mode 1

sorry about that.