<window>.fov

This action sets the vertical field of view and aspect ratio of a window

 

<window>.fov(
    verticalFOV    
    h2vRatio = 1.0    

)

 

verticalFOV

Specifies the vertical field of view for the subwindow in degrees.


h2vRatio = 1.0

Specifies the horizontal to vertical aspect ratio of the subwindow.

If viz.AUTO_COMPUTE, the aspect ratio will be automatically set to the size of the window.


Remarks

Use this action to modify the perspective transformation properties of the subwindow. Ideally, one should match the rendered field-of-view to the display field of view. For information on achieving this, see here.

Return Value

None

Example

viz.MainWindow.fov(50, 1.333)

See also

<window>.clip
Perspective Rendering