Saturday, November 20, 2010

Fractal Terrain Generation Using The Diamond-Square Algorithm

Continuing on with my experimentation with the fractal mountain range and Mandelbrot set I have set my eyes on generating a 3d fractal landscape with ambitions of moving onto a fractal planet.

 I have been tinkering with the Pyglet python library. Pyglet is a wrapper for the OpenGL (Open Graphics Library).

Shown below is my attempts at visualizing the result of a terrain generated from the diamod-square algorithm

First attempt. Has some obvious algorithm errors.

 Second attempt with a revised algorithm.

You can download the python code here.

No comments:

Post a Comment