It is currently Sat, 21-07-18, 15:41 GMT

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: #4) Earth
PostPosted: Tue, 03-01-17, 1:16 GMT 
Offline
User avatar

Joined: Tue, 04-09-07, 21:55 GMT
Posts: 794
Location: N 42.38846 W 83.45456
--- Edit on 1-2-17
combined Mercury,Venus,Earth,Mars into one file


-- Google drive "Earth.ssc" ( inner solar system )
https://drive.google.com/file/d/1KMi5k3 ... sp=sharing




Finally 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 "de433.bsp"
         Target "399"
         Origin "3"
         Period 1
         BoundingRadius 1e10
       }
       SpiceRotation
       {

          Kernel         [ "pck00010.tpc" "naif0011.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 )


Top
 Profile  
 
 Post subject: Re: #4) Earth
PostPosted: Tue, 17-07-18, 17:34 GMT 
Offline
User avatar

Joined: Tue, 04-09-07, 21:55 GMT
Posts: 794
Location: N 42.38846 W 83.45456
updated to the de433.bsp file

_________________
"I don't pitch Linux to my friends, I let Microsoft do that for me."
Using OpenSUSE 42.1 & Scientific Linux 6.7


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group