XSI_Camera

Describes a camera.

As of Crosswalk v2.6 the Field of view angle can be overriden for importing from Maya by including the XSI_CameraFocalLength template.

Introduced

6.0

Template

XSI_Camera {
   <std>,
   <aspect>,
   <fov>,
   <fovtype>,
   <proj>,
   <orthoheight>,
   <interestdist>,
   <near>,
   <far>,
   <projplane>,
   <projplanewidth>,
   <projplaneheight>,
   <projplaneoffx>,
   <projplaneoffy>,

   // here is where the XSI_CameraFocalLength template may appear
}

Members

Member name

Type

Description

std

Integer

Standard preset for the camera (refer to the XSI camera standard)

aspect

Float

Aspect ratio

fov

Float

Field of view angle

fovtype

Integer

Field of view type. Possible values:

• 0=vertical

• 1=horizontal

proj

Integer

Projection type. Possible values:

• 0=orthographic

• 1=perspective

orthoheight

Float

Ortho height

interestdist

Float

Distance to interest

near

Float

Near plane

far

Float

Far plane

projplane

Boolean

True to use projection plane

projplanewidth

Float

Width of the projection plane

projplaneheight

Float

Height of the projection plane

projplaneoffx

Float

Offset X on the projection plane

projplaneoffy

Float

Offset Y on the projection plane

Example

XSI_Camera { 
   9,         // WideAngle, D1 4/3 720x486
   1.333333,  // Aspect Ratio
   115.620003, // Field of view angle
   1,         // Horizontal FOV type
   1,         // Perspective projection type
   0.100000,  // Ortho height
   20.099751, // Distance to center of interest 
   0.100000, // Near clipping plane
   32768.000000,  // Far clipping plane
   1,         // Enable projection plane
   0.188976,  // Width of projection plane
   0.141732,  // Height of projection plane
   0.000000,  // Offset X on the projection plane
   0.000000,  // Offset Y on the projection plane
}


Softimage|Crosswalk v3.11