Jump to content
  • Advertisement
Sign in to follow this  
rikun

Object morphing using interpolation?

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

My professor assigned us a project to morph any object made of triangles to another object made of triangles in openGL. This is simple enough if we can just move the vertices to the target object vertices by moving it little by little to animate the morphing like the nehe tutorial on object morphing. But she said that we had to use interpolation rather than just moving them. Does anyone know what she means by interpolating? I know interpolation can be used for color and lighting, but I don't see how we can use it to move vertices.

Share this post


Link to post
Share on other sites
Advertisement
Interpolation is finding an intermediate value between two predefined values. In your case you have the starting object's coordinate data and the end object's coordinate data. In this case you could move the position of each vertex little by little towards its destination point until it reaches the destination point.

I think what your instructor was trying to convey when she said you can't just move the vertices is that the change has to be gradual like those images where bush slowly turns into Hitler.

[Edited by - CrimsonSun on June 6, 2007 11:30:13 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!