3D Morph?

Blitz3D Forums/Blitz3D Programming/3D Morph?

hrm. can't you just loop through all the verts and position them at a point on the line between the target and the finish vert? to do this all you need to do is make a weighted average of the coordinates like this:

cx=(ox*(255-time)+nx*time)shr 8
cy=(oy*(255-time)+ny*time)shr 8
cz=(oz*(255-time)+nz*time)shr 8
this assumes time is between 0 and 255. the shr 8 effectivly divides by 256. c* is the current location, o* is the start vertex location, and n* is the final vertex location. If you want to say, blend between 3 or 4 mehs you could use bezier interopoloation instead of linear interopolation.