Eclipses: OMG!

General discussion about Celestia that doesn't fit into other forums.
Topic author
Raul

Eclipses: OMG!

Post #1by Raul » 21.02.2002, 19:54

The screenshots on the news page are breathtaking. I can't wait to try v1.2.2.

BTW, i'm curious. Chris, how did you implement the eclipse feature? Will it also work when a small satellite hides behind its host planet (say Europa and Jupiter)?.


Keep up the good work!

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

Post #2by chris » 21.02.2002, 21:09

It does work when a small body is hidden by a much larger one. I've observed Europa and Io slip into Jupiter's shadow. It also works for the Earth and Moon, so you'll be able to watch lunar eclipses. You can even get inter-moon eclipses . . .

Eclipses are just circular textures projected onto objects using OpenGL's texture coordinate generation. They're rendered in a second pass after the base texture and effects are applied. Testing for an eclipse is straightforward--it's a matter of determining whether a planet is in the shadow volume of an occluder. Since I assume that all occluders are spherical (no irregular shadows in Celestia for now), it's just a sphere-cylinder intersection, which turns out to be nothing more than a point to line distance calculation.

Actually, the most important thing for eclipses is accurate orbital calculations for planets and moons. Correct orbits for the Galilean moons and the eight largest Saturnian satellites are new in 1.2.2. I just finished working on the Saturn system. Compare this:

http://www.shatters.net/celestia/images/titan-eclipse.jpg

to this Hubble image taken the same day:

http://antwrp.gsfc.nasa.gov/apod/ap960429.html

--Chris

mediatiger
Posts: 13
Joined: 09.02.2002
With us: 22 years 10 months
Location: Berlin, Germany

eclipses

Post #3by mediatiger » 21.02.2002, 22:25

WOOOW! Incredible!
They'll be jealous at NASA.
They will say: we shot a picture of Titan's shadow on saturn.
Chris will say: And I saw the eclipse from saturn's surface.

But from version 1.2.2 on I think it will become really important to be able setting my point of view on the earth's surface exactly to watch all the nice eclipses at a given time. Or is that already possible?

Celestia is great!

mediatiger

MB

Eclipse

Post #4by MB » 22.02.2002, 08:28

Great! I am hurried to see celestia 1.2.2 I just looked at your code in render.cpp.( unfortunately I don't know how to manage with the cvs technique otherwise I would have compiled the new code!) It looks very clever and the asumptions are convincings. One point however: using the sum of the caster's and receiver's radius as a test looks to me somewhat reducing to umbra shadow. Would not be more general to use the sum of the penumbra's and receiver'radius as a test ?
Would also be possible to extend the eclpseShadow Textures[] to e.g 8 to include for caster with atmosphere some texture that take into account the ligtgtning by the sunlight scattered by the atmosphere? (e.gethe reddish color in our moon eclipse.
MB

MB

Eclipse

Post #5by MB » 22.02.2002, 08:29

Great! I am hurried to see celestia 1.2.2 I just looked at your code in render.cpp.( unfortunately I don't know how to manage with the cvs technique otherwise I would have compiled the new code!) It looks very clever and the asumptions are convincings. One point however: using the sum of the caster's and receiver's radius as a test looks to me somewhat reducing to umbra shadow. Would not be more general to use the sum of the penumbra's and receiver'radius as a test ?
Would also be possible to extend the eclpseShadow Textures[] to e.g 8 to include for caster with atmosphere some texture that take into account the ligtgtning by the sunlight scattered by the atmosphere? (e.gethe reddish color in our moon eclipse.
MB

donkey
Posts: 25
Joined: 29.01.2002
With us: 22 years 10 months

Post #6by donkey » 22.02.2002, 11:19

Oh, that picture reminds me, do the rings make a shadow on planets?
Last edited by donkey on 23.02.2002, 01:51, edited 1 time in total.

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

Post #7by chris » 22.02.2002, 17:14

One point however: using the sum of the caster's and receiver's radius as a test looks to me somewhat reducing to umbra shadow. Would not be more general to use the sum of the penumbra's and receiver'radius as a test ?
You are probably looking at an earlier version of the source . . . I actually compute a shadow radius, which is affected by the caster's radius as well as the apparent diameter of the sun. I then check to see if distance from the center of the receiver to the shadow axis is less than the shadow radius plus receiver's radius. There's still a couple more cases that I need to handle. For example, if the apparent diameter of the sun is larger than that of the occluding object, the darkness of the shadow needs to be reduced (and if the sun is much larger, I shouldn't bother rendering an eclipse at all.) This will be an issue (well, hypothetically) for eclipses from moons of 'hot Jupiters.'

Would also be possible to extend the eclpseShadow Textures to e.g 8 to include for caster with atmosphere some texture that take into account the ligtgtning by the sunlight scattered by the atmosphere? (e.gethe reddish color in our moon eclipse.

My plan is to eventually move from a static set of eclipse shadow textures to rendering them on the fly. At that point, I'll see about modeling atmospheric scattering. Unfortunately, render to texture in OpenGL is a real pain, so this won't make it in to 1.2.2.

--Chris

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

Post #8by chris » 22.02.2002, 17:20

donkey wrote:Oh that picture reminds me, does the rings make an shadow on planets?

Not yet, but I will get around to adding this eventually. In version 1.2.3 of Celestia I'll probably rework a whole bunch of the shadow code and make rings cast shadows on planets, improve the quality of the shadow cast on the rings, and tweak eclipse shadows somewhat.

--Chris

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 10 months
Location: Altair

Post #9by Rassilon » 22.02.2002, 20:32

Also Chris, you may be aware of this already, but when I add a cloud texture to the jovians I noticed on saturn and uranus, that you are able to see the rings as clear as day through the clouds, well, when in fact they should be hidden, or atleast barely visible...Will you be implimenting a fix on this in the next version? j/w...cause this program is simply amazing...and now I am an addict ;)
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

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

Post #10by chris » 22.02.2002, 21:24

Rassilon wrote:Also Chris, you may be aware of this already, but when I add a cloud texture to the jovians I noticed on saturn and uranus, that you are able to see the rings as clear as day through the clouds, well, when in fact they should be hidden, or atleast barely visible...Will you be implimenting a fix on this in the next version?

Oops . . . Since I'd never used a cloud layer on a planet with rings, I didn't realize that this was a problem. I'll try and fix this for the next version--it shouldn't be too hard to solve this.

--Chris

Guest

Post #11by Guest » 23.02.2002, 00:19

Didn't think it was too difficult...Thanks Chris...I cant wait till this update comes out!

MB

Post #12by MB » 23.02.2002, 08:36

Sorry Chris, I apologize, I did not looked carefully to your code , Of course everything is correct concerning the shadowtest. Just to come back about the eclipse of our moon (that is rather special in our solar system I assume a first approximation should be to use
different colors for the pixel shadows. that I meant. Probably I could try when the 122 version will be out. Thants again

JeffBlack
Posts: 7
Joined: 23.02.2002
With us: 22 years 9 months

Post #13by JeffBlack » 23.02.2002, 22:26

I thought the rings look really cool when you view the gas giant from an orbiting satellite with an atmosphere. I will put a link to the screenshots when i upload them later.

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

Post #14by chris » 28.02.2002, 04:37

Rassilon wrote:Also Chris, you may be aware of this already, but when I add a cloud texture to the jovians I noticed on saturn and uranus, that you are able to see the rings as clear as day through the clouds, well, when in fact they should be hidden, or atleast barely visible...Will you be implimenting a fix on this in the next version?

Here are a couple images from the fixed version of Celestia:
http://www.shatters.net/celestia/images/rings1.jpg
http://www.shatters.net/celestia/images/rings2.jpg
The first image shows the rings during daylight from the surface of a planet with an atmosphere. The second image is from the same planet except at night time--the rings shine brightly in the night sky except for the part in the planet's shadow. Watching the full day night cycle on this planet is quite spectacular. It's also interesting to move around and see how the rings appear from different points on the surface. This hypothetical world orbits a type K star, so there's a very slight reddish cast to the light.

--Chris

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 10 months
Location: Altair

Post #15by Rassilon » 28.02.2002, 20:19

Those look excellent! Does the stars themselves cast the light, or do you have to use SpecularColor? Also Chris, not remembering my astronomy at all...what classes of stars are green? And would it be possible to add green stars? Or even Purple...which I guess are Ultraviolet suns...

Well I think you know what more this would lead to...

Pulsars
Neutron Stars
Binary suns
Brown Dwarf systems
Black Holes
and already requested Nebulas...But I think you mentoned something about this earlier...

BTW - I changed the textures of the stars...Heres a few examples...

http://cybermindtraveller.freewebspace.com/pics/betel.jpg
http://cybermindtraveller.freewebspace.com/pics/sol.jpg

They need more work, like the photosphere or sun glare I am going to change too...

Also, where can I get a good textured map of the sun?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!


Return to “Celestia Users”