Oddlabs Forum

It is currently Fri May 24, 2013 12:36 pm

All times are UTC + 1 hour




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Realtime Procedural Terrain Generation
PostPosted: Tue Aug 21, 2007 3:33 pm 
Offline

Joined: Tue Aug 21, 2007 3:21 pm
Posts: 3
Hi everyone!

First I would like to congratulate the author of the Document "Realtime Synthesis of Eroded Fractal Terrain for Use in Computer Games". I learnt very much things.

So I started to generate my own heightmaps using technics presented on the document. Actually I'm generating heightmaps with the diamond square method, voronoi diagrams, pertubation filter and then thermal erosion. Generated heightmaps look good but when i render them in 3D, I have a huge "visual" problem.

Image
It's look like stairs...

I'm using double for heightmap's height value between 0..1. When I generate bitmaps, I multiply theses values per 255 to get the final color in greyscale so I cast my double as int. Maybe that's the problem.. If someone can help me, that would be great because I'm a bit lost this time :(

Tkx,

Mini


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 12:35 pm 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:34 pm
Posts: 71
Very nice render, it's always fun to see others actually implementing and using the stuff I wrote about :D

The reason why you get terraces in the renders are because you convert your heightmaps to bitmaps and thereby reduce the height resolution from a double to only 256 possible values. If you want to export heightmap data to another program in order to render an image, you will need some other format that retains the full resolution (or at least 16 bits or better per height point). When I wrote the paper, I didn't have this problem because I used the Tribal Trouble game engine to both generate and render the terrains.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 12:44 pm 
Offline

Joined: Tue Aug 21, 2007 3:21 pm
Posts: 3
Thanks a lot for your answer, now i know how i'll render my terrain :). I think I gonna use Alpha channel to store a 16 bits height value :). Thanks again :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 9:54 am 
Offline

Joined: Tue Aug 21, 2007 3:21 pm
Posts: 3
Hi!

Thank to your advice Jacob, I finally rendered my terrain without using a bitmap and that's pretty good now. I still have to smooth borders but it look nice I think :)

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group