How come the landscape demos written by Nicholas Anderson don''t show any disturbance in animation, although there''s no use of quadtrees/bsp trees/whatever? I wrote a small thingy based on this, but when rendering the viewport, the motion''s all jerky.
BTW: I posted a similar msg in the Game Programming forum, but didn''t get any (satisfying) replies, so maybe someone here knows more...
Tnx for any help
"There''s no such things as bugs; they''re just unintentional extra features"
It has to do with the number of vertexes being rendered, and the video card. Also rotating the scene with a high frequence , it drops several "moments". Like if you rotate the world or camera 0.15f is alot differant then 0.3f.
The problem''s like this: when I render the entire landscape, then move the camera (and rotate it), the motion''s smooth. As opposed to when I render only a portion of the landscape (the viewport) by looping through a selected number of vertices around a set of given coordinates, ''cause then the motion''s ''jerky''.
The amount of vertices is not constant anymore. That''ll cause some jerkiness. If all frames would be equally complex, but in number of vertices and in number of pixels drawn as well as the amount of calculations being done, you would get a perfectly smooth framerate (assuming your program is the only thing running). That kind of ideal situation doesn''t happen in real life, though. Therefore, you may want to make your app time-based instead of frame-based. That''ll mask the small variations in time you get a lot better.