Sign in to follow this  

Landscape

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

hi i am working on an game with a very huge landscape i got at moment (200x200) segments of landscape and got 7x7 of them in memory, when leaving an imagineary border in the middle the missing parts are reloaded..thats ok but... is it better to render the whole landscape (7x7segments) as one mesh (with all tilings) or dividing the landscape in 49 single mesh (like they are loaded) and render only the viewable parts of it (a land_segment is 51x51vertices) what do you think is the better way? (next week i can show some screenshots) greetings Aragon

Share this post


Link to post
Share on other sites
Personally, I would noto suggest you use meshes to draw landscapes, but do them procedurally (ie, use math to generate vertices yourself). One of the problems with using meshes is that they are somewhat inefficient storing data, if you don't write your own loader.

Another benefit to generating your terrain is that you can modify it during run time, easily get specific vertex coordinates (makes life a heck of a lot easier for collision detection), and a couple of other bonuses.

Just my 2 cents.

Share this post


Link to post
Share on other sites
As far as drawing a large landscape goes you definately want to split it up into grids so you can quickly cull large sections of the terrain. Also if you plan on implementing some sort of dynamic level of detail stuff this griding is a must. Finally I'd render as much of the visible terrain as you can using tri strips. Insert degenerate tris to change the tri strip direction back and forth along a grid square so the entire section can be drawn with just the one long tri strip. Drawing a few degenerate tris is much faster than making a few seperate render calls for different tri strips.

Share this post


Link to post
Share on other sites

This topic is 4756 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.

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