Creating Softimage Graphic Sequencer (XGS) Plug-ins
Display callbacks and passes use Softimage’s C++ API. Before you begin, make sure you have set up your environment as described in Building C++ Plug-ins.
In addition to these settings, the following header files are required when developing display callbacks and passes. For detailed information, see the C++ API Reference .
• xsi_graphicsequencercontext.h
When your display or pass callback is called in Softimage, a CGraphicSequencer object is instantiated, which provides services to enable custom rendering passes in the OpenGL viewport. This object is available via the GraphicSequencerContext which provides the plug-in context for graphic sequencer plug-ins in Softimage.
To register a new display callback, use the CGraphicSequencer::RegisterDisplayCallback function in the Init callback (see Injecting Display Callbacks into the Rendering Loop).
To register a new pass callback, use the same function (CGraphicSequencer::RegisterDisplayCallback) but with callback type siPass (see Initializing the Pass and Connecting to the Graphic Sequencer).
The graphic sequencer has access to global states that act as “cookies” and allow you to share public data between shaders or plug-ins and store per viewport data. The type of data that can be stored in these states includes integers, floats, pointers, vectors, and matrices. For more information on creating and manipulating XGS states, see Graphic Sequencer States.
Autodesk Softimage v7.5