Jump to content
  • Advertisement


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


Keyframe animation help

This topic is 6104 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

Take two equally sized sets of vertices, normals, and possibly texture coordinates (these can remain constant if you want). Then do something like this (this is linear interpolation, there are better looking methods):
for(int a=0; a<VertCount; a++) {
Inter[a] = Alpha[a] + ((Beta - Alpha) * Distance);

Of course, you can unroll that, and you need to do it for all the data sets you''re working on (the vertices, normals, et cetera). Then you just render the ''Inter'' data sets. Another easy method for interpolation is cubic interpolation. There''s another called something like Catsmul-Rom Spline interpolation, but it isn''t as easy.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!