Jump to content
  • Advertisement
Sign in to follow this  
derek7

terrain interpolating

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

here or just look: how to interpolate between the vertices? given every vertices height and x , z coordinate. I want to get the red line value. so my camera could walk on hill smoothly. [Edited by - derek7 on May 30, 2005 2:20:47 AM]

Share this post


Link to post
Share on other sites
Advertisement
What you're looking for is either cosine interpolation, or cubic interpolation, both of which can be found here. One thing to remember: it's one thing for the camera to sit on the curve, but other things (models, etc.) should too (hooray for things that sink into the ground!). ;)

Share this post


Link to post
Share on other sites
cosine interpolation is rather sucky. id stay away from it if i were you. for the record: there are infinitly many more other ways of interpolating, but id go with the cubic interpolation. it has everything youre looking for i bet.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!