I now understand I should divide my map into triangles, and use barycentric coordinates to solve y. Should be OK now.
Hi all.
I'm working on a height-map project and have run into a brick wall, so thought I'd try here for help.
I have a map of 3D points or nodes. These are regularly spaced in 2 dimensions: x and z, but the y coordinate randomly varies.
What I want to do is to find the y coordinate of an arbitrary point anywhere between my nodes, assuming that the nodes are connected by straight lines to their neighbours.
eg.
say I have 4 points.
{0, 1.5, 0}
{10, 3.5, 0}
{0, 1.5, 10}
{10, 4.5, 10}
Can we find {5, y, 5} ?
Many thanks for any pointers.