Subdivision examples

The examples in the table below are Java applets which calculate a 2 dimensional fBm fractal using midpoint subdivision methods on a square grid and display the results as images. No attempt has been made to define a sea level or color-code the image by altitude beyond simple grayscale. All the examples use wraparound in both directions, but this could be changed by extending the grid by one row and one column and removing the index wraparound checks. There is certainly lots of room for optimization and bells-and-whistles, but this source code should get you started.

Because of some problems when multiple copies of this applet are loaded on the same page in Netscape, and because I don't feel like tracking down the problem, the examples for each method have been moved to separate pages.

Standard subdivision
Diamond-square subdivision
Offset square subdivision

Up to subdivision methods Up to the fractal subdivision page

Back to my home page Back to my home page

© 1996 cburke@mitre.org


This page hosted by GeoCities Get your own Free Home Page


1