How do I use the timeline feature?

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.
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

How do I use the timeline feature?

Post #1by PlutonianEmpire » 26.05.2012, 08:07

I know that timelines were implemented in the ssc codes for the default spacecraft in the default Celestia installations.

My question is, is it possible to use it for planets and moons as well, beyond orbital and rotational mechanics?

I have a planet, and I want to implement changes in the planet itself, such as losing its rings when it gets too close to its sun, and its moons losing their ices (going from an icy appearance to a rocky appearance, possibly shrinking in the process), or a moon being terraformed over time, and so forth....
Terraformed Pluto: Now with New Horizons maps! :D

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

Re: How do I use the timeline feature?

Post #2by selden » 26.05.2012, 13:02

Sorry: a quick test reveals that Timeline works only for orbit and orientation, not for the other SSC parameters. :(

When apparent shape changes are needed, you'll have to use separate objects with their own Beginning and Ending statements for those different objects.

p.s. I've used ScriptedOrbit to cause periodic changes in appearance. Separate object definitions are still needed, but it reduces the number of objects to just those needed to define the different shapes.
Selden

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

Re: How do I use the timeline feature?

Post #3by selden » 26.05.2012, 13:53

Here's an example using Timeline to change a moon's apparent size.

Code: Select all

"InflatingMoon" "Sol/Earth"
{

   Radius 1
   Mesh "invisible.cmod"
   Color [ 0 0 1 ]
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 30000 Period 1 }
        FixedRotation { Inclination 270 AscendingNode 90 }
}

"BigMoon" "Sol/Earth"
{
        Radius 0.9
   Color [ 0 1 0 ]
    Timeline [
      # Phase 1: small -- invisible inside planet
      {
        Ending    "2010 3 12 15:30"
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 0 Period 1 }
        FixedRotation { Inclination 90 AscendingNode 90 }
      }

      # Phase 2: inflated -- on orbit
      {
        Ending    "2010 3 13 15:30"
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 30000 Period 1 }
        FixedRotation { Inclination 270 AscendingNode 90 }

      }
      # Phase 3: small
      {
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 0 Period 1 }
        FixedRotation { Inclination 90 AscendingNode 90 }
      }

    ]
}
"SmallMoon" "Sol/Earth"
{
        Radius 0.1
   Color [ 1 1 0 ]
    Timeline [
      # Phase 1: small -- on orbit
      {
        Ending    "2010 3 12 15:30"
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 30000 Period 1 }
        FixedRotation { Inclination 90 AscendingNode 90 }
      }

      # Phase 2: inflated -- invisible inside planet
      {
        Ending    "2010 3 13 15:30"
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 0 Period 1 }
        FixedRotation { Inclination 270 AscendingNode 90 }

      }
      # Phase 3: small
      {
        OrbitFrame { EquatorJ2000 { Center "Sol/Earth" } }
   EllipticalOrbit { SemiMajorAxis 30000 Period 1 }
        FixedRotation { Inclination 90 AscendingNode 90 }
      }

    ]
}
Selden

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

Re: How do I use the timeline feature?

Post #4by John Van Vliet » 28.05.2012, 02:18

--- edit ---


Return to “Help Central”