The viewpoint can be set in an orbit around the data model, using the polar coordinates theta
and phi
. Alternatively, it can be set in a completely general way using the 4x4 matrix
userMatrix
. If userMatrix
is specified, theta
and phi
are ignored.The pointing device of your graphics user-interface can also be used to
set the viewpoint interactively. With the pointing device the buttons are by default set as follows:
[object Object],[object Object],[object Object]
If the fov
angle is set to 0, a parallel or orthogonal
projection is used. Small non-zero values (e.g. 0.01 or less, but not
0.0) are likely to lead to rendering errors due to OpenGL limitations.