Hello. I am confused of how to use gluLookAt() properly.
For instance, why do I need to call glLoadIdentity() before calling gluLookAt()?
Or do I need to call that at all?
The reason I ask this is b/c I have a problem and here it is.
In the init(GLDrawable drawable) method I initialize the camera’s position with the gluLookAt method.
If I don’t ever call gluLookAt again elsewhere, then everything gets rendered properly; however, if I call gluLookAt again with the same parameters, then all the graphics that were previously on the screen disapear.
If I call glLoadIdentity before gluLookAt then stuff still disapears. I then tried to modify the z-axis of the camera position and I have to zoom like 10x out to get the polys looking the same as when it was first set.
So, any suggestions of how to use gluLookAt?
Thanks