Skip to content
mocap-ca edited this page Jun 5, 2014 · 2 revisions

The unity player provides the 3d rendering of the virtual view. A copy of Unity Pro is required to compile the player as Oculus Rift support is not provided with the free version of unity.

The script "MocapSocket.cs" provides the functionality to import the data from the RepeaterApp.

Tag objects in the scene as "mocap" if they are to be driven by mocap data.

If the object is coming from a rigidbody, it should be named the same as the rigidbody as defined by the mocap system, e.g. "LeftHandRigid". The rigidbody in the mocap system should have a joint named "root" which contains the correct transform data.

If the object is a segment of a joint as part of a character, it should named the same as the joint, e.g. "LeftFoot".

A way to differentiate multiple characters or rigidbodies needs to be implemented.

Communication to the Repeater can be done using TCP. Alternatively if the Repeater is running on the same machine, communication can be done using a named pipe by enabling the "useLocal" parameter of MocapSocket.cs.

The key commands for the repeater are:

? - Show Help
1 - Reset Oculus
B - Zero Body
H - Zero Hands
F - Zero Feet
M - Show Markers
Y - Debug Data
C - Connect
D - Disconnect
Clone this wiki locally