This example shows how to integrate a game render window and modtool into Softimage.
Features demonstrated in this example:
Location | |
Files |
XSIGameControlPanel2.js
XSIGameControlPanelUI.cpp
XSIGameControlPanelUI.h
XSIGameInterface.cpp
XSIGameInterface.h
XSIGameInterface.vcproj
XSIGameInterfaceUI.cpp
XSIGameInterfaceUI.h
CharacterOptimizer.cpp
CharacterOptimizer.h
CharacterOptimizer.vcproj
The Engine and Game folders contain the code for the actual game. |
To run the example
Softimage SDK includes a compiled version of XSIGame. If you modify the code, you can rebuild the game by following these instructions.
To build the example on Windows
Download and install the required libraries:
C:\Glut\gl
).Open an Softimage command prompt.
Opening an Softimage command prompt ensures that environment variables such as XSISDK_ROOT are set.
In the Softimage command prompt, set the XERCESC_INC_PATH, GLEXT_INC_PATH, GLEXT_LIB_PATH, and CG_INC_PATH environment variables .
For example, if you installed XERCES in the folder
C:\xerces\bin
, GLUT in the folder
C:\Glut\gl
, then set the GLEXT environment variables
like this:
set XERCESC_INC_PATH=C:\xerces\bin set GLEXT_INC_PATH=C:\Glut set GLEXT_LIB_PATH=C:\Glut\gl
Start devenv and load the project you want to build:
Tip To load a project from the command line, type the name of the project in the devenv command line. For example:
devenv Engine\Engine.vcproj
Compile a specific configuration (Release or Debug) of XSIGame using Visual Studio .NET.
To set up AlienBrain
Install version 7.2 of the Alienbrain client and the Softimage integration.
Add the XSIGame files to Alienbrain server.
The idea is to put all the files (3D assets and code files) into alienbrain and base the asset management workflow on AlienBrain.
This example uses the following keywords:
C++ example, ViewContext, PutUserData, GetUserData, Notify, CreateDialog, RegisterCustomDisplay, siEventID, GetNotificationData, AlienBrain, Custom Display Host