WEELY PROJECT -6-

DON'T FORGET TO PUT "loops.raw" and "tube.rar" WITH YOUR XBE...ELSE IT WILL JUST CRASH!

MORPHING

  p(t) = p0 + t(p1-p0)

  Linear KeyFrame Animation Formula!

  I've kept this code to an absolute minimum, as I think that sometimes people can
  get lost very easily with the concept of keyframe animation, especially if your
  new to c and c++ as well!
  The thought of equations and algebra along makes people cringe..or scream..Arrgg

  Well we load in two chapes using our ReadVerticesFromFile(..) function, once
  at the beginning.  Then using our interpolation equation from above we merge
  the two shapes back and forth!

  Now the effect I amit could be so much cooler...it would look movie realistic if
  we had used an array of verts and an index into it for our faces.
  As if we'd used an index into an array..each triangle would share its vertices
  with the triangle next to it, so the shape would in effect remain hole, instead
  of each triangle making its own way and giving that slight breaking up/explosion
  effect...which is still cool!

  Also, if you'd add lighting and colour..it would be even better.

  It might also give you an idea of how to create an explosion effect?..hmmmm


Well happy coding.

Ben_3D


Ben_3D@xfatordev.net