Jump to content
  • Advertisement
Sign in to follow this  
quddusaliquddus

Help with setting initial variables

This topic is 3014 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi :), I am trying to implement the code here: Java World: Fractal Landscape in VB.Net. My code: My Code 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: How can I fix it so that the code creates landscapes with hills and plataus? Thank you for your help. [Edited by - quddusaliquddus on March 20, 2010 9:09:53 AM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Anyone?
GDNet doesn't currently support BBCode, so you might edit your post to use HTML instead. (Yeah, I know it's lazy, but a lot of people - myself included - will often skip over posts with incorrect formatting and un-clickable links.)

Share this post


Link to post
Share on other sites
You need to add some lower-frequency data to the map in order to create "bigger" features.

Read up on "Perlin noise", that will give you ideas on how to proceed.

Plateaus are usually simulated by a response curve that flattens to horizontal on the topmost values. In reality, plateaus and ridges are formed by corrosion caused by water and wind as well as the irregular composition of the ground material itself, so for realistic results you might want to simulate that (at least statistically).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!