Closed nthallen closed 6 years ago
Direction vectors, when present, should probably be anchored to the current gondola position.
Simulated horizon could be implemented as a disk of radius 504 km located 40 km below the gondola. It could also be a proportionally smaller disk proportionally closer (e.g. 504 m 40 m below the gondola), but then the disk position would need to be recentered whenever the gondola moves.
Given Zenith Angle Ze and Azimuth Angle Az, the direction vector from the focal point toward the camera is given by:
If we code this into an interaction, we could:
If this works, it means we need to allow the focal point to be somewhere other than the gondola position. We can figure out the details after running the test, but it might be possible to simply set a reasonable distance range, and update the focal point if the zoom is too close or too far.
Clipping is still an issue. We have documented the problem and submitted an issue on the mayavi GitHub. The current workaround is to make the planetary disc really small. The disadvantage of this is that you can fall off the edge!