This chapter describes procedures and precautions for creating cameras or lights by using NintendoWare in Maya.
Single-node, two-node (Camera and Aim), and three-node (Camera, Aim, and Up) cameras are supported.
Both perspective camera and orthographic camera are supported as projection methods. Set orthographic camera by selecting the Orthographic attribute for the camera node.
A camera is not exported if the Visibility attribute of the camera's transform node is not selected, or the Template attribute is selected. (If an animation has been set, this is determined by the value of start frame.)
For single-node cameras, the zxy value is recommended for the transform node's Rotate Order attribute.
Set the camera Scale attribute for the camera node to 1.0.
The aspect ratio is configured by using the Horizontal/Vertical Film Aperture attribute of the camera node, or the Film Aspect Ratio of the Attribute Editor.
To configure the angle of view, use one of the following options: the Focal Length attribute of the camera node, the Angle of View attribute data for the Attribute Editor, or the NW4C Set Camera Fovy plug-in.
Note that Angle of View is the angle of view in the horizontal direction. It differs from the fovy, which is the angle of view in the vertical direction that is exported to the intermediate file.
If you want the Fovy as configured with CreativeStudio to be included in Maya, use the NW4C Set Camera Fovy plug-in.
The relationship between the angle of view in the horizontal direction and the angle of view in the vertical direction is determined by the aspect ratio.
The following equation describes Fovy's dependence on vertical film aperture and focal length:
Fovy = 2 * atan(VerticalFilmAperture * 0.5 / (FocalLength * 0.03937))
where 0.03937 is a coefficient used to convert focalLength, expressed in millimeters, to verticalFilmAperture, expressed in inches.
When Fit Resolution Gate is not Vertical, the Orthographic Width attribute is taken as the width of the view volume, and the height (Height in the intermediate file) is calculated from the aspect ratio and exported. When Fit Resolution Gate is Vertical, the Orthographic Width attribute is taken as the view volume's height and exported without modification.
The following attributes are included in the intermediate files.
Global coordinate values are exported for the camera translate and rotate. If the transform node for the camera, the Aim locator, and the Up locator have a parent node, the Translate, Rotate, and Scale of the parent node are also reflected.
Ambient light, directional light, point light, and spotlight are supported.
A light is not exported if the Template attribute of the light's transform node is selected. (If n animation has been set, this is determined by the value of the Start frame.)
The following attributes are included in the intermediate files.
Global coordinates values are exported for the light's translate and direction. If the transform node for the light has a parent node, the Translate, Rotate, and Scare settings of the parent node are also reflected. These settings also include visibility of the parent node.
CONFIDENTIAL