How about playing with Titan's atmosphere parameters!?

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

How about playing with Titan's atmosphere parameters!?

Post #1by t00fri » 13.09.2006, 19:10

Yes, Titan is a great testing ground for Chris' new
atmosphere code. Is it flexible enough for Titan?? How
do we have to adjust the various parameters?

Let's go and play a bit! Here is the place to report
success ;-)

Of course, I played already, but I don't want to report
success, YET...

Bye Fridger

PS: Here is a summary of the meaning of the 6 new
atmosphere parameters that Chris gave in the
developer list:


Chris wrote:There are six new parameters for atmospheres:

Mie
A float value giving the fraction of light scattered per kilometer at the planet's surface ('sea level')

MieAsymmetry
Henyey-Greenstein phase function parameter for wavelength independent scattering. A floating point value between -1 and 1, with -1 indicating complete backscattering, 1 complete forward scattering, and 0 isotropy.

MieScaleHeight
Scale height for wavelength independent scattering particles. Height in kilometers at which wavelength independent scattering is 1/e of the value at the surface

Rayleigh
Wavelength dependent scattering coefficients. Three values giving fraction of red, green, and blue light scattered per kilometer at the planet's surface. To simulate Rayleigh scattering, they should be in ratios that fit the 1/wavelength^4 behavior, though this is not required.

RayleighScaleHeight
Scale height for wavelength dependent scattering. Currently ignored; MieScaleHeight is used for both Rayleigh and Mie scattering.

Absorption
Three values giving the fraction of red, green, and blue light absorbed per kilometer at the planet's surface.


I may introduce a separate scale height for absorption, though this extra flexibility will cost some performance.

There are lots of limitations with the current code because of the limited accuracy of the integration that is done per vertex. I'm working on this and on improving the performance.

Following are the values that I'm using for Earth right now. If you add them to the Atmosphere definition for Earth in solarsys.ssc, you'll be able to see the new rendering code in action:

# -------------------
Mie 0.001
MieAsymmetry -0.15

Rayleigh [ 0.001 0.0025 0.006 ]
Absorption [ 0 0 0 ]

MieScaleHeight 12

# --------------------


--Chris


Here is a set of parameters that e.g. I use for Earth

Code: Select all

    Atmosphere {
      Height 60
      Lower [ 0.43 0.52 0.65 ]
      Upper [ 0.16 0.37 0.74 ]
      Sky [ 0.40 0.6 1.0 ]
      Sunset [ 1.0 0.6 0.2 ]     
      Mie 0.0005
      MieAsymmetry -0.15
      Rayleigh [ 0.00025 0.0009 0.0015 ]
      Absorption [ 0.00018 0.00005 0.0 ]
      MieScaleHeight 18
      CloudHeight 7
      CloudSpeed 65
      CloudMap "earth-clouds.dds"
   }
Last edited by t00fri on 13.09.2006, 22:46, edited 1 time in total.
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 13.09.2006, 19:46

It may be difficult to make Titan's atmosphere look right until I make some adjustments to the code. But, people should by all means experiment.

--Chris

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #3by Fightspit » 13.09.2006, 19:52

I find a interesting website about atmosphere rendering but I don't know if it can help you to improve the new atmospheres in Celestia.

Code: Select all

 SilverLining?„? is a C++ library for real-time sky and 3D cloud
rendering, suitable for use in games and visual simulation
applications on the Windows platform.

-  Real-time 3D, lit clouds
-  Rendering of the sky for any simulated time and location
-  Tone-mapped lighting for use in realistically lighting outdoor scenes
-  Accurate ephemeris and rendering for sun, moon, stars, and planets
-  Cellular automata-based cloud growth model
-  Support for OpenGL and Direct3D based applications on the
   Windows platform

SilverLining?„? combines Sundog Software?„?'s experience in real-time graphics solutions with extensive research in cloud formation, astronomy, and the scattering of light through Earth's atmosphere and inside of clouds. The result is an off-the-shelf library that embodies three man-years of research, coding, testing, and optimization.
SilverLining?„? is written with portability in mind. Contact us for
information on solutions for console programmers, offline rendering,
and support for Linux or MacOS platforms.


Look here 8) :
http://www.sundog-soft.com/
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #4by t00fri » 13.09.2006, 19:57

Here is the NASA comparison of Titan's vs Earth's atmosphere composition and radial extent. Not the difference in altitude (factor of ~10!!)

http://saturn.jpl.nasa.gov/multimedia/i ... ageID=1105

Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #5by t00fri » 13.09.2006, 20:54

OK, here comes some first little success when I
reproduced that beautiful atmospheric "ring of
light"
around Titan from this great June 2nd
Cassini photo
(http://photojournal.jpl.nasa.gov/jpeg/PIA08211.jpg)

Image

after substantially adapting Titan's atmosphere
according to the scientific data and some physics
considerations.

Here is what Celestia CVS comes up with on June 2nd,
0:01:56 UT:


Image

Image

Enjoy,
Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #6by t00fri » 13.09.2006, 21:39

Unfortunately...

With the much higher atmosphere height (~450km) than
in case of Earth (~50km) , there is once more a host of
/geometrical/ artefacts showing up in the LOWER
atmosphere. Like black triangles suddenly appearing on
the rhs of the display or black sections or black belts
between different layers...
Image

In short that code is still quite buggy.

Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #7by t00fri » 13.09.2006, 21:50

On the positive side again: The Titan sky with the low sun as seen from the surface...

Image

Bye Fridger
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #8by chris » 13.09.2006, 21:51

t00fri wrote:Unfortunately...

With the much higher atmosphere height (~450km) than
in case of Earth (~50km) , there is once more a host of
/geometrical/ artefacts showing up in the LOWER
atmosphere. Like black triangles suddenly appearing on
the rhs of the display or black sections or black belts
between different layers...
Image

In short that code is still quite buggy.

Bye Fridger


Fridger,

Can you post the atmosphere parameters that you were using?

--Chris

Johaen
Posts: 341
Joined: 14.01.2006
With us: 18 years 10 months
Location: IL, USA

Post #9by Johaen » 13.09.2006, 21:56

t00fri wrote:Here is what Celestia CVS comes up with on June 2nd,
0:01:56 UT:


I assume these screenshots are taken with Ambient Light set to low or medium? That's what it looks like to me atleast. The back side of Titan seems to be fairly well lit. I'm curious what it would look like without any ambient light, to better represent real life.
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #10by t00fri » 13.09.2006, 22:00

chris wrote:Fridger,

Can you post the atmosphere parameters that you were using?

--Chris


Certainly, but they are still /partly/ rather crazy ;-) but partly NOT.

Code: Select all

   Atmosphere {
      Height      500
      Lower       [ 0.477 0.367 0.211 ]
      Upper       [ 0.96 0.805 0.461 ]
      Sky         [ 0.3 0 0 ]
     
      Sunset [ 1.0 0.6 0.2 ]     
      Mie 0.0005
      MieAsymmetry  -0.15
      Rayleigh [ 0.0005 0.0009 0.0085 ]#[ 0.00025 0.0009 0.0015 ]
      Absorption [ 0.0005 0.0009 0.0085 ]
      MieScaleHeight 200# 18
      CloudHeight 220
      CloudSpeed 65
      CloudMap "titan-clouds.*"
   }


Yet, as you will see, the /basic/ imaging data are already roughly matching. Yet the graphics is still not good e.g. for the outer atmosphere (too sharp) yet the colors are fine:
http://photojournal.jpl.nasa.gov/catalog/PIA06236

Image


Bye Fridger
Last edited by t00fri on 13.09.2006, 22:04, edited 2 times in total.
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #11by t00fri » 13.09.2006, 22:02

Johaen wrote:
t00fri wrote:Here is what Celestia CVS comes up with on June 2nd,
0:01:56 UT:

I assume these screenshots are taken with Ambient Light set to low or medium? That's what it looks like to me atleast. The back side of Titan seems to be fairly well lit. I'm curious what it would look like without any ambient light, to better represent real life.


I had to turn it slightly on in order to make the Saturn rings well visible. But the settings are quite low. The "ring of light" looks much better without ambient light.

Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #12by t00fri » 13.09.2006, 22:19

The "ring of light" data above clearly show that the
MieAsymmetry must become more negative like e.g.
-0.8. Then we get an amazing outer glow due to enhanced backscattering (which would be 100% at -1)!

This is for MieAsymmetry -0.8

Image

Bye Fridger
Image

phoenix
Posts: 214
Joined: 18.06.2002
With us: 22 years 5 months
Location: Germany - Berlin

Post #13by phoenix » 13.09.2006, 22:28

you also don't need to be extremely low to see those artifacts with the new atmosphere.

along with fridgers titan-data try:
cel://SyncOrbit/Sol:Saturn:Titan/2007-0 ... 871&lm=514

and move up and down from titans surface using home&end -keys or mousewheel.
that truely looks like some clipping error
most recent celestia win32-SVN-build - use at your own risk (copy over existing 1.5.1 release)

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #14by Malenfant » 13.09.2006, 22:36

I don't suppose there are any colour Cassini images available of Titan with its "ring of light". I don't know if there is an image sequence with the right filters to combine... I'm just wondering if it'd really be blue like that top image.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #15by t00fri » 13.09.2006, 22:42

Malenfant wrote:I don't suppose there are any colour
Cassini images available of Titan with its "ring of light". I
don't know if there is an image sequence with the right
filters to combine... I'm just wondering if it'd really be
blue like that top image.


Probably it's more like the lower image in color with a
large backscatter component. The top ring of light was
just from the start-up phase of playing with sensible
parameters. Color images would be highly revealing,
indeed.
Last edited by t00fri on 13.09.2006, 23:15, edited 1 time in total.
Image

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #16by Malenfant » 13.09.2006, 22:51

t00fri wrote:
Malenfant wrote:I don't suppose there are any colour Cassini images available of Titan with its "ring of light". I don't know if there is an image sequence with the right filters to combine... I'm just wondering if it'd really be blue like that top image.

Probably it's more like the lower image in color with a
large backscatter component. The top ring of light was
just the start up phase of playing with sensible
parameters. Color images would be highly revealing,
indeed.


Yeah, I didn't see that lower pic till after I posted, looks a bit more accurate. If I have time I can see if I can find any colour cassini ones. Or maybe even Voyager, that'll do just as well.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #17by t00fri » 13.09.2006, 23:02

Never mind here is what we are looking for!

Image

Matt McIrvin (whom we know also as a Celestian) did it:
http://mmcirvin.livejournal.com/179356.html?mode=reply

+++++++++++++++++++
a color composite he made from some of the full-disk images. This was taken entirely in visible light.
+++++++++++++++++++

This is going to be a MOST important constraint for my paramter adjustments. [Yet these raw filtered BW images are usually unnormalized...]
Image

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #18by Malenfant » 14.09.2006, 00:09

oh goodie, that's definitely useful.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #19by t00fri » 14.09.2006, 09:28

Here is another one from Voyager 2 that is in qualitative agreement (colorwise) with Matt McIrwing's composition from Cassini imaging above:

http://photojournal.jpl.nasa.gov/catalog/PIA01393
Image


I found that image in a very interesting respective Nature article for which members of my laboratory have online read permission. Unfortunately, for reasons of Copyright, I cannot make the paper available in public.

There is also a hires version of the Voyager 2 image that I cannot display. It has a purple blue outer (and inner component as well)

The reference is

Code: Select all

FIGURE 2. Ring around Titan.

From the following article:
Planetary science: Smog report
Robert E. Samuelson
Nature 418, 833-834 (22 August 2002)
doi: 10.1038/418833a


I should also note that with our new atmosphere code, the ring's color composition varies as function of the angle of view, relative to the sun. That also makes sense physically. Since the view is somewhat different in the two above images, they might thus be perfectly compatible with each other!



Bye Fridger
Image

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #20by t00fri » 14.09.2006, 10:49

Here is another striking backlit, natural color image. Unfortunately without reference to the original

Data are

as seen from approximately 107,000 km on December 13, 2004:

http://uplink.space.com/showthreaded.ph ... 5&o=0&vc=1

And here is a NewScientist article that also has a revealing NASA

http://www.newscientistspace.com/channe ... stery.html

Bye Fridger
Image


Return to “Ideas & News”