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.
The OpenGL sample applications are in $VJ_BASE_DIR/share/samples/ogl. They are as follows:
Analog: A very simple demo that allows you to test out analog input to VR Juggler. Use an analog simulator, or a real analog device (like a potentiometer hooked up to an IBOX, etc), you can move a cube from the floor to 6 feet above the floor.
This demo is well documented within the header comments. Thus, it would also be a good application for you to learn VR Juggler. It is, however, a very basic application without any interesting features.
Cones: A 10×10×10 array of cones in space. The cones are created using GLU quadrics. Navigation is done using quaternions and is not recommended as a basis for navigation in most applications.
Cubes: A 10×10×10 array of cubes in space. The cubes are created using OpenGL display lists. This is the best example of using display in VR Juggler and should be studied carefully. Navigation is done using quaternions and is not recommended as a basis for navigation in most applications.
Torus: A very, very simple that renders a purple torus at a key point in space. That is, the torus is positioned such that in a CAVE-like device, the center of the torus is at the lower left corner of the device where the front wall, left wall, and floor meet. It is designed specifically to test VR Juggler's handling of multiple walls and projection alignment (in an extremely crude manner). Lighting of the torus is done with a flashlight on the wand but should not be used as an example of doing lighting in VR Juggler. The behavior of the flashlight is very hard to predict.
Wand: A trivial program showing how to get input from a wand using digital inputs (buttons). This application is designed primarily as a tool to test wand tracking and button input in a VR system.
Texture: An application demonstrating the use of OpenGL texture objects (and display lists). It includes code for loading many different texture formats: SGI RGB and RGBA, BMP, TGA (24 and 32 bit), and PCX.
This demo is well documented within the header comments. This is a good example for you to start learning VR Juggler.
Combo: A collection of Cubes, Torus, and Wand that demonstrates how to cycle between three VR Juggler OpenGL applications.
Glove: An example of picking up objects with a glove and navigating through an environment.
Simple Glove: A very simple application that shows how to use the VR Juggler glove interface with a gesture interface.
Digital Glove: Based on Simple Glove, this is another simple application that shows how to use the VR Juggler glove interface but this time with digital interfaces for each finger.