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 > Resetting the perspective

#143624 - NeX - Wed Oct 24, 2007 9:22 pm

Is there any way to undo all the glRotate(s) and all the glTranslate(s) and return the origin to 0,0,0? I've come up with something real hacky after a bit of messing around, and I'm not sure how it works. It crashes if I use it too many times a frame, though. Surely there's a hidden method of returning to 0,0,0 I've missed? The reason I'm asking is that if I reverse all the equations, not only am I losing a ton of speed, inaccuracies cause slight jitter.
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.

#143629 - Lick - Wed Oct 24, 2007 9:34 pm

glLoadIdentity()?
_________________
http://licklick.wordpress.com

#143631 - NeX - Wed Oct 24, 2007 9:36 pm

Thank you.
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.