Jump to content
  • Advertisement
Sign in to follow this  
MatrixCubed

Progressive Traversal

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

Hello all, I'm working on a progressive-map-traversal scheme, and am just in the beginnings of research on the best way to accomplish it. In short, a subset-array of a potentially huge array of map heights is used to generate "surrounding" terrain. Camera traversal causes dynamic loading of other map data dependent on the direction in which the camera travels. The visible grid data itself is not terribly complex, however. Each grid poly is a simple shaded, multitextured polygon. What my scheme needs to be able to accomplish, is how to dynamically add/delete the grid tiles. I've come up with the concept of using an STL list to store one set of tile data per grid-'node', and calculate each frame the distance from the camera. - If the tile falls outside this distance, it is removed from view. - If the camera/player traverses the map such that a 'hole' would be created, the appropriate tile must be loaded from disk cache, and a tile must be generated replete with normals for shading, dependent on surrounding tiles. Problem with this is the STL list; it reeks of performance problems. I'd like to use a faster method of rendering than immediate mode, but since the terrain can change almost every second, it would seem faster in the long run to concentrate on this rendering method. If anyone can suggest a better method of doing this, I'll be the happier ;)

Share this post


Link to post
Share on other sites
Advertisement
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!