![]() |
DI-Guy SDK Documentation
13.5
|
The DI-Guy SDK offers many sample programs to help get you started.
Examples are in ./programming_examples.
The contents of the DI-Guy programming examples for Windows is as follows:
OpenGL examples. This is the main programming example directory. It contains examples of working with the DI-Guy OpenGL solution and demonstrates common API features across all rendering platforms.
Graphics API examples. The Graphics API is DI-Guy’s open source class-based method for integrating DI-Guy character graphics with various rendering solutions, including OpenGL, OpenSceneGraph, and DirectX 9. The demos show both Immediate Mode (OpenGL), Scene Graph (OpenSceneGraph) style and DirectX 9 rendering.
DI-Guy networking. SDK examples of broadcasting and receiving human characters for DIS, HLA 1.3, and HLA 1516. The examples use VR-Link, but are intended to assist developers with networking DI-Guy with other third party and customer proprietary networking solutions.
Plug-ins. You can create plug-ins, that is, dynamically linked libraries that can be optionally linked to DI-Guy applications at load time. The most typical use is plug-in software that supplements DI-Guy Scenario.
DI-Guy digest. The DI-Guy digest is an XML file that describes DI-Guy content in detail, including character types, appearances, and motion information. Users that create custom content can recompile the digest, so that their content will be part of the digest.
Some of the exampless require 3rd-party dependencies that aren't shipped with DI-Guy. For the examples to locate these dependencies, certain environment variables need to be set to prior to building them.
These environment variables are as follows:
To build examples on windows, ensure any necessary environment variables are set before opening the solution for the examples you want to build. Once the solution is opened in Visual Studio, build the examples you're interested in.
To build examples on windows, ensure any necessary environment variables are set before navigating to the directory for the examples you want to build. Once in the right directory build the examples by running make (a specific project can be specified as a target to the make command).
OpenGL is DI-Guy’s default for programming examples. This means that the diguy_ogl directory contains a far more extensive set of examples than the other directories. This does not mean that functionality shown in the OpenGL examples does not work on the other platforms. In fact, the opposite is true. Even if you are not using the DI-Guy OpenGL renderer, do not let that stop you from using the DI-Guy OpenGL examples, which demonstrate lots of DI-Guy functionality that works on all the platforms. There are also a few examples in the dx9 directory, such as intersection example, that are quite useful.
[Home] [Top of Page]