zenith391 / Stella-Dei

SimEarth-like sandbox game where you can make and develop your very own planet
https://zenith391.itch.io/stella-dei
GNU General Public License v3.0
40 stars 0 forks source link

Atmosphere with varied gases #2

Open zenith391 opened 2 years ago

zenith391 commented 2 years ago

Eventually, an atmosphere should be added which would interact with #1 by having organisms use CO2 to produce O2 and have reactions with other gases (deadly gases, etc.) The following gases should be implemented (more to come): Oxygen (O2), Carbon Dioxyde (CO2), Water Vapor (H2O)

zenith391 commented 2 years ago

Finally I came up with just having a single mass of gas for each point instead of using multiple pressures (with N extruded spheres), this is much simpler to use, think about, visualize, and also make algorithms faster. It's also decided Oxygen and Carbon Dioxide rates will be applied globally, to the whole planet, as winds and local pressures changes of Oxygen don't matter. This allows using less memory and less CPU time for simulating. Also allows to easily add similar gases like Nitrogen and potentially Sulfur.

zenith391 commented 2 years ago

Only thing missing before I close this issue is clouds (I already added them but they're not complete)

zenith391 commented 1 year ago

For clouds, I could mix them with a sliding noise map (voronoi? for clouds?) so that you get the illusion of moving clouds while also having it depend on the precipitation data. Best would be simili-3D using something like parallax mapping