web icon indicating copy to clipboard operation
web copied to clipboard

Atmospheres

Open pablo-mayrgundter opened this issue 5 years ago • 14 comments

Could be bounded exponential fog to start with, but would like to use a good refraction model.

Found this:

https://stackoverflow.com/questions/31955731/how-to-make-an-atmosphere-using-threejs

But there's also the work of the guy at google for Earth/Maps:

http://www-evasion.imag.fr/people/Eric.Bruneton/ https://www.youtube.com/watch?v=0I7Af2Ev5iQ

pablo-mayrgundter avatar Dec 17 '20 04:12 pablo-mayrgundter

Bruneton work looks to require a refactoring to use three's shader system. Searching for alternatives, found this:

https://github.com/wwwtyro/glsl-atmosphere

Also has its own low-level gl system, but easier to read.

Was referenced from this huge list of gfx links: https://github.com/Gforcex/OpenGraphic

pablo-mayrgundter avatar Feb 16 '21 06:02 pablo-mayrgundter

https://github.com/wwwtyro/glsl-atmosphere

Have this shader integrated into a test threejs scene. Next up will be getting perspective right.

Here's some nice refs for that:

https://developer.nvidia.com/gpugems/gpugems2/part-ii-shading-lighting-and-shadows/chapter-16-accurate-atmospheric-scattering https://www.shadertoy.com/view/lslXDr https://stackoverflow.com/questions/28014922/is-it-possible-to-make-realistic-n-body-solar-system-simulation-in-matter-of-siz/28020934#28020934

pablo-mayrgundter avatar Feb 21 '21 07:02 pablo-mayrgundter

James Burke is open to using shared source for atmosphere and terrain on Mars Society VR work in 2021: https://youtu.be/5zG4F3a1BFM?t=168

pablo-mayrgundter avatar Mar 18 '21 19:03 pablo-mayrgundter

Maybe use https://github.com/THRASTRO/thrastro-shaders ? Demo: http://www.ocbnet.ch/thrastro-shaders/demo/demo-atmosphere.html And in case you didn't see it yet: https://www.ocbnet.ch/solsys-preview-latest :)

mgreter avatar Jun 22 '22 19:06 mgreter

Wow, solsys is very nice. Thanks for the pointer! Do you know who's working on it or where the code project is? I'm happy to collaborate!

And thx for the shader link too.. yeah, atmospheres and accurate orbits are top of my priority list, tho has been a while since I've had time.

pablo-mayrgundter avatar Jun 25 '22 09:06 pablo-mayrgundter

It's all my work (started about 7 years ago) and unfortunately I haven't yet made it to publish all the code. But some parts are already on GitHub (the shaders being the latest part that I published). Others are:

https://github.com/mgreter/astro.js https://github.com/mgreter/ephem.js https://github.com/mgreter/three.app

mgreter avatar Jun 25 '22 15:06 mgreter

Oh cool :) Well, astro looks like something I could use right off. I'll take a look next time I have a coding session!

I actually work in Zurich sometimes. I'd love to get coffee... I'll say Hi on twitter.

pablo-mayrgundter avatar Jun 25 '22 16:06 pablo-mayrgundter

Hi again! Your twitter DMs are disabled for me. I'm in Zurich for the month. Would you like to meet and talk code sometime?

pablo-mayrgundter avatar Jul 10 '22 15:07 pablo-mayrgundter

This would be amazing:

"THOR is the first open-source general circulation model (GCM) developed from scratch to study the atmospheres and climates of exoplanets, free from Earth- or Solar System-centric tunings"

https://arxiv.org/abs/1911.13158.. one of https://github.com/exoclime

pablo-mayrgundter avatar Aug 13 '22 21:08 pablo-mayrgundter

Earth simulation foundation models, starting with weather

https://news.ycombinator.com/item?id=41556519

pablo-mayrgundter avatar Sep 16 '24 16:09 pablo-mayrgundter

https://x.com/garrettkjohnson/status/1866841923551629496

pablo-mayrgundter avatar Dec 12 '24 08:12 pablo-mayrgundter

Beautiful video of Earth from space with HDR, specular, Sun flare

https://x.com/Firefly_Space/status/1889423587141960148

https://x.com/Firefly_Space/status/1889780978110927332/photo/1

pablo-mayrgundter avatar Feb 11 '25 21:02 pablo-mayrgundter

https://x.com/Firefly_Space/status/1900541456621637763

pablo-mayrgundter avatar Mar 14 '25 13:03 pablo-mayrgundter