Jump to content
  • Advertisement
Sign in to follow this  
Hiyar

Static Sparse Mask Textures

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

Hi, I'm rendering my terrain using a very similar approach as described in this paper Click (Just read Section 5.4. Terrain Rendering) For terrain texturing I'm using traditional approach: using detailmaps, colormaps and blendmaps. However this texturing approach is sometimes inflexible and memory consuming. I'm trying to understand how "Static Sparse Mask Textures" works. This is described at section "5.2.4 Static Sparse Mask Textures". I'm not native english speaker, I don't understand the idea. They say empty areas in the quadtree texture don't take up any memory. How do I store mask textures in a quadtree texture representation? And What exactly is an indirection texture?

Share this post


Link to post
Share on other sites
Advertisement
The atlas stores small (eg 32x32) UNIQUE tiles of your mask texture. Another textures, mapping to your terrain_coordinates, points into this texture for the actual mask values. This one is called the indirection texture.

The atlas only stores unique tiles, so empty (32x32 of black) will only show up once, hence the memory saving. This will have a big impact on the amount of texture sampling you need to do though (2x for a naive implementation, 5x in my worst case).

I found that a low resolution for my blend map, together with linear interpolation, works in my case.

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!