10.21. Camera Orientation File Format

A camera orientation file is used to define the location, orientation, and lens field of view angles. The orientation file can be restored in the Transformation Editor (Camera) dialog via the File → Restore camera position option. The restored values will apply to the camera selected and the aspect ratio information from the field of view angles will be applied to modify any viewport using the camera.

The file is keyword delimited. The keywords can appear anywhere in the file. Any line with a # sign in the first column is considered a comment line. Any blank line is also considered a comment line.

FORMAT: Must be set to CAMERA_SETUP

VERSION: Must be set to 1.0

CAMERA LOCATION: Three space delimited floating point values indicating the camera origin

CAMERA LOOK AT: Three space delimited floating point values indicating a point along the camera view axis. The combination of the look at and the camera location creates a camera view vector.

CAMERA ROTATION: Currently (version 1.0) ignored.

CAMERA FOV HORIZONTAL: A floating point value specifying the horizontal field of view angle of the camera lens

CAMERA FOV VERTICAL: A floating point value specifying the vertical field of view angle of the camera lens

10.21.1. Example

FORMAT:  CAMERA_SETUP 
VERSION:  1.0 
# 
#  camera location is the coordinate location of the camera  
# 
CAMERA LOCATION:  -1500 50 150 
# 
#  camera look at is the 3D coordinate of the center pixel of the IR image  
# 
CAMERA LOOK AT:  0. 50 150 
# 
# camera rotation in degrees about the axis from the camera location to the look at point.  
# Right hand rule. 
# 
CAMERA ROTATION:  0. 
# 
# field of view values in degrees for the horizontal and vertical axis of the lens  
#  
CAMERA FOV HORIZONTAL:  21.0 
CAMERA FOV VERTICAL: 15.75