July 29th, 2024

Four billion years in four minutes – Simulating worlds on the GPU

A GLSL fragment shader simulation models four billion years of an earth-like planet's history in four minutes, illustrating geological, climatic, and biological processes, including human impact on the environment.

Read original articleLink Icon
CuriosityNostalgiaIntrigue
Four billion years in four minutes – Simulating worlds on the GPU

The article discusses a procedural earth simulation created using GLSL fragment shaders, capable of simulating four billion years of an earth-like planet's history in just four minutes at 60 frames per second. The simulation begins with the early earth as a molten protoplanet, generating terrain through a heightmap that incorporates asteroid impacts and craters using a layered approach with noise functions. Tectonic plate movements are simulated by randomly generating seed locations and allowing plates to grow and collide, leading to the formation of mountains and ocean trenches. Hydraulic erosion is modeled to create realistic river basins, while a simplified climate model approximates mean sea-level pressure (MSLP) and generates wind patterns and temperatures based on land and ocean interactions. Seasonal changes are incorporated to simulate dynamic climate patterns. The distribution of life is influenced by climate, with a Lotka-Volterra model capturing the interactions between vegetation, herbivores, and predators. As the simulation progresses, human activity is introduced, highlighting the impact of fossil fuel consumption on the environment. Over centuries, the burning of fossil fuels releases significant carbon emissions, leading to a dramatic increase in global temperatures and rendering large areas uninhabitable. The simulation effectively illustrates the complex interplay between geological, climatic, and biological processes over geological time scales, culminating in the rise and fall of human civilization.

Related

Structures discovered in the Pacific could change our understanding of Earth

Structures discovered in the Pacific could change our understanding of Earth

Researchers found unique structures in the Pacific Ocean challenging traditional beliefs about Earth's early history. Rock formations in South Africa and New Zealand suggest ancient seismic activities shaped the planet, potentially influencing the emergence of life.

Plate Tectonics May Occur on 0.003% of Planets and Be Key to Intelligent Life

Plate Tectonics May Occur on 0.003% of Planets and Be Key to Intelligent Life

Plate tectonics on Earth are deemed rare in the universe, impacting the evolution of complex life and civilizations. Research suggests their crucial role, reducing the probability of finding intelligent alien life.

Importance of plate tectonics for evolution and extraterrestrial civilizations

Importance of plate tectonics for evolution and extraterrestrial civilizations

Continents, oceans, and plate tectonics are crucial for complex life evolution and potential extraterrestrial civilizations. Proposed modifications to the Drake Equation address habitable exoplanet scarcity. Transition to modern plate tectonics accelerated complex life evolution.

The increasingly dominant role of climate change on length of day variations

The increasingly dominant role of climate change on length of day variations

Researchers found climate change affects Earth's Length of Day (LOD) through ice melting, impacting sea levels and oblateness. Trends show increasing climate-induced LOD and decreasing LOD due to Glacial Isostatic Adjustment. Projections suggest a significant rise in LOD rate by 2100. NASA supports this research.

The Physics of Cold Water May Have Jump-Started Complex Life

The Physics of Cold Water May Have Jump-Started Complex Life

Research by Carl Simpson suggests that frigid "Snowball Earth" conditions may have driven the evolution of multicellular life by increasing seawater viscosity, prompting single-celled organisms to form larger, coordinated groups.

AI: What people are saying
The comments reflect a diverse range of thoughts related to the GLSL fragment shader simulation of an earth-like planet's history.
  • Several users share personal experiences with simulations and models related to environmental and geological processes.
  • There are discussions about the technical aspects of the simulation, including the use of fragment shaders and potential improvements.
  • Some comments touch on philosophical ideas about simulated realities and their implications.
  • Users express curiosity about the music accompanying the simulation and speculate on its origins.
  • Overall, the comments highlight a blend of nostalgia, technical interest, and philosophical inquiry regarding simulations and their impact.
Link Icon 14 comments
By @noduerme - 9 months
Mm..cool but the last part where any civilization that has night lights would by definition burn all the fossil fuels and turn the place into a desert seems like an assumption based on only one possible trajectory of our own civilization, let alone all other possible alien civilizations. There's nothing to make death by warming and desertification any likelier than nuclear war or the development of clean fusion, or a plague or an invasion from another nearby procedurally generated earth-like planet.

Basically it's a cool sim when it's trying to simulate stuff that actually happened, and before it gets opinionated.

Moreover, it apparently equates heat with dryness, and also doesn't take into account the effect of additional CO2 on plant life. It is called a greenhouse effect for a reason. It's quite possible the equatorial belt could heat up to where it's uninhabitable by humans but overrun by jungle rather than desert.

By @kmoser - 9 months
Back in 1996/1997 I worked on a CD-ROM game that simulated movement of the tectonic plates, as well as temperature, elevation, and precipitation, over millions of years. Amazing to see how evolution (heh!) of computing hardware and software have come so far in 28 years: https://www.kmoser.com/evolution/
By @ahmadmk - 9 months
There is an excellent hard science fiction book called permutation city that very related to this topic…it made me feel like i was in a dream when i read this post’s title
By @disillusioned - 9 months
Only tangentially related, but the lovely (quite) short story "I don't know, Timmy, being God is a big responsibility" is fantastic and kind of hits on simulating worlds, in a sense:

https://qntm.org/responsibility

By @harha - 9 months
One of my favorite courses at university was energy policy analysis, where we played around with the EPPA model (developed at MIT) [0]. We made changes to certain parameters to see how things might work out, e.g. if cost of energy storage is reduced 10x.

Lots of fun, but I unfortunately never managed to find anything similar to do in my job.

[0]: https://globalchange.mit.edu/research/research-tools/eppa

By @reason-mr - 9 months
In truth, it must be said that some details were omitted by the simulation :)
By @o11c - 9 months
Not sure why, but all the shadertoy examples embedded in the page play at like 0.6 FPS for me. When I open the linked "final shader" on the shadertoy website I get 60fps just fine ...
By @shanxS - 9 months
Sometimes I wonder what it’d be like to live in simulated universe.
By @GardenLetter27 - 9 months
Why only fragment shaders? If you had vertex shaders for a heightmap too then you could zoom down to the surface.
By @swayvil - 9 months
>written entirely in GLSL fragment shaders

What's the language for that?

(The music is pretty cliche. Maybe it was written by AI)

By @niccl - 9 months
does anybody know what the music accompanying the full video was? It seemed familiar but I couldn't place it. Maybe AI generated?
By @paulddraper - 9 months
Worlds within worlds
By @Bluestein - 9 months
"Four seasons in one day / Laying in the depths of your imagination / Worlds above and worlds below / Sunshine on the black clouds hanging over the domain ..."
By @FredPret - 9 months
Today, a simple simulation at 60fps.

Tomorrow: "When you gaze long into the simulation, the simulation gazes back"