0

Programmatic control of camera parameters

Anonymous 10 years ago 0
This discussion was imported from CodePlex

AnotherBor wrote at 2013-11-20 07:26:

Hi,

First of all I want to say big THANK YOU to all the contributors and authors of Helix. THIS IS OSOM!

Now to the point.
I need to control FOV, point of view and other parameters of the scene in the code but with the visual effects provided by manual control.
For example, if I change camera FOV in CameraSettings in the code, the FOV changes instantly but other properties of the camera remain unchanged. That's obviously how it's supposed to be.
But when you change camera FOV using mouse, the distance of the camera is adjusted (behind the scenes) so that apparent perspective changes, but ZOOM remains constant.
How can I achieve the same in the code??

I have same question/requirement for other parameters. For example, it's super easy to control the point of view of camera using mouse. How could I change the camera position with the same nice animation and effects in code instead?

objo wrote at 2013-12-02 20:08:

Try the methods AddPanForce, AddRotateForce and AddZoomForce in the CameraController.
ChangeDirection and LookAt has animation time parameters, I agree there should also be a ChangeFov method! I added an issue: https://helixtoolkit.codeplex.com/workitem/10010

AnotherBor wrote at 2014-01-03 14:48:

Thank you very much for the information.
I have to say, I'm deeply impressed with helixtoolkit. Really great work!!
I'm sorry for not replying earlier. Too many things on my head.