ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Zooming a rotated camera
person icon
bagg
Registered User
Quote
2010-11-21 21:32:58

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.

person icon
niko
Moderator
Quote
2010-11-22 16:49:17

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


yourCamera.setFov(CL3D.degToRad(newFov));


where 'newFov' is a value between something like 20 and 100.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |