Keyframe animation help

Started by
0 comments, last by Witchcraven 22 years, 6 months ago
I am rather new to OpenGL, and I was wondering how to implememnt keyframe animation. Thanks in advance
--------------------------I present for tribute this haiku:Inane Ravings OfThe Haunting JubilationA Mad Engineer©Copyright 2005 ExtrariusAll Rights Reserved
Advertisement
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!]

This topic is closed to new replies.

Advertisement