🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Texture Rendering gets jumpy far away from the origin.

Started by
0 comments, last by satnam 13 years, 2 months ago
I've been creating something pretty similar to Lesson 10, and I've run into this problem where once I've moved far away from the origin (maybe thousands of units away), everything I render tends to be jittery whenever I rotate the camera.

When I was near the origin, moving the mouse to change the camera direction was very smooth, now it is all jaggedy.

I'm using double-point precision to calculate my rotations and then casting that to floating point for the glRotatef calls().

Anyone have any ideas as to what the problem is?

Thanks!
Advertisement
I think I figured out the problem. As I was progressively rendering further and further out, floating point translations accumulated error. I solved it by resetting the matrix more often.

This topic is closed to new replies.

Advertisement