#72877 - FireSlash - Wed Feb 22, 2006 7:28 am
I need a 2d text layer on my 3d screen.... but I'm noob :P any help? Heres my screen setup
Code: |
videoSetMode(MODE_0_3D);
//vramSetBankA(VRAM_A_TEXTURE);
videoSetModeSub(MODE_5_2D | DISPLAY_BG2_ACTIVE | DISPLAY_SPR_ACTIVE | DISPLAY_SPR_2D_BMP_256);
SUB_BG2_CR = BG_BMP16_256x256;
SUB_BG2_XDX = 256;
SUB_BG2_XDY = 0;
SUB_BG2_YDX = 0;
SUB_BG2_YDY = 256;
SUB_BG2_CY = 0;
SUB_BG2_CX = 0;
vramSetMainBanks(VRAM_A_TEXTURE, VRAM_B_TEXTURE, VRAM_C_SUB_BG, VRAM_D_SUB_SPRITE); |
_________________
FireSlash.net
#74195 - silent_code - Fri Mar 03, 2006 12:55 pm
sorry i can't answer your question... i just have the same problem :(
i really didn't try it, yet, but it should be doable. at least with screen capture and a mode switch (not a good soultion, i suppose). hope someone figured it out and posts some ideas...
greetz
#74386 - Payk - Sat Mar 04, 2006 11:28 pm
hhmh is just a print problem or...u cant even display sprites--i f i remember right that 3d modes are 3d only... so i think no sprite no bg no printf....but i hope is not like that...
#74395 - tepples - Sun Mar 05, 2006 12:34 am
Payk wrote: |
i f i remember right that 3d modes are 3d only... so i think no sprite no bg no printf |
Hardly. The 3D layer just replaces BG0.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#74502 - silent_code - Sun Mar 05, 2006 2:10 pm
jupp, depending on the mode, there are different other bgs (if i remember correctly) and one can use them for prints... though i have no clue how to init it... any ideas? someone?
#74509 - Payk - Sun Mar 05, 2006 2:46 pm
ahhh so if i use a other bg layer i can see drawen on it? i mean layer 0 is nearest so if i use layer 1 to map 2d graphics it should be behind 3d scene... do u think its seeable?
#74527 - tepples - Sun Mar 05, 2006 5:44 pm
Payk wrote: |
ahhh so if i use a other bg layer i can see drawen on it? i mean layer 0 is nearest |
Aren't there "background control" words that can send background 0 to the back of the stack?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#74529 - Sausage Boy - Sun Mar 05, 2006 6:19 pm
I'm pretty sure you can set priority on the backgrounds, check the libnds defines.
_________________
"no offense, but this is the gayest game ever"