Chrome settings

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
TourqeGlare
Posts: 100
Joined: 07.05.2005
With us: 19 years 6 months
Location: Wherever Vger went

Chrome settings

Post #1by TourqeGlare » 07.06.2005, 01:38

Can anyone create a patch or something that gives Celestia reflective serfaces? A chrome planet with clouds would be cool!

Topic author
TourqeGlare
Posts: 100
Joined: 07.05.2005
With us: 19 years 6 months
Location: Wherever Vger went

Post #2by TourqeGlare » 07.06.2005, 05:34

This is the best ive gotten and I
like the effect, but i cant see China and such.

Image

Topic author
TourqeGlare
Posts: 100
Joined: 07.05.2005
With us: 19 years 6 months
Location: Wherever Vger went

Post #3by TourqeGlare » 07.06.2005, 05:36

The texture.

Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 07.06.2005, 08:53

When a surface is shiny, it is said to have "specular reflections" -- that means "mirrorlike reflections". Celestia can sort of simulate that if you use these declarations in an SSC file:

Code: Select all

SpecularTexture "[i]imagefilename[/i]"
SpecularColor [ [i]color[/i] ]
SpecularPower [i]number[/i]


Use your image as the SpecularTexture. White areas are considered reflective. Black are not.
Celestia won't actually draw reflections, but it'll draw a highlight of the specified SpecularColor (3 numeric values: 1 each for red, green and blue) to simulate the sun glinting off the surface with its brightness proportional to the SpecularPower.

This is done for the Earth's oceans in solarsys.ssc, where it's using the Alpha channel of earth.png as the specular texture. You can use your texture to reverse that.
Selden


Return to “Development”