Optics modo 401 extension

From COLLADA

Jump to: navigation, search
Extension information
This article is part of the COLLADA extensions directory
Adding to the extensions directory

Contents

<extra>/<technique profile="modo401">/<param> Elements

Category: (core) Camera (See list of specification categories)
Introduction: Describes custom cameras, include the specialized spherical camera sub-type supported by modo 401.

Concepts

The modo render engine provides a general purpose camera, including perspective and orthographic optics as specified by the common COLLADA technique, as well as a specialized spherical camera.
Attributes
NameTypeDescriptionRequired?
sidxs:ncnameA unique symbol within the technique; one for each param.Yes
namexs:ncnameA user-friendly name for the param.no
Related Elements
Parent element(s) <camera>/<optics>
Extra and/or Technique <extra>/<technique profile="modo401">
Child elements None
Other
Child Elements
sidnameDescriptiontypeDefaultOccurrencesNamed values
targetIDTarget_Node_IDID of the item targeted by this cameraName 0 or 1
targetEnableTarget_EnableIf targeting is enabledboolfalse0 or 1
targetFocusTarget_FocusIf camera focus is linked to target distanceboolfalse0 or 1
targetTarget_DistanceDistance at which camera should focus on targetfloat5.00 or 1
targetRollTarget_RollAngular offset from target along look axisfloat00 or 1
projTypeProjection_TypeOptical projection typeNamepersp1persp, ortho, spherical
focalLenFocal_LengthDistance from center of lens to focal pointfloat0.051
distortLens_DistortionAmount of lens distortionfloat00 or 1
squeezeLens_SqueezeHorizontal lens squeezefloat1.00 or 1
focusDistFocus_DistanceDistance at which image is in focusfloat40 or 1
fStopF-StopFocal length divided by effective aperture diameterfloat40 or 1
blurLenBlur_LengthLength of blurfloat0.50 or 1
blurOffBlur_OffsetOffset of blurfloat00 or 1
ioDistInterocular_DistanceDistance between stereo imagersfloat0.0650 or 1
convDistConvergence_DistanceDistance at which stereo imagers convergefloat10 or 1

Details

The target-related params should only appear if the initial targetID param is present, as those channels are only available for cameras which have a target set. The target-related channels are added during scene load only when a targetID is found.

Examples

   <library_cameras>
       <camera id="Camera-Camera" name="Camera">
           <optics>
               <technique_common>
                   <perspective>
                       <xfov sid="HFOV">39.5978</xfov>
                       <yfov sid="YFOV">26.9915</yfov>
                       <znear sid="near_clip">0.01</znear>
                       <zfar sid="far_clip">10000</zfar>
                   </perspective>
               </technique_common>
               <technique profile="modo401">
                   <param sid="targetID" name="Target_Node_ID" type="Name">Geometry-MeshNode</param>
                   <param sid="targetEnable" name="Target_Enable" type="bool">true</param>
                   <param sid="targetFocus" name="Target_Focus" type="bool">true</param>
                   <param sid="target" name="Target_Distance" type="float">5</param>
                   <param sid="targetRoll" name="Target_Roll" type="float">1</param>
                   <param sid="projType" name="Projection_Type" type="Name">persp</param>
                   <param sid="focalLen" name="Focal_Length" type="float">0.05</param>
                   <param sid="distort" name="Lens_Distortion" type="float">0</param>
                   <param sid="squeeze" name="Lens_Squeeze" type="float">1</param>
                   <param sid="focusDist" name="Focus_Distance" type="float">4</param>
                   <param sid="fStop" name="F-Stop" type="float">4</param>
                   <param sid="blurLen" name="Blur_Length" type="float">0.5</param>
                   <param sid="blurOff" name="Blur_Offset" type="float">0</param>
                   <param sid="ioDist" name="Interocular_Distance" type="float">0.065</param>
                   <param sid="convDist" name="Convergence_Distance" type="float">1</param>
               </technique>
           </optics>
       </camera>
   </library_cameras>
Personal tools