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 > gluLookAt?

#52595 - lobster - Thu Sep 01, 2005 5:53 am

how do gluLookAt() or gluLookAtf32() work?
i tried porting an old opengl demo i made for class to DS but the camera moves itself to (0,0,0) looking down the negative z-axis (0,0,-100) with the up in the positive y direction (0,1,0) no matter what i put in as arguments. as you can see, these are the defaults for gluLookAt(). i've tried using ints and floats in gluLookAt(), and converting to f32 with floatof32(n) for use with gluLookAtf32() and nothing is changed in each case.

#52664 - czc - Thu Sep 01, 2005 7:08 pm

I think values are between 0 and 1 or -1 and 1.

#52685 - mike260 - Thu Sep 01, 2005 11:08 pm

czc wrote:
I think values are between 0 and 1 or -1 and 1.


Be aware that glReset clears out the matrix stacks (iirc).