Page 1 of 1

Rotating planet moves across stars - Sun-sync planet coordinate

Posted: 08.10.2017, 16:21
by FSword7
I have great idea for sun-sync planet coordinate system that faces sun at (0, 0). That is great view to see rotating planet with orbiting moons move across stars. That indicates that planet is orbiting around sun (star). That is good for education.

I did tried that on Celestia 1.6.0 with 100x time speed but it showed that earth is as center of universe instead. That's why I want to see planet moves across star background.

In the past, I had seen animation demo on the early NASA's Planet Quest website about exoplanets.

I was searching for formula through google but ended up sun-sync orbit formula (many sources) instead.

Posted: 08.10.2017, 16:36
by FarGetaNik
I am not quite sure what you want to do, but in Celestia you can just select the sun by pressing "H" then follow "f". Now you can speed up time to see planets pass by, or you can press "ctrl+g" to land on the sun and rotate with it.

Posted: 08.10.2017, 16:47
by FSword7
Added after 7 hours 5 minutes:
I am not quite sure what you want to do, but in Celestia you can just select the sun by pressing "H" then follow "f". Now you can speed up time to see planets pass by, or you can press "ctrl+g" to land on the sun and rotate with it.

I did trying that but that earth moves away. I mean fixed sun-sync planetocentric polar coordinates (like Lagrangian points) to see planet across stars.

Posted: 09.10.2017, 09:36
by selden
Below is an example of an SSC definition of the Earth's L1 point.

Place your viewpoint there and watch (Track) the Earth. Over the period of a year, you'll see the Earth travel through the Zodiac.

Code: Select all

"Earth L1" "Sol"
{
    Radius 100
    Color [ 1 0 0 ]

    OrbitFrame {
         TwoVector {
            Center "Sol/Earth"
            Primary {
                Axis "x"
                RelativePosition {
                  Observer "Sol/Earth"
                  Target "Sol"
                }            }
            Secondary {
                Axis "y"
                RelativeVelocity {
                  Observer "Sol/Earth"
                  Target "Sol"
                }
            }
        }
    }

Heliocentric Sync reference frame

Posted: 29.04.2020, 22:43
by FSword7
Folks,

I now found solution. That script is not needed anymore but can add reference frame in frame.cpp would be called 'BodySyncFrame'. Here is very simple formula in computeOrientation.

q = lookAt<double>(center, target, {0, 1, 0});

Where

center = position of earth
target = position of sun

Now view spinning earth that moves across stars when increase time dilatation. Move to back of earth to see earth and sun moves across stars.

Tim