Difference between revisions of "Targeted camera and light FCOLLADA extension"

From COLLADA Public Wiki
Jump to: navigation, search
Line 30: Line 30:
 
       </node>
 
       </node>
 
       <node id="Camera_Target-node">
 
       <node id="Camera_Target-node">
         < !-- It is suggested that this node be a 'locator': just transforms, no instances. -- >
+
         < !-- It is suggested that this node be a 'locator': some transforms, no instances and child nodes. -- >
 
       </node>
 
       </node>
 
     </visual_scene>
 
     </visual_scene>
 
   </library_visual_scenes>
 
   </library_visual_scenes>

Revision as of 19:28, 20 June 2007

Extension information
  • Purpose: unstated
  • Company(s): Feeling Software
  • Product(s): FCollada
  • Last updated: unstated
  • Contact for technical issues:
This article is part of the COLLADA extensions directory
Adding to the extensions directory

Targeted Cameras and Lights

This <extra> at the <camera> or <light> level defines a targeted camera or light. It does not instantiate the target scene node, so that it is mutually exclusive with multiple camera and light instances. While the camera node may include rotation transforms, only the roll and translation should affect the final placement of the camera and light, while the orientation is determined by the relative position of the targeted scene node.

Element Name Description
target The url of the scene node target.

Example

 <library_cameras>
   <camera id="Camera">
     <optics>...</optics>
     <extra>
       <technique profile="FCOLLADA">
         <target>#Camera_Target-node</target>
       </technique>
     </extra>
   </camera>
 </library_cameras>
 ...
 <library_visual_scenes>
   <visual_scene id="VisualScene">
     <node id="Camera-node">
       <instance_camera url="#Camera"/>
     </node>
     <node id="Camera_Target-node">
       < !-- It is suggested that this node be a 'locator': some transforms, no instances and child nodes. -- >
     </node>
   </visual_scene>
 </library_visual_scenes>