Thoughts on terrain part 1

Published June 07, 2005
Advertisement
I've been meaning to post something technically meaningful for a while now. As you might have noticed, my recent journal entries have basically been of a quality somewhere around the Lounge [grin]

I love terrain rendering, I've written at least 10 partial terrain engines. Usually each practiced a particular technique (e.g. texturing, shadowing, culling etc..) I also like to post my thoughts on the numerous threads that pop up about it in the forums.

My current work means I have no time to write code "for the hell of it" atm ([sad]), so I'll resort to thinking about writing it instead.

Anyway, I see terrain graphics in 3 parts

  1. Geometry contruction

  2. Things like heightmapping, (ir)regular grids, parametric surfaces etc...
  3. Landscape texturing

  4. How the terrain appears, things like the grass/rocks/dirt/snow distribution
  5. World/scene lighting

  6. Things like the sunlight, local lighting, shadows, per-pixel lighting etc...


I'm thinking that I'll cover my thoughts on these and-and-when. I've got loads of notes written up from the last few years, loads of printed articles (and saved digital ones) to read over.

Inspired by something someone posted on the forums recently, I've been thinking that dual heightmaps might rock in a big way.

I like regular height-maps a lot; they're dead easy to implement, dead easy to manipulate (for creating a landscape) and they fit a lot of very CPU/GPU friendly algorithms (good for performance etc..)

However, they aren't the best for artistic expression - no overhangs, no caves etc..

So, if we create a low-resolution heightmap (say 100x100) that just defines the general shape of the world. Then, for each quad that exists in the terrain, we apply a second heightmap that can have either positive or negative values.

This second heightmap is of a higher resolution (thus, giving us an overall good resolution).

This heightmap is offset based on the plane that the current quad creates; thus if the general shape of the world is a cliff/steep-slope you could create minor caves and overhangs.

There are still a few issues with this approach that I'm contemplating, but I think it could go a long way to being a good solution that's also friendly to the system it runs on (and the programmer writing the impl).

Anyone seen anything like this before?


One quick thing - anyone here like Coldplay? Awesome new album X&Y is out now, and they did a great live-set on Radio1 last night. You can "Listen again" to the show if you're interested (or if you were't in the UK to hear it). Recommended for any type of fan.
Previous Entry I'm old(er)
0 likes 3 comments

Comments

Daerax
As Darth Vader would say: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!1111111``121!!

Man!! I missed your birthday! Anyway, Happy Belated Birthday.


Oh and by the way, you have just brought down my wrath upon your person. I wish you the best of luck survivinig it.
June 07, 2005 07:52 PM
Daerax
You could also think about thinking about writing it.


I think I would enjoy such a thing. Wait a minute..I am supposed to be WRATHFUL!! I ORDER THEE TO CREATE SUCH, NOW! IF THY LIFE ART OF VALUE TO THEE.

There are not many good terrain rendering tuts for DirectX. And I need to know how to do this soon. I have to model fields. Step 1 and coloring is all I need, so get to work. Chop, chop now. What are you still doing over thurr? I SAID CHOP OR I WILL BE DOING SOME CHOPPING MYSELF IN A BIT!!!!1
June 07, 2005 07:56 PM
jollyjeffers
Quote:As Darth Vader would say: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!1111111``121!!

I'm not impressed. At least Darth made things shake/rattle (and roll?) around the room. Suppose it could've been a well timed earthquake.1

Quote:Man!! I missed your birthday! Anyway, Happy Belated Birthday.

Thank you [grin]

Quote:You could also think about thinking about writing it.

You have no idea how many times I had to read those 8 words before I understood them. I'm not that hungover today, but anything above basic motor skills is a little sketchy [sad]

Quote:I ORDER THEE TO CREATE SUCH, NOW! IF THY LIFE ART OF VALUE TO THEE.

Yes sir, right away sir.

I need some sleep.
Jack
June 08, 2005 03:49 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement