Jump to content
  • Advertisement
Sign in to follow this  
andrew_wardobe

Geomorphing and Geomipmaps

This topic is 4830 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

does anyone know of any resources for Geomorphing and Geomipmaps except the article here i've done search on google and i just find the same article has anyone implemented geomorphing ? if so how long did it take and was it an absolute knightmare to do so? i would be grateful of any resources andrew

Share this post


Link to post
Share on other sites
Advertisement
Geomorphing with geomipmapping is pretty easy if you are comfortable with programming vertex shaders. Basically, each vertex contains the lowest LOD in which it is present (if the LODs share vertexes) and its height in the next lower resolution LOD. Then in the vertex shader, if the vertex's LOD value is the same as the current LOD, you interpolate between the two heights.

Here's an example. Suppose the LOD is 5 but halfway to 6 (the higher the value, the lower the resolution). You pass 5.5 to a shader constant (Lod). For each vertex: compute an interpolation factor (clamping to 0 instead of using if): f = max( 0.0, Lod - lodvertex ). Then simply compute the interpolated height: h = f * ( hnext_lod-hvertex ) + hvertex.

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!