Material FX Composer 2 extension: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
extensions->extension |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{extension|company=NVIDIA|product=FX Composer 2}} | |||
== Scene Bindings == | |||
FX Composer 2.0 allows binding of lights, cameras and node properties to materials. | |||
The internal mechanism automatically binds scene item parameters such as light position, color, direction, transformation to material parameters. | |||
To store these bindings in Collada files, FX Composer 2.0 uses an extra at the material level (material). | |||
{| border=1 cellspacing=0 cellpadding=3 align=center | |||
|- | |||
!width=20%| <bind_object> Attributes !! Description | |||
|- | |||
| object || The name of the binding connection at the material level. Binding connections are defined in shader parameter annotations | |||
|- | |||
| target || The target node | |||
|- | |||
| sid || The sid of the instance object to bind to | |||
|} | |||
== Example == | |||
<material id="Material" name="New_Effect_Material"> | <material id="Material" name="New_Effect_Material"> | ||
<instance_effect url="#Effect"> | <instance_effect url="#Effect"> | ||
[...] | |||
</instance_effect> | </instance_effect> | ||
<extra type="bind_object"> | <extra type="bind_object"> | ||
<technique profile=" | <technique profile="NVIDIA_FXCOMPOSER"> | ||
<bind_object object="pointlight0" target="#Node2" sid="FXLightInstance"/> | <bind_object object="pointlight0" target="#Node2" sid="FXLightInstance"/> | ||
</technique> | </technique> | ||
</extra> | </extra> | ||
</material> | </material> |
Latest revision as of 05:00, 23 February 2009
Extension information |
---|
|
This article is part of the COLLADA extensions directory |
Adding to the extensions directory |
Scene Bindings
FX Composer 2.0 allows binding of lights, cameras and node properties to materials. The internal mechanism automatically binds scene item parameters such as light position, color, direction, transformation to material parameters. To store these bindings in Collada files, FX Composer 2.0 uses an extra at the material level (material).
<bind_object> Attributes | Description |
---|---|
object | The name of the binding connection at the material level. Binding connections are defined in shader parameter annotations |
target | The target node |
sid | The sid of the instance object to bind to |
Example
<material id="Material" name="New_Effect_Material"> <instance_effect url="#Effect"> [...] </instance_effect> <extra type="bind_object"> <technique profile="NVIDIA_FXCOMPOSER"> <bind_object object="pointlight0" target="#Node2" sid="FXLightInstance"/> </technique> </extra> </material>