Sign in to follow this  
Tubos

Terrain LOD algorithm for a mostly static camera

Recommended Posts

Hi!

The camera in my game is static most of the time; sometimes it moves.


I'd like to render a medium-sized terrain. The camera can be at ground level or up in the sky. VRAM usage is important.

Which terrain LOD algorithm would you select for that?
SOAR is more CPU-intensive, but produces less triangles than geomipmapping. When the camera stays still, SOAR should perform better (since you don't have to do any processing and just render the pregenerated mesh).

For camera moves, SOAR would be less optimal. That is because the mesh must be created and uploaded to the GPU very often.


Any thoughts on that?

Share this post


Link to post
Share on other sites
[quote name='Tubos' timestamp='1310292420' post='4833277']SOAR is more CPU-intensive, but produces less triangles than geomipmapping. For camera moves, SOAR would be less optimal. That is because the mesh must be created and uploaded to the GPU very often.[/quote]Triangle counts obviously have some importance, but they're not the most important statistic at all these days.
Uploading a mesh as complex as a terrain from the CPU to the GPU is going to be quite costly. If you don't do it every frame, you could perhaps split the upload process over a few frames so the per-frame cost is lower...


Here's an interesting John Carmack quote from 200[b]6[/b], regarding ROAM/SOAR-type terrain LOD techniques:
[quote]That's one of those things that for years I think most of the research that's gone into has been wasted. Geometry level of detail on terrain.. there have been thousands of papers written about it, and I honestly don't think it's all that important. The way the hardware works, you're so much better off setting down a static mesh that's all in vertex and index buffers, and just letting the hardware plow through it, rather than going through and having the CPU attempt to do some really clever cross blended interpolation of vertices.[/quote]

Share this post


Link to post
Share on other sites
Terrain is pretty simple if you let it be. There are many techniques out there that make terrain extremely complicated. I think this is mostly due to people wanting to make themselves feel smart, so they invent some new way to do something that adds a 2% speed increase in rendering, but adds immense complexity --which in of itself will likely create a slowdown somewhere else in the program.

You can see how I did my terrain here http://nolimitsdesigns.com/game-design/terrain-how-to/

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