Volumetric Fern Frond Sheet
The Barnsley Fern β born from four probabilistic affine transformations β lifted from 2D into a curved 3D parabolic trough with recursive leaf-curling depth. Adjust the point density, switch palettes, and watch the fern take shape point by point.
The Mathematics
The Barnsley Fern is an iterated function system (IFS) β a collection of affine transformations applied repeatedly with probabilities. Starting from any point, the system "forgets" the starting position after a few iterations and converges to the fern's attractor.
fβ (main): x' = 0.85x + 0.04y, y' = β0.04x + 0.85y + 1.6 p = 0.85
fβ (left): x' = 0.20x β 0.26y, y' = 0.23x + 0.22y + 1.6 p = 0.07
fβ (right): x' = β0.15x + 0.28y, y' = 0.26x + 0.24y + 0.44 p = 0.07
z = β0.4Β·xΒ² + 0.15Β·sin(2Οv) (parabolic curl depth)
xβD = 1.5Β·xΒ·(1 + 0.2v) (horizontal spread widens with height)
Each point's 2D IFS coordinate (x, y) is mapped to 3D by bending the flat fern into a parabolic trough and adding a sinusoidal curl, giving the frond physical depth. The vertical position v also drives the color gradient from root to tip.
Interactive
Drag to rotate Β· Scroll to zoom Β· Right-click to pan Β· Use the sliders to change point density and palette.
Learning Objectives
- Define an iterated function system (IFS) and explain probabilistic map selection
- Identify the four Barnsley fern transformations and their roles (stem, main, left, right)
- Describe how 2D affine maps are extended into 3D via coordinate transformation
- Observe the relationship between point density and emergent structure
Teacher Notes
- The fern emerges gradually β start at 20k points and increase to 100k to show convergence
- Three palettes (Emerald, Bio-Luminescent, Autumn) don't change the math β only the color mapping
- Ask students: "Which map has the highest probability? Why does that make sense for a fern?"
- Connection to biology: real ferns exhibit approximate self-similarity across scales