Moon Eclipse

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
MB

Moon Eclipse

Post #1by MB » 08.04.2002, 07:01

I tried to get a better rendering of the (earth) moon eclipse that takes the sun light scattering by the atmosphere. I therefore slightly modify the code (only the render.cpp file) to treat
specifically the moon eclipse, the other eclipses are not modified and I created a specific texture inspired by photos found in the review "Sky and Telescope". This was made under Linux. I did
not succeed to compile the last versions of celestia with Visual C++. The rendering depends of the color balance of the monitor it can easily be improved. The code can also be extended to other
planets with atmospheres but I have no idea of the effect!! Introducing the gas composition and densities in the proper Scattering formula perhaps? Here is an example. Leaves a message here if you are interessed by the render.cpp file.
MB

Topic author
MB

moon eclipse

Post #2by MB » 08.04.2002, 07:09

I am sorry. I don't know how to include a .jpg file in this message (Nescape 4.5)!!
[file:///E:/Eclipse%20lune/Ecl_Moon3.jpg]

MB

Guest

Post #3by Guest » 08.04.2002, 08:25

New try for the image[img][file:///E:/Eclipse%20lune/Ecl_Moon3.jpg]
[/img] I send a mail to Chris withattached files. That I know!!!!!
MB

Guest

Post #4by Guest » 11.04.2002, 09:40

Does Celestia simulate lunar eclipses as well as solar eclipses ? I haven't checked yet...


-Mad Boris
(not to be confused with MB)

flym
Posts: 27
Joined: 09.03.2002
With us: 22 years 8 months
Location: Italy

Post #5by flym » 11.04.2002, 16:08

Yes, it works, just look at Io disappearing in the Jupiter's shadow.
What is not yet working are rings' shadows on planets and moons,
isn't it?

Guest

Post #6by Guest » 11.04.2002, 18:09

I don't know about the ring's shadows, it's difficult to tell when they would appear and on which moon.
I was actually wondering if during an eclipse of Earth's moon, would I see the same coppery red glow ? Or is that asking too much ?


--Mad Boris

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

Post #7by chris » 11.04.2002, 18:49

Celestia does simulate lunar eclipses. Eclipses of the Galilean satellites do look a bit weird because of the fairly low resolution textures used for shadows. Also, satellite-satellite eclipses are simulated, so you can watch the Galilean moons eclipse each other (though I haven't tested this myself yet.)

Shadows cast by rings onto planets aren't handled yet--I'll fix this soon, though. Celestia also doesn't create colored shadows yet, so no lunar eclipses don't look quite right yet.

--Chris

Topic author
MB

Moon Eclipse

Post #8by MB » 12.04.2002, 07:29

As I already mentioned I slightly modified the code to try to render the color of the moon eclipse without affecting the other eclipses. Unfortunately I don't know how to post pictures in this forum. Post a message at barat@lcam.u-psud.fr I will send your a colored eclipse (.jpg) and the modified render.cpp file if you want to compile it. By the way this was obtained under linux. Unfortunately I did not succeed to in getting a workable version under Windows; it crashes at the opening. I would appreciate such exe complile with my version of the render.cpp file.
MB


Return to “Development”