Rendering (XSISDK)

Traversing a Render Tree

A Render tree is a graph of Shader nodes connected together, with the final output being a Material object. The output of a particular Shader will "drive" the Parameter value of another node. Use the Parameter.Source (http://softimage.wiki.avid.com/sdkdocs/Parameter_Source.htm) property (Parameter::GetSource in C++ API) to find a Shader that drives a Parameter.

It is possible to do a recursive scan from the Material back to all the Shaders of the tree, using Parameter.Source. Because a single Shader can output to multiple shaders such a recursion may visit any particular node multiple times.

For example code see Shader Reference (http://softimage.wiki.avid.com/sdkdocs/Shader.htm).

This page was last modified 09:51, 6 Jan 2006.
This page has been accessed 1407 times.