--- Edit on -7-25-2018
combined Mercury,Venus,Earth,Mars into one file
new as of 07-25-18
-- Google drive "Earth.ssc" ( inner solar system )
https://drive.google.com/file/d/1vrUtd1 ... sp=sharingFinally a moon in the picture
Use what ever maps you want , the ones listed here are mine .
the below code is out of date and just an example
Code:
Replace "Earth" "Sol"
{
Texture "Earth.ctx"
NightTexture "EarthNight.ctx"
NormalMap "EarthNormal.ctx"
SpecularTexture "EarthSpec.png"
SpecularColor [ 0.2 0.2 0.25 ]
SpecularPower 18.0
Oblateness 0.0034
Radius 6378.140
Atmosphere {
Height 60
Lower [ 0.43 0.52 0.65 ]
Upper [ 0.26 0.47 0.84 ]
Sky [ 0.20 0.4 0.8 ]
Sunset [ 1.0 0.6 0.2 ]
CloudHeight 20
CloudSpeed 0
CloudMap "EarthClouds.ctx"
#CloudShadowDepth 15.0
Mie 0.001
MieAsymmetry -0.25
Rayleigh [ 0.001 0.0025 0.006 ]
MieScaleHeight 12
}
Timeline
[
# Before SPICE
{
BodyFrame { EquatorJ2000 { Center "Sol" } }
Ending "1550 02 27 00:00:00.000" # add 2 month for orbit drawing
CustomOrbit "vsop87-earth"
CustomRotation "iau-earth"
}
# SPICE
{
OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
BodyFrame { EclipticJ2000 { Center "Sol" } }
Ending "2649 11 25 00:00:00.000" # less 2 month for orbit
SpiceOrbit
{
Kernel "de438.bsp"
Target "399"
Origin "3"
Period 1
BoundingRadius 1e10
}
SpiceRotation
{
Kernel [ "pck00010.tpc" "naif0012.tls" "earth_fixed.tf" ]
Frame "EARTH_FIXED"
}
}
# After Spice
{
BodyFrame { EquatorJ2000 { Center "Sol" } }
CustomOrbit "vsop87-earth"
CustomRotation "iau-earth"
}
]
}
Replace "Moon" "Sol/Earth"
{
Texture "Moon.ctx"
NormalMap "MoonNormal.ctx"
SpecularColor [ 0.16 0.16 0.17 ]
SpecularPower 0.5
Oblateness 0.002
Radius 1737.4
Timeline
[
# Before SPICE
{
OrbitFrame { EquatorJ2000 { Center "Sol/Earth"}}
BodyFrame { EquatorJ2000 { Center "Sol/Earth"}}
Ending "1550 02 27 00:00:00.000" # add 2 month for orbit drawing
CustomOrbit "moon"
CustomRotation "iau-moon"
}
# SPICE
{
OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
BodyFrame { EclipticJ2000 { Center "Sol/Earth" }}
Ending "2649 11 25 00:00:00.000" # less 2 month for orbit
SpiceOrbit
{
Kernel "de433.bsp"
Target "301"
Origin "3"
Period 27.321661
BoundingRadius 1e10
}
SpiceRotation
{
Kernel [ "pck00010.tpc" "naif0012.tls" ]
Frame "IAU_MOON"
}
}
# After SPICE
{
OrbitFrame { EquatorJ2000 { Center "Sol/Earth"}}
BodyFrame { EquatorJ2000 { Center "Sol/Earth"}}
CustomOrbit "moon"
CustomRotation "iau-moon"
}
]
LunarLambert 1.0
Albedo 0.12
}
##############
# Easter Egg #
##############
Location "TMA-1" "Sol/Earth/Moon"
{
LongLat [ -10.52 -43.00 -1.5 ]
Size 2.00
Importance 5.0
Type "AA"
}
this spice rotation requires a EXTRA file "earth_fixed.tf"
as the name of the file says "earth fixed"
basically a bug fix
ftp://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/a moon -- yeaaa
planets have there origin on the SSB , moons are relative to the parent body so "The Moon" is using the Earths barycenter
OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
and
-----
Target "301"
Origin "3"
-----
however the built in celestia defaults for before and after the spice are almost spot on
so there is no real need to use JPL Horizons to create them ( like we will for Mars )