Original Post
Hi guys, I have a 2D height map of the form: float map(float x,float z); ...which simply returns the y-value at a specific point. What I want to do is collect map values along a path. I'd like to specify the path with nodes (x,z coordinates) and use cubic interpolation (in x and z) to move along it. It seems straightforward until I try to figure out which two nodes I'm in between so I can interpolate. It would be easy if x and z were increasing as I go along the path but I want circular/looping paths. Maybe I shouldn't use splines ? How can I do this ? Thanks.