Vincent
I've received your file, thanks. I'm really happy to see that the Lua Tools'
code is easily understood and customizable.
The ability to be so customizable makes it a very useful tool. It allows anyone the option of doing so many things without having to make a customized version of celestia from the source code.
If you noticed in the pics that I posted, the tools on the captured screen has a few added tools not discussed. I added a button to enable or disable the automag. There is also a check box for a tool that aligns the top of the screen to the north pole of the selected object. When I rotate around a planet, I always know that the top of the screen is north.
I have found that your tools as an extremely useful tool that extends many options.
I still have the same problem,
though: the size of the distance markers is dependant from the screen
size/resolution.
I am not exactly sure what you mean by this statement. Are you talking about how I use a ratio of the default FOV and the current FOV which changes from one system to another?
Working the math, I have concluded that this ratio accounts for the distortion in the higher FOVs. On my system, it seems to work perfectly. To make sure it works, I tested it in two ways. In both tests, I changed the Fov up and down to see how it appeared.
1.
I tested it by creating a SSC file for a plant at exactly a distance of 1 AU. This planet also had an inclination and eccentricity of 0. I then compared the 1 AU line with the planet's orbit at large and close distances to the line.
2.
In the "-- Init Circle Variables" section at the beginning of the file is the line "distanceType = "Circle"". If you change "Circle" to "Square" or anything else, instead of the circles, it produces squares centered in the center of the screen for the sun. In your scale Lua file, I changed the squares from the surface to the center of the object. If you goto the sun in celestia after you make these changes, then my squares should exactly match your squares.
On my screen, both of these tests worked as expected. Can you tell me how these tests works on your system? In that way we can know how the differences in screen sizes work on the scales that we put on the screen.
Your square distances uses a modifier of the (defaultFov / 4) for my screen. On your screen, the calculated defaultFov is not the same as on my system. For that reason, I would really like to know how the above tests works on your system.