Cyberglove Demo


This demo was prepared for Siggraph 94 for the demonstration of MOCA and
the use of the Reality Engine on the Onyx. It also features BeatBox, a
version of action which supports hot keys while Action is in playback mode.


Description:

The demo itself uses the arm cut off of the Viewpoint man animated by the
skeleton sop. This provides the fastest way to animate geometry. Using
skinned cross-sections and rotation channels proved to be too slow since
there is too much data cooking in the Sop's.

The rotation channels of the ellipses in the skeleton sops were then mapped
to specific channels coming from the Cyber Glove through moca. When using
moca inside Action, it is best to start it by typing "moca" in the textport.
You then load in the file in the moca directory, in this demo it is called
cyberpol.most. This file contains all the setups for the CyberGlove as well
as the Polhemus tracker connected to the wrist of the glove.

moca requires that the segments for the interfaced channels be set to raw.
This is a concern when using the skeleton sop with the initialization frame
set to a specific time (eg. Tend) and you initialize the channels to raw from
within moca. This may corrupt the initialization frame. I manually
adjusted the channels to raw with a timemark separating the Raw input segment
from the constant or ease segment used to position the ellipses for the
skeleton. You can now export the skeleton initialization from the bmot by first
writing a skeletion file by using the "write skel file" button in the skeleton
SOP. You can then read in the skeleton file using the "read skel file button"
and selecting the "default.skel" file. It is still wise to keep the Tend
skeleton initialization intact if you wish to alter the hand geometry at a
later date. Therefore be careful with moca using the "Set active channels
to raw in Action" feature in the Options button in the device channel editor
for all moca devices.


Other Features

The demo features the Trail SOP. It is used to draw polygons while the hand
is playing back or capturing data through MOCA. One of the polygons in the tip
of the index finger is creating the point positions for the trail sop to
follow. It then connects these positions with columns. If you have beatbox, use
the "1" key to toggle display of the trail on and off.

Attractors are also used to affect a particle stream from the finger.
The particle stream is toggled on and off using the "2" key in beatbox Action.
The particles will be attracted to the dumbell object's two spheres.



Textures

The texture for the hand was done by placing textures on the original geometry
using Lava and the interactive texture placement interface. The hand consists 
of two scans which were distorted in Mojo to properly cover the wireframe hand
in it's rest position where all the fingers were flat. After all the materials
were placed on the geometry, the unwrap feature in Lava was used to create
a texture pic file plus a triangulated polygon file. Each polygon now has an
individual texture map. This allows for the fastest playback of a multi-
textured object to be completely viewed in gouraud mode in Action. You can view
the textures in the materials stored in Action. The edges of some of the
texture maps were feathered in Lava. This is an unsupported feature. This is
used to feather out one texture map into another based on angle of normals.
This feature was used to feather the two hand scans together.

BeatBox and the beat keys

If available to you, you can investigate the beat keys. They allow you to
manipulate Action while in playback mode. For a description on how to use
the beatkeys, see beatkeys.txt.
In this demo, the beat keys are used to toggle displays on and off as well
as trigger on the deformation of geometry. Some of the keys are just on/off
triggers while the majority of the beatkeys are to be used in conjunction
with the mouse.
	Beat Box Presets (press z for preset window)

	Key	Description
	-----------------------------------------
	1	draw_1/display on or off
	2       emit_1/spare1 shoots particles
	B       cam4 on
	C       cam2 on
	E       lring4/spare1 length -lengthens the finger using mouse-x
	N       cam5 on
	Q       lind4/spare1 length -lengthens the finger using mouse-x
	R       lpink4/spare1 length -lengthens the finger using mouse-x
	V       cam3 on
	W       lmid4/spare1 length -lengthens the finger using mouse-x
	X       camera1
	Z       display beat box presets in an window

Pressing the key will perform the action preset in the beat box. The same
caution should be used with the beat keys when using the stuff channel feature
since it will force all the segments in the channel to raw (may move the
ellipses in a skeleton sop).


