Hi,
When I move the camera with gltranslatef of up towards 8.000 units the objects close to the camera (0.5 or so) is moving around a few pixels in random directions when I rotate the camera (using glrotatef). I tried using gluLookAt as well but that, as expected, didn’t have any influence.
The perspective near/far planes do not influence the jittering at all. I do not see it happen when only using translate (not rotating the camera).
As it’s not happening closer to the origin I’m guessing it is a precision issue, but the numbers aren’t really high so it might just be that I’m not thinking about something. I’d really not want to rewrite the engine to support several origins…
Any ideas?
Mike
EDIT: I improved it somewhat by creating my own modelview matrix and creating the forward/side vectors based on the relative eye/center position instead of the absolute positions. The multiply of the eye position still causes issues though, so the thought that it was purely caused by rotation wasn’t correct. It seems I’ll have to do a big rewrite…