PDA

View Full Version : A little help with this code


quddusaliquddus
03-19-2010, 08:35 PM
Hi :),
I am trying to implement the code here:

http://www.javaworld.com/javaworld/jw-08-1998/jw-08-step.html?page=2

in another language.

Ive set the initial roughness = 0.95 and initial LOD = 10

At each level of the diamond-square algorithm the roughness is recalculated to rough=roug*roughness

But the result looks nothing like a landscape. It has little pertubations throughout but no macroscopic features.

Zoomed out image:

http://img517.imageshack.us/img517/8379/95166269.jpg (http://img517.imageshack.us/i/95166269.jpg/)

How can I fix it so that the code creates landscapes with hills and plataus?

Thank you for your help.

sirpalee
03-20-2010, 08:02 PM
Have you tried to change the settings? Can you post your code?

CGTalk Moderation
03-20-2010, 08:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.