Petro National
John Gerrard · 2022 · Collaborations
196 nations and regions realised as gasoline spills on the world ocean. Centering on a generative thin film refraction algorithm each country and region in Petro National reflects its per capita annual consumption of petroleum, with low-consumption countries and regions manifesting a very thin spill leaning towards the blue green spectrum to high-consumption countries and regions being thick, lustrous and highly iridescent forms. Society consumes 100 million barrels of oil every day with radically differing patterns between global north and south. Each broad consumption category in the works encompasses different atmospheric, wave and sea colour traits which are further affected by the minting seed address. Petro National is a first webgl piece both online and onchain which extends my sustained work over two decades in game engines. These respond to historic intersections of energy and power. See Western Flag (Spindletop, Texas) 2017 as an example or visit johngerrard.net Each of the 196 generated worlds runs on local time as dictated by the time zone of its capital city. Night, day and seasonality will be experienced across the year in the work with long days in summer and short in winter. Countries and regions are openly allocated to collectors upon mint. These are spatial worlds - click and drag on the scene to look around. Press R on a keyboard to slowly rotate the camera, O / P to zoom. G for full screen in generator mode. For more information see : https://www.pacegallery.com/journal/john-gerrard-petro-national/ Production credits. Producer : Werner Poetzelberger, Programmer : Helmut Bressler.
How it works
The core is a thin-film interference fragment shader. Assuming a film of gasoline spreading over the sea surface, it reproduces with mathematics the thin-film interference where light wavelengths reinforce and cancel according to the film's thickness. A thin film becomes blue-green, a thick film a rich colour including red and violet, and an iridescent oil film is computed and rises per pixel. This thin-film model becomes a device that maps each of 196 countries and regions' per-capita oil consumption. A low-consumption country becomes a very thin blue-green film, a high one a thick, dense film, and the abstract figure of consumption is visualised as the colour and thickness of an oil film on the sea. Each country's value decides the expression of an oil film floating on the world's sea, at every point.
Palette
#000000#020302#020402#00501e#004737#000f14#0d1710#080f14#000507 #454d50#536a72#6f858a#93a8bb#6ba7bb#abcef1#e4e8d0#bac8b6 Algorithms
- Fragment Shader (GLSL) primary · classification: rule-based
- Raymarching with SDFs · classification: rule-based
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16