Moon's Orbit!?

Asked by Francisco

Is there a way I can track or see the moon's orbit in Stellarium. I know there's an option for planets, but I don't see one for moon or even sun. However, if is not included I would much appreciated if it was. =)

Question information

Language:
English Edit question
Status:
Answered
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Wolf (alexwolf) said :
#1

As default we disable orbit line for Moon but you can enable it by hands: you need open ssystem.ini and add orbit_visualisation_period = 27.321582

Revision history for this message
Dhamu (kernel164) said :
#2

Is it working? I added orbit_visualisation_period = 27.321582 property in ssystem.ini but couldn't see an orbit. other planet orbits shows fine.

Revision history for this message
Alexander Wolf (alexwolf) said :
#3

Yes, it work, but I'm write parameter name with typo :( It should be orbit_visualization_period = 27.321582

Revision history for this message
Dhamu (kernel164) said :
#4

it works fine now. thanks :)
orbit is shown only in if the moon is in view - is it a feature? is it possible to show the oribit even if the moon is not in the view?

Revision history for this message
Alexander Wolf (alexwolf) said :
#5

Yes, this is feature - orbit show only for bodies in FOV.

Revision history for this message
Girish K Deshpande (girishkdesh-6) said :
#6

Dear Alex,
Can we somehow modify stellarium to make the moon orbit visible even when the moon is not in FOV ?
Any fix for this problem ?
I am working with the nodes of moon. I need this feature badly.
Girish K Deshpande,
India

Revision history for this message
Girish K Deshpande (girishkdesh-6) said :
#7

Thanks in advance.

Revision history for this message
Alexander Wolf (alexwolf) said :
#8

Please look at Planet.cpp file (computePosition and drawOrbit methods)

Revision history for this message
Girish K Deshpande (girishkdesh-6) said :
#9

Dear Alexander,
Please can you elaborate how to modify the file in the stellarium I am running on my pc. I have windows 8.1 lap. and have installed the latest stellarium on it. I know the Java language but I am stumbled at where to edit the code for the file.
Please help or give links where I can learn the whole process in detail.
Pleaaaaaaaaaaaaaaaaase Help.
Thanks in advance again.
Girish.

Revision history for this message
Alexander Wolf (alexwolf) said :
#10

Dear Girish, it's easy and you should make 3 simple steps.

First step: you should get source code of Stellarium and prepare build environment (Tips: http://www.stellarium.org/wiki/index.php/Compile_with_MSYS_and_Qt5)

Second step: please open Planet.cpp file and comment or delete the lines 891-895 http://bazaar.launchpad.net/~stellarium/stellarium/trunk/view/head:/src/core/modules/Planet.cpp#L891

You should get code like this (quick and dirty solution):
/*
float viewport_left = prj->getViewportPosX();
float viewport_bottom = prj->getViewportPosY();
if (prj->project(Vec3d(0), screenPos)
    && screenPos[1]>viewport_bottom - screenSz && screenPos[1] < viewport_bottom + prj->getViewportHeight()+screenSz
    && screenPos[0]>viewport_left - screenSz && screenPos[0] < viewport_left + prj->getViewportWidth() + screenSz)
*/

Third step: you should re-build Stellarium from edited source code (look at tips from Step 1)

Can you help with this problem?

Provide an answer of your own, or ask Francisco for more information if necessary.

To post a message you must log in.