Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi Niko I have a problem in zooming a rotated camera.I am attaching a modelviewercamera (ORBIT) animator to a perspective camera and after when i change the position to desired result (With The Mouse) i am removing it from the camera.Now i want to zoom in the camera but forward to the target (Just like if i had the AnimatorCameraModelViewer and was reducing the radius to get it closer to the target but without rotating it). Can you please give me the mathematical calculations in order to find the new position x,y,z of the camera so that i can create a vector to add it to the camera position vector?I have tried a lot of methods with no luck. Thanks. |
||||
|
If you really want to zoom, it is much easier. Zooming usually doesn't change the camera position, it only affects the lenses in the camera. Simply use this
where 'newFov' is a value between something like 20 and 100. |
|