#98330 - Lick - Mon Aug 14, 2006 6:49 pm
Hey guys,
I'm trying to draw 3D objects (actually, they're textured quads) on top of the 2D drawn backgrounds and unsurprisingly, it does not work.
I have set BG0's (3D) priority to 0 and BG1's (2D) priority to 1 (tested 2, 3 also). However it seems like the 3D rendering is working correctly, but it overrides my 2D memory, as I get garbage image data but my map data still creates the 'shapes' of my tiled background.
So It's probably something with the VRAM, but what..
Has anyone successfully done this yet, by the way?
_________________
http://licklick.wordpress.com
I'm trying to draw 3D objects (actually, they're textured quads) on top of the 2D drawn backgrounds and unsurprisingly, it does not work.
Code: |
powerON(POWER_ALL);
videoSetMode( MODE_5_3D | DISPLAY_BG0_ACTIVE | DISPLAY_BG1_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_1D | DISPLAY_SPR_1D_BMP); videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE | DISPLAY_BG1_ACTIVE); vramSetMainBanks(VRAM_A_MAIN_BG, VRAM_B_MAIN_BG, VRAM_C_SUB_BG, VRAM_D_TEXTURE); vramSetBankF(VRAM_F_MAIN_SPRITE); |
I have set BG0's (3D) priority to 0 and BG1's (2D) priority to 1 (tested 2, 3 also). However it seems like the 3D rendering is working correctly, but it overrides my 2D memory, as I get garbage image data but my map data still creates the 'shapes' of my tiled background.
So It's probably something with the VRAM, but what..
Has anyone successfully done this yet, by the way?
_________________
http://licklick.wordpress.com