setCameraReset

Sets the camera reset position.

Signatures

  • Paramate.Viewport.setCameraReset( resetCamera )

Details

The camera reset position is a set of camera values that is applied to the camera when the resetCamerafunction is called.

The camera reset position is retrieved by the preconfigure request and represents the 'neutral position' of a configurator.

The reset camera view is automatically adjusted when the 3d model is changed. This happens in the updateCamOnObjectInfoChange()function.

Parameters

resetCamera

(optional) Parameter container for setting the reset camera position.

The object should contain the following properties:

Name Type Description
origin 3-vector (float array) Center of the camera rotation. The camera is heading into this direction. Typically the origin lies close to the center of the 3d model.
focus 3-vector (float array) The actual position of the camera.
view 3-vector (float array) Camera orientation vector: the camera is heading into this direction. Must be orthogonal to top and right vector.
top 3-vector (float array) Camera orientation vector: defines the direction that points straight upwards (as seen from the camera's coordinate system). Must be orthogonal to view and right vector.
right 3-vector (float array) Camera orientation vector: defines the direction that points straight to the right (as seen from the camera's coordinate system). Must be orthogonal to view and top vector.
aperture float Camera angle of view in degrees.

If the parameter is omitted, the "trinckle default view" is used: the camera is placed on the positive X axis, looking into origin direction (i.e. view vector in negative X direction). The +Y axis points to the right and the +Z axis to the top of the camera.

See also