I’m trying to work out a non-picking based terrain following system to see how it compares with using a picking based one. At the moment, my terrain is described by a grid of heights (doing the binary subdivision auto-generated terrain thing at the moment) and it’s looking fine but I can’t seem to accurately find the height of a point on the grid.
So if I am looking for the point at 0.7, 0.5 and my current height map is looking like this:
[ 1 ]----[2.5] | | | | | | | | [1.2]---[2.0]
How should I go about finding it?
The things I have tried seem to just come out wrong the whole time. Not necessarily very wrong, but wrong enough that it is noticeable.