Archived

This topic is now archived and is closed to further replies.

Smoooth question!

This topic is 5625 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I just finished a 2D Engine using Time-Based modeling. I want to know if it''s normal that Time-Based animation is not as smooth as a simple position increment per frame (I mean, adding 1 pixel to sprite position each frame). It seems to "blink", but it''s pretty good anyway. Just want to be reassured. Regards TeraZen [Order of the Arvida Hand] [Last of the Returners]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Can u guys tell me what is anti-aliasing? Btw I''m using directdraw...

And what you mean by "accumulation buffer"? I''m currently using a float to store Sprite Position, and round it when needed. My sprite position is:

position = position + ElapsedTime * Velocity

Is that what you mean?

Thanks!

Share this post


Link to post
Share on other sites
Make sure you get the elapsed time with high-precision timers (see my sweet snippet from ages ago on frame-rate independent motion) and not with timeGetTime. timeGetTime is in milliseconds but is really only accurate to 30-50 or so milliseconds (not enough for high frame rates to work well).



~BenDilts( void );

Share this post


Link to post
Share on other sites