Page 1 of 1

help in customizing my celestia

Posted: 05.12.2012, 18:05
by FCVPI99
ok so planets in sol system have blue orbits others are brown

what i want to do it change some brown orbits to blue like pluto ceres UB-313 and others is there a way to do this ???

Re: help in customizing my celestia

Posted: 05.12.2012, 23:17
by John Van Vliet
--- edit ---

Re: help in customizing my celestia

Posted: 06.12.2012, 16:09
by FCVPI99
nope there is no orbit color

"Earth" "Sol"
{
Texture "earth.*"
NightTexture "earthnight.*"

# SpecularTexture "earth-spec.*"
Color [ 0.85 0.85 1.0 ]
SpecularColor [ 0.8 0.8 0.85 ]
SpecularPower 25.0
HazeColor [ 1 1 1 ]
HazeDensity 0.3
Radius 6378.140 # equatorial
# Oblateness 0.0034

Atmosphere {
Height 60
Lower [ 0.43 0.52 0.65 ]
Upper [ 0.26 0.47 0.84 ]
Sky [ 0.40 0.6 1.0 ]
Sunset [ 1.0 0.6 0.2 ]

CloudHeight 7
CloudSpeed 65
CloudMap "earth-clouds.*"
CloudShadowDepth 1.0

Mie 0.001
MieAsymmetry -0.25
Rayleigh [ 0.001 0.0025 0.006 ]
MieScaleHeight 12
}

Re: help in customizing my celestia

Posted: 06.12.2012, 17:27
by Guckytos
Of course there is currently no orbit color line in the SSC. If you have the normal Celestia installation.

In the normal Celestia installation the orbit color is derived from the object class (i.e. Planet, BaryCenter etc.) and then automatically assigned.

You can change the orbit color for each individual object by creating your own SSC for it.

Replace "Earth" "Sol"
{
orbit definition
OrbitColor [ 1.0 0.2 0.2 ] # red
}
With this the OrbitColor for the earth would now be red.

The two things in bold are the key parameters. With "Replace" you tell Celestia to just use your own definitions. And "OrbitColor" defines the color of the orbit for that particular object.

Best regards,

Guckytos

Re: help in customizing my celestia

Posted: 07.12.2012, 08:54
by jogad
Hi,

Let me add an explanation for those who are not familiar with ssc files. :wink:

suppose we want
    * Venus with a light gray orbit
    * The Earth with a green orbit
    * Mars with an orange orbit

You must create a plain text file with the extension ssc
call this file myorbitscolors.ssc
Record this file in the celestia/extras directory
Here is the content of this file :

Code: Select all

Modify "Venus" "Sol"
{
   OrbitColor [0.7  0.7  0.7]
}

Modify "Earth" "Sol"
{
   OrbitColor [0  1  0]
}

Modify "Mars" "Sol"
{
   OrbitColor [1  0.4  0]
}


Words in a ssc file are case sensitive.

"Modify" is better than "Replace"
This allows to change only what is necessary without having to rewrite the entire definition of the planet.

Snap2.jpg

The parameters of "OrbitColor" are the proportions of red, green and blue (from 0 to 1).

If a planet is selected, its orbit will be in red anyway.

:mrgreen:

Re: help in customizing my celestia

Posted: 07.12.2012, 09:41
by t00fri
jogad wrote:Hi,

Let me add an explanation for those who are not familiar with ssc files. :wink:
...

"Modify" is better than "Replace"
This allows to change only what is necessary without having to rewrite the entire definition of the planet.

:mrgreen:

I was about to recommend "Modify" instead of "Replace" when I found your nicely illustrated post making mine superfluous ;-)

Fridger

Re: help in customizing my celestia

Posted: 07.12.2012, 15:55
by Marco Klunder
AND ...
we also have a CELX scripting possibility here.

See explenation and example on: http://en.wikibooks.org/wiki/Celestia/Celx_Scripting/CELX_Lua_Methods/Celx_object#setorbitcolor

Re: help in customizing my celestia

Posted: 09.12.2012, 04:02
by FCVPI99
ok thank you i understand now