Maya extra camera parameters MAYA extension: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Glaforte (talk | contribs)
No edit summary
 
Glaforte (talk | contribs)
No edit summary
Line 2: Line 2:


== Maya Camera Parameters ==
== Maya Camera Parameters ==
This <extra> at the <camera> level includes extra camera parameters supported ColladaMaya to express Maya-specific features.
This <extra> at the <camera> level includes extra camera parameters supported ColladaMaya to express Maya-specific features. Currently, there are four such camera parameters. They apply to both perspective and orthographic cameras.


Currently, there are four such camera parameters. They apply to both perspective and orthographic cameras.


{| border=1 cellspacing=0 cellpadding=3 align=center
{| border=1 cellspacing=0 cellpadding=3 align=center
Line 10: Line 9:
!width=20%| Element !! Attributes supported !! Description  
!width=20%| Element !! Attributes supported !! Description  
|-
|-
| <film_fit> || || Contains one enumerated-type value that represents how to fit the camera on a render surface that doesn't match the wanted camera lens. 0: fill the surface, 1: fit horizontally, 2: fit vertically, 3: overscan fit.
| <film_fit> ||   || Contains one enumerated-type value that represents how to fit the camera on a render surface that doesn't match the wanted camera lens. 0: fill the surface, 1: fit horizontally, 2: fit vertically, 3: overscan fit.
|-
|-
| <film_fit_offset> || sid || Contains one floating-point value: the amount to move the smaller image within the larger one. This value is in inches and is animatable using the sid attribute.
| <film_fit_offset> || sid || Contains one floating-point value: the amount to move the smaller image within the larger one. This value is in inches and is animatable using the sid attribute.
Line 19: Line 18:
|-
|-
|}
|}


== Examples ==
== Examples ==
     <camera id="perspective-camera">
     <camera id="camera">
       <extra>
       <extra>
         <technique profile="MAYA">
         <technique profile="MAYA">

Revision as of 00:01, 25 June 2007

Extension information
This article is part of the COLLADA extensions directory
Adding to the extensions directory

Maya Camera Parameters

This <extra> at the <camera> level includes extra camera parameters supported ColladaMaya to express Maya-specific features. Currently, there are four such camera parameters. They apply to both perspective and orthographic cameras.


Element Attributes supported Description
<film_fit> Contains one enumerated-type value that represents how to fit the camera on a render surface that doesn't match the wanted camera lens. 0: fill the surface, 1: fit horizontally, 2: fit vertically, 3: overscan fit.
<film_fit_offset> sid Contains one floating-point value: the amount to move the smaller image within the larger one. This value is in inches and is animatable using the sid attribute.
<film_offsetX> sid Contains one floating-point value: an horizontal film back offset. This value is in inches and is animatable using the sid attribute.
<film_offsetY> sid Contains one floating-point value: a vertical film back offset. This value is in inches and is animatable using the sid attribute.


Examples

   <camera id="camera">
     <extra>
       <technique profile="MAYA">
         <film_fit>1</film_fit>
         <film_fit_offset>0.2</film_fit_offset>
         <film_offsetX>0</film_offsetX>
         <film_offsetY>0.5</film_offsetY>
       </technique>
     </extra>
   </camera>