CameraPick, Terrain, and Heightmaps.

Blitz3D Forums/Blitz3D Beginners Area/CameraPick, Terrain, and Heightmaps.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I use camerapick to return a triangle from the terrain, does each triangle point correspond to a pixel in the heightmap? If I use the scale of the texture, and the position of the terrain, and the position of the triangle corner, can I reverse enginere to find which pixel in the heightmap represent that triangle corner?

Is there a one to one ratio between the pixels in the heightmap and the points in the terrain?