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 > 2D & 3D Questions

#86821 - wickedtrickster - Fri Jun 09, 2006 4:21 pm

Hello,

When the main screen is initialized with 3D, it seems impossible to use the other background layer to draw graphics under or above the 3D layer. Is it correct or I'm missing something ?

Thank you,
Ben.

#86828 - Extreme Coder - Fri Jun 09, 2006 6:13 pm

Yep, that's right. You can use the other BGs for 2D.

#86897 - crossraleigh - Sat Jun 10, 2006 8:57 am

To answer the question more clearly, no, it's not impossible. You can use BG0_CR to assign a priority to the 3D rendering. Extreme Coder answered in the affirmative probably because he misread your post.

#87177 - wickedtrickster - Mon Jun 12, 2006 3:58 pm

I have tried to use BG0_CR to changed the priority to 1, allowing to have a layer over the 3D layer and another under. However, both layer under and over aren't displayed.

If I change the line

videoSetMode(MODE_0_3D | DISPLAY_BG1_ACTIVE | DISPLAY_BG2_ACTIVE);

for

videoSetMode(MODE_0_2D | DISPLAY_BG0_ACTIVE | DISPLAY_BG1_ACTIVE | DISPLAY_BG2_ACTIVE);

and comment the 3D code, then both layer under and above are displayed, so that's why I first though it wasn't possible.

If someone know an example which display 2D & 3D at the same time on the same screen (without the use of the capture register) I'll appreciate if you can post a link here !

Thank you,
Ben.

#87275 - Extreme Coder - Tue Jun 13, 2006 1:17 am

Well, by layer, I thought he meant BG. I did before try that idea and it worked(though i had some problems with priority and such) I will try to dig it up for you.

#87342 - wickedtrickster - Tue Jun 13, 2006 1:57 pm

Yes by layers I meant BG, sorry for the confusion.

#87642 - Sausage Boy - Wed Jun 14, 2006 10:04 pm

Are you trying on hardware or emulators? I'm pretty sure it doesn't work with dualis at least.
_________________
"no offense, but this is the gayest game ever"

#87668 - wickedtrickster - Wed Jun 14, 2006 11:37 pm

I'm doing everything on hardware :)