How to get zoom value with PlanarControl and a Perspective camera ? #2017
Unanswered
valentinMachado
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In GlobeControl there is a method getZoom which return the actual zoom.
This method doesnt exists in PlanarControl, when I checked the PlanarControl code I saw that there is a notion of zoom and the actual zoom is store (in planarControl.camera.zoom) but only for OrthoCamera.
How to getZoom for PlanarControl with a perspective camera ?
I also saw that in Widget.Scale which compute scale (which is somehow related to the notion of zoom) that it is computed according the distance between camera position and the point on the ground at the center of the screen. Is this the right way to get zoom value ?
Issue related: VCityTeam/UD-Viz#369
Beta Was this translation helpful? Give feedback.
All reactions