Common light parameters FCOLLADA extension

From COLLADA Public Wiki
Revision as of 02:19, 21 June 2007 by Glaforte (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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

Common Light Parameters

This <extra> at the <light> level includes common light parameters supported directly by the FCollada library and used within ColladaMax, ColladaMaya and/or the Feeling Viewer. Each standard type of light has its own additional common light parameters.

Light type Elements Supported
<ambient> <intensity>
<point> <intensity>
<directional> <intensity>, <target_default_dist>
<spot> <intensity>, <target_default_dist>


Element Attributes supported Description
<intensity> sid Contains one floating point value: a multiplicative factor for the light's color. This element's contents can be animated using the 'sid' attribute.
<target_default_dist> sid Contains one floating point value: the default distance of the expected light target for non-targeted lights. For targeted lights, this element should not be present. This element's contents can be animated using the 'sid' attribute.

Examples

 <light id="ambient_light">
   <technique_common>
     <ambient>
       <color>1 1 1</color>
     </ambient>
   </technique_common>
   <extra>
     <technique profile="FCOLLADA">
        < !-- The animation target pointer for this element would be: 'ambient_light/intensity' -- >
        <intensity sid="intensity"> 1.0 </intensity>
        <target_default_dist> 240 </target_default_dist>
     </technique>
   </extra>
 </light>