Procedural terrain generation progress

posted in Milcho's Journal
Published February 15, 2011
Advertisement
I've completed the start of the procedural terrain. You can download the test on my site here. I know not a lot of people read this, but if you are one of the few, and you decide to download it, I'd appreciate some feedback on how well it runs.

If you do download it, you can move with wasd, and holding down the right mouse button. There's no load screen right now, so initially, please wait and don't move until the terrain loads (~10-20 seconds). After that you can move as far as you want, and the program should generate the terrain around you.

On my two year old PC I get around 200fps, (bottom left corner). I can crank up the terrain resolution higher, and I can make visibility past 0.5km, but it will probably have a very adverse effect.

Right now, I use two layers for the different LODs. The high resolution (colored blue), is generated in close proximity to the camera. (it's colored blue for testing purposes), and everything else is the low resolution. I'm thinking, I might get better performance if I add a medium resolution, and decrease the low-resolution's sampling density.

Update: Added a third LOD, which means there's visibility of 1.5km now, and I actually gained a small speed boost in rendering.

Also added collision with terrain, which prevents the camera (and any future objects) to go inside the terrain. Since the terrain is density-function based, there is an actual 'inside', so collision isn't based on polygon intersection. The method I'm using also allows for both elastic and inelastic collision. It also has a nice side-effect that it's decoupled from the rendered polygons, allowing any object to collide properly without the need for the ground to be rendered at all at the object's location.

Updated version has replaced the old download.

Anyway, here's a screenshot. Though the best way to experience the procedural (theoretically infinite, though 'arbitrarily large' is a better term) terrain is to download the program from the link above.




terrtest01.jpg




New screenshots, with 3 LODs

terrtest02.jpg

terrtest03.jpgEdit: new screenshot. I might switch to a texture atlas, because 3d texturing has it's quirks. Alternatively I could make my own mipmaps for the 3d texture.

fullview.jpg

0 likes 3 comments

Comments

Giallanon
It runs smooth, between 650 and 800 FPS.

Intel core duo E8400 @ 3.00Ghz
4GB RAM
NVidia GeForce 8800 GT
Windows XP
February 16, 2011 09:31 AM
kiwibonga
Phenom II X4 955 @ 3.2 Ghz
4 GB RAM (DDR3-1600)
NVidia GeForce GTX 260
Windows 7

I'm getting a pretty constant 600-630 FPS with the latest (021611) version.

Nice job so far!
February 16, 2011 06:44 PM
MilchoPenchev
Thanks for the feedback to both of you, I wasn't sure how well it would run on other pcs, but that sounds like it's doing pretty well..
On another note, I should really get a new graphics card, my 8800GTS isn't doing as well as it once did.
February 16, 2011 07:33 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement