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.
Rotating planet moves across stars - Sun-sync planet coordinate
- FarGetaNik
- Posts: 484
- Joined: 05.06.2012
- With us: 12 years 4 months
- Location: Germany
Added after 7 hours 5 minutes:
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.
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.
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.
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"
}
}
}
}
Selden
Heliocentric Sync reference frame
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
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