Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Texture Rendering gets jumpy far away from the origin.

4: Adsense

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   

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!

#2 satnam   Members   

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.