This example contains a Display Callback (MyClearScreenBuffer) and a Display Pass (MyCustomPass).
Location | |
Files |
ClearScreenBuffer.cpp
CustomPass.cpp
SampleDisplayCallback.cpp
SampleDisplayCallback.h
GNUmakefile
SampleDisplayCallback.vcproj
|
To run the example
In a viewport, click the display type (for example, Wireframe) and then choose Realtime Shaders > MyCustomPass. Show me
After you select MyCustomPass, the MyClearScreenBuffer display callback changes the background color.
The Softimage SDK includes a compiled version of SampleDisplayCallback. If you want to modify the code, you can rebuild the example by following these instructions.
To build the example on Windows
Open an Softimage command prompt, and type devenv to start Visual Studio .NET.
Starting Visual Studio .NET from an Softimage command prompt ensures that environment variables such as XSISDK_ROOT are set (otherwise you'll get build and link errors).
Tip To load the SampleDisplayCallback project from the command line, type:
devenv SampleDisplayCallback.vcproj
To build the example on Linux
In a shell (tcsh) window, type:
source $XSI_HOME/.xsi_<xsi_version>
Change directories to
cppsrc
To remove all intermediate files before building the example, run this command:
gmake clean
To compile the example, run this command:
gmake
This example uses the following keywords:
C++ example, RegisterDisplayCallback, RegisterDisplayPass, GraphicSequencerContext, CGraphicSequencer, RenderSceneUsingMode, RenderListUsingMode, siRealtimePortMaterial, siPostBeginFrame, GetGraphicSequencer