help in customizing my celestia

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

help in customizing my celestia

Post #1by FCVPI99 » 05.12.2012, 18:05

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 ???

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: help in customizing my celestia

Post #2by John Van Vliet » 05.12.2012, 23:17

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 03:59, edited 1 time in total.

Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

Re: help in customizing my celestia

Post #3by FCVPI99 » 06.12.2012, 16:09

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
}

Guckytos
Posts: 439
Joined: 01.06.2004
With us: 20 years 5 months
Location: Germany

Re: help in customizing my celestia

Post #4by Guckytos » 06.12.2012, 17:27

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

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: help in customizing my celestia

Post #5by jogad » 07.12.2012, 08:54

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:

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

Re: help in customizing my celestia

Post #6by t00fri » 07.12.2012, 09:41

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
Image

Avatar
Marco Klunder
Posts: 181
Joined: 20.02.2008
Age: 62
With us: 16 years 9 months
Location: The Netherlands

Re: help in customizing my celestia

Post #7by Marco Klunder » 07.12.2012, 15:55

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
Marco Klunder
email: marco.klunder@xs4all.nl
Windows10 PD 3.0 GHz, 2 GB of RAM, Nvidia GeForce 6700 XL
Celestia161 / SVN + Lua Edu Tools v1.2 Beta9, Celestia160-ED and Celestia1621

Topic author
FCVPI99
Posts: 36
Joined: 16.09.2006
With us: 18 years 2 months

Re: help in customizing my celestia

Post #8by FCVPI99 » 09.12.2012, 04:02

ok thank you i understand now


Return to “Help Central”