Cosmic Reef

Leo Villareal · 2022 · Curated

Radiating from a glowing core, fiery orange filaments streak outward like sparks or comet tails across a deep indigo and violet ground, overlaid with countless delicate white ring outlines. Energetic and cosmic, suggesting bursting plasma, neural firing, or fireworks frozen mid-bloom.
Leo Villareal · via Art Blocks ↗ · © the artist
Sample output of Cosmic Reef
Leo Villareal · via Art Blocks ↗ · © the artist
Sample output of Cosmic Reef
Leo Villareal · via Art Blocks ↗ · © the artist
Sample output of Cosmic Reef
Leo Villareal · via Art Blocks ↗ · © the artist

“A particular order can be found in deepest space, in our oceans and forests, and in all living things, including ourselves – a unified code producing endless variation. Gravity and cosmic winds shape star-forming nebulas into coral-like forms. Flowers self-organize in radial symmetry with signals hidden from the human eye. Stars are birthed, explode, collapse, and are reborn. Invertebrates move on the tides of oceans, signaling with ever-changing bioluminescence. Light bends time as events unfold in our own lives.” Cosmic Reef reflects on the ordered randomness in nature, capable of producing beauty and symmetry. The individual works begin with a simple geometry that becomes more complex through composed dynamic layers, each born of a combination of human control and computational chance. Leo Villareal creates intricate sculptures that speak to the underlying rules and structures of systems for both gallery and public settings. He is interested in exploring ways to express this through base units such as pixels and binary code. Villareal is most known for two monumental public artworks: The Bay Lights, a site-specific light sculpture that occupies the entire western span of the San Francisco-Oakland Bay Bridge, and Illuminated River, a series of generative light sculptures installed on nine bridges over the River Thames in London. CONTROLS: “Z”: Journey along the Z-axis Cosmic Reef is graphics intensive & requires a WebGL2-enabled browser.

How it works

The core is raymarching (SDF). By advancing light rays step by step through a 3D space expressed by a distance function to find the surfaces, it draws organic solids like coral or a nebula, pixel by pixel (a shader on THREE.js). True to the idea that gravity and cosmic wind shape interstellar clouds into coral-like forms, changing the SDF's shape parameters with the hash expresses a 'unified code and infinite variation' that runs through deep space, the undersea and life alike. The soft light and density peculiar to raymarching produce a different organism at every point.

Palette

Extracted from outputs · 8
#392a3c#53435a#675578#915c55#8d6b98#dd5ba7#fa80ef#b88958

Algorithms

Details

Tools
three.js
Runtimes
Browser (WebGL / GLSL), On-chain Deterministic
Movement
Long-form Generative Art
Medium
On-chain generative edition
Relations
released-on (2022-01) → art-blocks
Script hash
3e96c23e383e1a53932fcc47b936e585ded9b8a445e9830ac90455aef148ca4a
On-chain
ethereum · 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270 · #250

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

Autoscope
erik-swahn · 2024
Bokeh (lamps)
mpkoz · 2024
Bokeh
mpkoz · 2024
Cytographia
golan-levin · 2024
Melancholic Magical Maiden
emi-kusano · 2024
chaos comes with the summer haze
cole-sternberg · 2023
Divergence
loren-bednar · 2023
Funktor
erik-swahn · 2023

Last updated 2026-07-16