User guide

50
Running an SGG Plug-in
The creation of scene graph data by SGG plug-ins is executed through the ScenegraphGeneratorResolve node or
through an implicit resolver, when triggered by a render, for example. Both operate on locations of type
scenegraphGenerator that contain attributes that describe SGG plug-ins to run, including arguments that are
passed along to the plug-ins as a way to control and customize how they create locations and attributes. The easiest
way to create a scenegraphGenerator location with the relevant attributes is by using a ScenegraphGeneratorSetup
node.
ScenegraphGeneratorSetup
The ScenegraphGeneratorSetup node is used to create a location of type scenegraphGenerator. Each
ScenegraphGeneratorSetup node has a field for name, a field for the optional resolveIds, a drop-down menu
showing each available generatorType, and fields for the args for the selected generatorType.
NOTE: The args shown in a ScenegraphGeneratorSetup node depend on the args specified in the
ScenegraphGenerator itself, and so many vary from those shown above.
Prior to being resolved, the ScenegraphGeneratorSetup node, whose parameters are shown above, creates the scene
graph location /root/world/geo/ScenegraphGenerator of type scenegraphGenerator. This location contains a
group of attributes named scenegraphGenerator with the name of the selected SGG plug-in and the arguments as
they are set up under args. For example, the attribute data for a ScenegraphGenerator location of type CubeMaker
is structured like this:
scenegraphGenerator group attribute
generatorType "CubeMaker"
args group attribute
system group attribute (used internally)
timeSlice group attribute
currentTime 1
8 SCENE GRAPH GENERATOR PLUG-INS | RUNNING AN SGG PLUG-IN