Sign in to follow this  
danromeo

[.net] "endless" terrain - visible edges

Recommended Posts

I'm working on a project that will use an enormous terrain generated from heightmaps, so I want to divide that terrain up into squares and only load the squares that are immediately visible by the viewer into memory. The problem is that even with "seamless" terrain, the edges of the squares are visible unless the height values for any two adjoining edges are identical, because no faces are created to span the difference in height between the two edges. I suppose that when I set the height values from the heightmaps I could check for vertices that are on the edge of a square and change it's height value to equal the heightvalue of it's counterpart vertice on the adjoining edge, but there must be a better way. I would be interested in any articles, tutorials, ideas, techniques, how-to's, or other resources for accomplishing this. Thanks.

Share this post


Link to post
Share on other sites
This sounds like it is mostly a problem from the source data in the way you create your heightmaps. What I would do besides rigging the engine to deal with imperfect data is create a preprocessing tool. If you have all these heightmaps in seprate files what this tool would do is load a neighborhood of tiles and average or smooth over the edge boundaries and then reoutput the individual heightmaps.

Share this post


Link to post
Share on other sites

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