3dsMax extra light parameters MAX3D extension: Difference between revisions
Jump to navigation
Jump to search
Created page with the current 3.03 information. |
(No difference)
|
Revision as of 00:39, 28 June 2007
Extension information |
---|
|
This article is part of the COLLADA extensions directory |
Adding to the extensions directory |
Max Light Parameters
This <extra> at the <light> level includes extra light parameters supported by ColladaMax to express 3dsMax-specific features.
It is worth mentioning that <ambient> lights are not a standard type of light in 3dsMax. Instead of an ambient light in the scene graph, like COLLADA has, 3dsMax has one global ambient light color parameter. On import, ColladaMax will merge all the ambient lights from the scene graph into one. On export, ColladaMax will create one ambient light in the current visual scene.
The following parameters are present on all three types of light directly supported by 3dsMax: <directional>, <spot> and <point> lights.
Element | Attributes supported | Description |
---|---|---|
<decay_type> | Enumerated-type value. | |
<decay_start> | sid | Float. This element's contents can be animated using the sid attribute. |
<use_near_attenuation> | Boolean. | |
<near_attenuation_start> | sid | Float. This element's contents can be animated using the sid attribute. |
<near_attenuation_end> | sid | Float. This element's contents can be animated using the sid attribute. |
<use_far_attenuation> | Boolean. | |
<far_attenuation_start> | sid | Float. This element's contents can be animated using the sid attribute. |
<far_attenuation_end> | sid | Float. This element's contents can be animated using the sid attribute. |
Examples
<light id="directional-light"> <technique_common> <directional> <color>1 1 1</color> </directional> </technique_common> <extra> <technique profile="MAX3D"> <decay_type>0</decay_type> <decay_start>40</decay_start> <use_near_attenuation>0</use_near_attenuation> <near_attenuation_start>0</near_attenuation_start> <near_attenuation_end>40</near_attenuation_end> <use_far_attenuation>0</use_far_attenuation> <far_attenuation_start>80</far_attenuation_start> <far_attenuation_end>200</far_attenuation_end> </technique> </extra> </light>
<light id="point-light"> <technique_common> <point> <color>1 1 1</color> <constant_attenuation>1</constant_attenuation> <linear_attenuation>0</linear_attenuation> <quadratic_attenuation>0</quadratic_attenuation> </point> </technique_common> <extra> <technique profile="MAX3D"> <decay_type>0</decay_type> <decay_start>40</decay_start> <use_near_attenuation>0</use_near_attenuation> <near_attenuation_start>0</near_attenuation_start> <near_attenuation_end>40</near_attenuation_end> <use_far_attenuation>0</use_far_attenuation> <far_attenuation_start>80</far_attenuation_start> <far_attenuation_end>200</far_attenuation_end> </technique> </extra> </light>
<light id="spot-light"> <technique_common> <spot> <color>1 1 1</color> <constant_attenuation>1</constant_attenuation> <linear_attenuation>0</linear_attenuation> <quadratic_attenuation>0</quadratic_attenuation> <falloff_angle>43</falloff_angle> <falloff_exponent>0</falloff_exponent> </spot> </technique_common> <extra> <technique profile="MAX3D"> <decay_type>0</decay_type> <decay_start>40</decay_start> <use_near_attenuation>0</use_near_attenuation> <near_attenuation_start>0</near_attenuation_start> <near_attenuation_end>40</near_attenuation_end> <use_far_attenuation>0</use_far_attenuation> <far_attenuation_start>80</far_attenuation_start> <far_attenuation_end>200</far_attenuation_end> </technique> </extra> </light>