<window>.setProjectionMatrix

Set the projection matrix of the window

 

<window>.setProjectionMatrix(
    matrix    
    eye = viz.BOTH_EYE    

)

 

matrix

viz.Matrix object


eye = viz.BOTH_EYE

The eye to apply the projection matrix to. Can be one of the following:
viz.BOTH_EYE
viz.LEFT_EYE
viz.RIGHT_EYE

If the value is viz.LEFT_EYE or viz.RIGHT_EYE, then Vizard will NOT automatically adjust the projection marix in stereo mode.


Remarks

This command will set the projection matrix of the window to the specified viz.Matrix object.

Auto-compute of aspect ratio will be disabled when using this command.

Return Value

None

Example

viz.MainWindow.setProjectionMatrix( viz.Matrix.frustum(-1,1,-1,1,0.1,100) )

See also

<window>.clip
<window>.fov
<window>.frustum
<window>.ortho