Logo by Madman - Contribute your own Logo!


it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
Welcome, Guest. Please login or register. January 16, 2019, 04:03:26 AM

Login with username, password and session length

The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Pages: [1]   Go Down
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: diamond-square midpoint displacement algorithm  (Read 577 times)
Description: an algorithm from the 80s
0 Members and 1 Guest are viewing this topic.
Fractal Bachius
Posts: 563

« on: May 25, 2017, 05:52:50 PM »

I found this a good introduction to the diamond-square midpoint displacement algorithm for 2D terrain heightmap (or cloud texture) generation:


I implemented an extension to 3D.  C99 source code attached.

Here it is rendered in slices, thresholded with edge-detection on the histogram-equalized voxel space, perhaps could be useful for generative cave systems or similar worlds:

roughness factor 0.3

roughness factor 0.5

roughness factor 0.7

* diamond-square.c.txt (7.78 KB - downloaded 96 times.)
Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Displacement Renderings Images Showcase (Rate My Fractal) cKleinhuis 12 1940 Last post March 15, 2007, 09:43:43 AM
by cKleinhuis
Diamond-square algorithm help Help & Support kronikel 10 1405 Last post April 12, 2011, 02:11:06 AM
by kronikel
Problem with diamond-square algorithm Programming « 1 2 3 4 » kronikel 56 14968 Last post July 16, 2012, 10:50:15 AM
by setec
Spatial Displacement Mandelbulb3D Gallery lenord 0 241 Last post January 03, 2012, 02:56:37 AM
by lenord
Problem with my Diamond Square algorithm Programming mbob61 5 2321 Last post December 12, 2012, 12:17:35 AM
by David Makin

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.095 seconds with 27 queries. (Pretty URLs adds 0.007s, 2q)