Table of Contents
VR Juggler comes with several sample applications in its
samples directory tree. Many of them are very simple
and are designed to demonstrate a specific feature of VR Juggler or a
technique to use when writing your own applications. This chapter lists
the current sample applications as of this writing and gives a quick
description of what you as a potential developer might find interesting in
the code. Those users who just want to run applications can safely skip
this chapter.
Some sample applications designed for getting started with VR
Juggler are found in
$VJ_BASE_DIR/share/vrjuggler/samples/OGL/simple.
All of these applications were designed to be used as part of courses
teaching people how to write VR Juggler applications using OpenGL. They
contain clear comments explaining what the code is doing, and they are
intended to be as simple as possible. These tutorials are as
follows:
simpleInput: An application that demonstrates how to get input from devices. No graphics are rendered with this application. It is intended to be a starting point for getting an understanding of how user input is queried.
SimpleApp: A very simple OpenGL application that draws a small cube in space and draws the coordinate axes for the cube.
contextApp: An application demonstrating how to use OpenGL display lists in VR Juggler applications. This extends SimpleApp by using a display list to draw a cube and by moving the cube with the wand.
ConfigApp: A relatively simple application that demonstrates how user-level code can take advantage of the VR Juggler configuration system, JCCL.
MPApp: A more complex OpenGL application that demonstrates how to do multi-processing in VR Juggler applications. As it exists in its distributed form, no multi-processing is done. A more detailed lesson is available that explains how to extend the application to employ multi-processing techniques.
For a step-by-step lesson how to use these applications to learn VR Juggler application programming, please refer to the Programmer's Guide. It contains sections explaining each of the above applications in great detail. Each lesson ends with an exercise where the reader extends the application to include some new functionality.