PDA

View Full Version : render a planet's atmosphere



vic_semionov
12-10-2003, 08:08 AM
can anyone point me to an article or tutorial on rendering an atmosphere around a sphere?
thanks

sebh
12-10-2003, 08:42 AM
You can do simple atmosphere by rendering a blended blue sphere with a larger radius over you earth.

very simple but not very realistic http://www.opengl.org/discussion_boards/ubb/frown.gif

EG
12-11-2003, 01:55 AM
Look for the "Earth" demo at http://sourceforge.net/project/showfiles.php?group_id=29749

Source (in Delphi) can be found at http://cvs.sourceforge.net/viewcvs.py/glscene/AdvDemos/Earth/

It uses some basic raycasting calculations, which are then used as vertex colors for an atmosphere mesh in real-time (an overlay actually). The raycasting and OpenGL rendering code is in the TForm1.GLDirectOpenGL1Render of Unit1.pas.

vic_semionov
12-11-2003, 09:19 AM
thank you guys