Jump to content
  • Advertisement
Sign in to follow this  
Merick Zero

polygon morphing

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

I know this is probably a simple graphing problem, but it's been so long since I've had to use any of this that what I remember from my high school math classes has gotten kinda fuzzy and I'm not really sure where to begin to look for an answer. I've got a table that's basically just a list of x,y coordinates. When I pass this table to my polygon drawing function it goes through the list and draws a line from one point to the next, connecting back to the first point when it reaches the end. What I'd like to do is make a function that can take two of these tables and display an animation of the first polygon morphing into the second. For example, if one table had the first point at x1,y1 and the other had the first point at x2,y2 how could I find the location of the point for the current animation frame based on the max number of frames?

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!