Jump to content
  • Advertisement
Sign in to follow this  
ArnoAtWork

convert altmetry points into heightmap

This topic is 4536 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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!