Jump to content
  • Advertisement
Sign in to follow this  

Clipmap tile alignment

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

Wondering if anyone can help here, I've implemented a version of the clipmap terrain rendering article (from Hoppe, Microsoft). Using the GPU accelerated version (making use of vertex texture fetches). It's pretty much all 'done' except for two issues. And I'm currently trying to fix this one. My clipmap size is 255 units per tile (meaning the height texture is 255+1=256 pixels wide & high). The document describes:
The choice of grid size n = 2k−1 has the further advantage that the finer level is never exactly centered with respect to its parent next-coarser level. In other words, it is always offset by 1 grid unit either left or right, as well as either top or bottom (see Figure 2-4), depending on the position of the viewpoint.
Which I can appreciate, but I'm still having problems with this part. If I render all my tiles with no offset, there is a half-tile 'hole' around them. Which is as described and because the 'center' of the tile is in the middle of a tile rather than on a corner. But when I try shifting the tile based on the position of the viewpoint different tile layers begin to lie atop the next coarser layer. I think I've just been playing with this issue for so long my mind is missing an obvious solution :( Just wondering if anyone can give any input, thanks! Vas

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!