Sign in to follow this  
derek7

terrain interpolating

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this