Jump to content

  • Log In with Google      Sign In   
  • Create Account


Texture Rendering gets jumpy far away from the origin.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 satnam   Members   -  Reputation: 100

Like
0Likes
Like

Posted 04 April 2011 - 08:08 PM

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!

Sponsor:

#2 satnam   Members   -  Reputation: 100

Like
0Likes
Like

Posted 04 April 2011 - 08:25 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS