Sign in to follow this  
bgilb

Seamless Terrain

Recommended Posts

Basically I want to create a fairly large terrain ( like the size of britain ) Anyway, what I was planning on doing was creating a big grid of heightmapped terrains. Of course I can't have them all displaying at once. So how would I go about making this work? I was planning on doing a visibility of 3x3 and just loading in new heightmaps/terrains as the player walked, but would the game spiked every time the new terrain is built?

Share this post


Link to post
Share on other sites
Yes, there's always going to be a performance hit when you start loading, not to mention you have to predict when the best time to load a section of terrain into memory would be. One option to lessen the visible blow to the frame rate would be to place the loading in another thread so it loads in the background without the player even realizing it.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
yeah i was thinking of doing that, i was also thinking of instead of deleting the old terrain and creating a new one, i would just translate the old ones into the correct position, and modify the height and color data, etc.

Share this post


Link to post
Share on other sites
That's an option. Another idea I've had on this in the past is to create the world out of many height maps tiled together, and use a quad tree for visibility.

You'll also want to think of the possibility of the player gazing into the distance. In that case, there's way too much data to render with a reason frame rate. So you'll have to setup LOD, and fix each height map to tile seamlessly with its neighbor even if they have differing LOD. Things in the far distance, though, can simply be rendered to a texture and displayed way out there.

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