Sign in to follow this  

convert altmetry points into heightmap

This topic is 4199 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 4199 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this