Stella-Dei icon indicating copy to clipboard operation
Stella-Dei copied to clipboard

Atmosphere with varied gases

Open zenith391 opened this issue 2 years ago • 3 comments

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)

  • [ ] Implement gases with pressure represented as N extruded spheres at different levels of altitude (N is to be determined)
  • [x] Add Oxygen
  • [x] Add Carbon Dioxyde
  • [x] Add Water Vapor
  • [x] Add an optional visualisation of those gases pressure (similar to the way we can see the surface's temperature by pressing middle mouse)
  • [ ] Clouds?

zenith391 avatar Apr 08 '22 09:04 zenith391

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 avatar Jun 14 '22 17:06 zenith391

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

zenith391 avatar Jul 17 '22 13:07 zenith391

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

zenith391 avatar Oct 09 '22 19:10 zenith391