Jump to content
  • Advertisement
Sign in to follow this  
harminal

How to load continous terrain? Im talking WoW size here

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

Obviously if the whole terrain gets rendered it would take about 1 hour per frame>.>

also i dont want to keep reloading terrain every second as this would cause major lagg..

Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement
Split the terrain into manageable chunks (E.g. 100m x 100m) and then stream in the chunks potentially coming into view and free up the chunks going out of view.

Share this post


Link to post
Share on other sites
Hmmm yeah i get this however where do i load it? When the user is on the edge? I dont want the user to see an obvious lagg by walking back and forth

Share this post


Link to post
Share on other sites
The standard trick is to load a 3x3 grid of nine cells, with the player's current cell at the center. When the player leaves their current cell and enters a new one, you still have the width of one cell between the player and the unloaded terrain. Then you can start loading the terrain in the background and when done properly, the terrain loads before the player can see the edge of their current cell.

Share this post


Link to post
Share on other sites
quadtrees and LOD. You can start streaming at any point when the player is walking into the direction of the next terrain, break the stream if the player gets away from that area and begin streaming the new direction.

Share this post


Link to post
Share on other sites
fog also comes into play here as you make sure the player can't see beyond what they are supposed to be able to see,even if they are standing on a high mountain.

Share this post


Link to post
Share on other sites
Thanks for all the replies i think ill go with a 3x3 grid

Also does anyone have any tutorials about the quadtree crap just to get me started??
Cheers

Share this post


Link to post
Share on other sites
Quote:
Original post by harminal
Thanks for all the replies i think ill go with a 3x3 grid

Also does anyone have any tutorials about the quadtree crap just to get me started??
Cheers


Quad-Tree Crap

Share this post


Link to post
Share on other sites
I think you may find these thesis projects useful:

http://guildhall.smu.edu/Christopher-Jones.254.0.html

http://guildhall.smu.edu/Tyler-Robertson.295.0.html

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!