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.

Coding > Camera position with Dual 3D

#165132 - Aurelio - Wed Dec 10, 2008 8:06 pm

Hi, i'm new here but not in the ds development :).So this is my first problem: I'm using Dual 3D but i can't set the two cameras(one for each screen) to make the two screen like one big screen.How can i do that?
Thanks :)

PS:Sorry for the bad english, i'm from italy...

#165144 - DiscoStew - Wed Dec 10, 2008 9:29 pm

Imagine that you had 1 screen that was long height-wise instead of 2. When making a camera for something like that, you'd want the center of the camera to hit the center of that screen. Now, split that single screen in half to make what we have now with the NDS. To accomplish it now, you'll need two camera that are split from the main one you had previously, which now would look straight at the hinge of the NDS unit. Rotate the top camera up some, and the bottom camera down some.

I hope I'm not spouting gibberish, because I've never done this myself before. I'm only theorizing.
_________________
DS - It's all about DiscoStew

#165179 - Aurelio - Thu Dec 11, 2008 6:17 pm

mmm i don't understand...

#165180 - nanou - Thu Dec 11, 2008 6:32 pm

Try thinking about the 2 viewing frusta. You basically want to set one on top of the other so that they don't quite overlap. I'm due for sleep so this might be a bit off, but I think you'll have to offset the position of the second screen by a screen's worth, then angle it away by the viewing angle. You can probably work out the math on that fairly easily.

(Or, you can split down the middle and offset each camera by half, and angle away by half, to do it the way DiscoStew advises.)
_________________
- nanou