convert altmetry points into heightmap

Started by
0 comments, last by mikeman 17 years, 10 months ago
Hey guys! In the system I am implemeting, I have to load a list of altimetry points. At first, I tried using Delaunay triangulation + tesselation. However tesselation is not uniform so I have faces of different size. However, I would like to have a heightmap. So how smoothing at specified step? Thanks for your help.
Advertisement
Here's a quick(and slightly crazy) solution: Render the mesh with orthographic projection, and use the y coordinate of the vertices to set the color. For example, if the maximum height is 100, you would do(in OpenGL):

glColor3f(vertex.y/100.0,vertex.y/100.0,vertex.y/100.0);

If you render that from the top and capture the image, you'll basically have the heightmap!

Of course, I imagine the proper method would be to cast a vertical ray from the specified point of the plane, find out which triangle it hits and where, and do an interpolation of the height values.

This topic is closed to new replies.

Advertisement