Stella-Dei
Stella-Dei copied to clipboard
Atmosphere with varied gases
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?
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.
Only thing missing before I close this issue is clouds (I already added them but they're not complete)
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