I need to explicitly set the Field of View angle of my camera but I am
having trouble doing so.
example:
(in constructor)
{
boundCamera = new Camera3D( { x:0, y:0, z: -100} );
boundCamera.lens = new ZoomFocusLens();
boundCamera.moveTo(0, 0, 0);
boundCamera.centerPivot();
boundCamera.fov = 30;
boundCamera.zoom = 1;
}
(in enterFrameListener)
{
trace("fov: " + boundCamera.fov + " z: " + boundCamera.zoom + " f: " +
boundCamera.focus);
}
When the program containing this code runs, the trace returns...
fov: 179.489... z: 1 f: 100
And sure enough, the view looks very wide.
What should I do to explicitly set the field of view, so in genuinely
renders the correct angle?
In fact, what is the calculation that relates fov to zoom and focus?
It does not seem to be the same as Papervision