Difference between revisions of "Sync Configuration with an HTC Vive System"

 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
----
 
----
  
 +
{{Warning|'''OpenVR Driver'''
  
This article provides instructions on how to synchronize an OptiTrack Motion Capture system with an HTC Vive virtual reality system to avoid overlapping of the infrared tracking lights. The HTC Vive system also uses infrared LEDs and lasers for tracking their head mounted display (HMD) and controllers. When using an OptiTrack mocap system in conjunction with the HTC Vive system, the infrared tracking from the two systems can interfere with each other. For this reason, the two systems must be synchronized in a way so that the two different tracking lights do not temporally overlap. Currently, sync configurations with only OptiTrack Prime-series camera systems have been tested.
+
:This synchronization setup is not required for integrating HTC Vive with OptiTrack system. For integrating HTC Vive with OptiTrack system, please use the [[OptiTrack OpenVR Driver]]. This driver will completely override the tracking of an HTC Vive HMD so that the HMD can be tracked just using the OptiTrack system without the lighthouse base stations, and when using the OpenVR driver, synchronization between two systems is not necessary. This article is for specific applications where both lighthouse base station and the OptiTrack system must be running simultaneously.}}
 +
 
 +
{{Warning|'''Notes on the Sync Settings'''
 +
 
 +
:The sync settings listed on this page have not been tested with the latest version of the firmware. This means that the appropriate sync offset value indicated on this page might not be correct. For integrating into SteamVR, please consider using [[OptiTrack OpenVR Driver]] to completely override the tracking.
 +
}}
 +
 
 +
This article provides instructions on how to synchronize an OptiTrack Motion Capture system with an HTC Vive virtual reality system, specifically the lighthouse base stations, to avoid overlapping of the infrared tracking lights. The HTC Vive system also uses infrared LEDs and lasers for tracking its head-mounted display (HMD) and controllers. When using an OptiTrack mocap system in conjunction with the HTC Vive system, the infrared tracking from the two systems can interfere with each other. For this reason, the two systems must be synchronized in a way so that the two different tracking lights do not temporally overlap. Currently, sync configurations with only OptiTrack Prime-series camera systems have been tested.
  
 
Let’s go through the synchronization setup. The following setup instructions assume that the two tracking base stations of the HTC Vive system are set to channel b and c and are '''optically synchronized'''. The channel b base station will serve as the master device for synchronizing the two systems. Sync out signal from the channel b station will feed into one of the input ports on the eSync, and a sync offset (specified in microseconds, or μs) will be applied to so that IR lights from the two systems don’t interfere with each other. The following section describes the instructions in detail.
 
Let’s go through the synchronization setup. The following setup instructions assume that the two tracking base stations of the HTC Vive system are set to channel b and c and are '''optically synchronized'''. The channel b base station will serve as the master device for synchronizing the two systems. Sync out signal from the channel b station will feed into one of the input ports on the eSync, and a sync offset (specified in microseconds, or μs) will be applied to so that IR lights from the two systems don’t interfere with each other. The following section describes the instructions in detail.
  
 +
{{Info|'''Note:'''
 +
* The eSync 2 is required in order to synchronize HTC Vive lighthouses with the camera system.
 +
* Synchronization with Flex camera systems is not supported.
 +
}}
  
 
=Synchronization Configuration=
 
=Synchronization Configuration=
Line 25: Line 37:
  
 
====Step 3: Connect the sync output from the channel b base station into the input port 1 of the eSync synchronization hub.====
 
====Step 3: Connect the sync output from the channel b base station into the input port 1 of the eSync synchronization hub.====
<div style="margin-left:3em;">
+
<div class="padded">
 
The sync output of the base stations use 3.5 mm stereo (TRS) cables, whereas the Input ports of the eSync are BNC ports. You will need to use a stereo female to RCA male adapter (e.g. http://www.monoprice.com/product?p_id=5612) as well as an RCA-to-BNC adaptor (included with the eSync) to connect the channel b base station and the eSync hub. After attaching the stereo to RCA adaptor, connect the red RCA cable into the eSync using a BNC adapter, as shown in the following photo.</div>
 
The sync output of the base stations use 3.5 mm stereo (TRS) cables, whereas the Input ports of the eSync are BNC ports. You will need to use a stereo female to RCA male adapter (e.g. http://www.monoprice.com/product?p_id=5612) as well as an RCA-to-BNC adaptor (included with the eSync) to connect the channel b base station and the eSync hub. After attaching the stereo to RCA adaptor, connect the red RCA cable into the eSync using a BNC adapter, as shown in the following photo.</div>
  
Line 55: Line 67:
 
Now that the OptiTrack system’s shutter timing is synchronized with the base stations of the HTC Vive system, you will need to introduce a sync offset to avoid overlapping of the tracking lights. The following list of offset sync parameters are tested to avoid the interference.  Input these parameters into the Synchronization pane.  If you wish to increase the final frame rate of the mocap system, you will need to apply a multiplier.  
 
Now that the OptiTrack system’s shutter timing is synchronized with the base stations of the HTC Vive system, you will need to introduce a sync offset to avoid overlapping of the tracking lights. The following list of offset sync parameters are tested to avoid the interference.  Input these parameters into the Synchronization pane.  If you wish to increase the final frame rate of the mocap system, you will need to apply a multiplier.  
  
 +
* Final Frame Rate:  120 Hz
 +
* Sync Multiplier: 2
 +
* Sync Offset: 1780 μs
  
{{Indent|
 
* Final Frame Rate:  60 Hz
 
* Sync Multiplier: 1
 
* Sync Offset: 3458 μs
 
  
* Final Frame Rate: 120 Hz
+
* Final Frame Rate: 240 Hz
* Sync Multiplier: 2
+
* Sync Multiplier: 4
* Sync Offset: 16114 μs
+
* Sync Offset: 3150 μs
}}}}
+
 
 +
{{Warning|'''Notes on the Sync Settings'''
 +
 
 +
:The sync settings listed on this page have not been tested with the latest version of the firmware. This means that the appropriate sync offset value indicated on this page might not be correct. For integrating into SteamVR, please consider using [[OptiTrack OpenVR Driver]] to completely override the tracking.
 +
}}
 +
}}
  
 
====Step 7: Motive: Synchronization pane. Apply sync configuration.====  
 
====Step 7: Motive: Synchronization pane. Apply sync configuration.====  
Line 75: Line 91:
 
====Step 8: Motive: Cameras pane. Lower the camera exposure on the OptiTrack system.====
 
====Step 8: Motive: Cameras pane. Lower the camera exposure on the OptiTrack system.====
 
{{Indent|
 
{{Indent|
Another important note is that high camera exposure settings may cause IR light from the base stations to be detected by the OptiTrack system. If you configured the synchronization so that the final frame rate is 60 Hz, set the camera exposure setting to no higher than 1216 μs. If you configured the final frame rate to be 120 Hz, set the camera exposure setting to no higher than 904 μs.
+
Another important note is that high camera exposure settings may cause IR light from the base stations to be detected by the OptiTrack system. It's suggested to keep the camera exposure below 1000 us for all of the cameras.
 
 
 
 
{{Indent|
 
Final Frame Rate:  60 Hz
 
 
 
Sync Multiplier: 1
 
 
 
Sync Offset: 3458 μs
 
 
 
'''Maximum Camera Exposure: 1216 μs'''
 
 
 
 
 
Final Frame Rate: 120 Hz
 
 
 
Sync Multiplier: 2
 
 
 
Sync Offset: 16114 μs
 
 
 
'''Maximum Camera Exposure: 904 μs'''
 
}}
 
 
 
  
 
Now that the two systems are synchronized to avoid the IR interference, both systems can be used together to provide immersive VR experiences. Note that the instructions listed on this page are tested to work with HTC Vive system, but alternative approaches may also be possible.}}
 
Now that the two systems are synchronized to avoid the IR interference, both systems can be used together to provide immersive VR experiences. Note that the instructions listed on this page are tested to work with HTC Vive system, but alternative approaches may also be possible.}}
 
</div>
 
</div>

Latest revision as of 18:29, 14 August 2019

Back to Page References

Warning2.png

OpenVR Driver

This synchronization setup is not required for integrating HTC Vive with OptiTrack system. For integrating HTC Vive with OptiTrack system, please use the OptiTrack OpenVR Driver. This driver will completely override the tracking of an HTC Vive HMD so that the HMD can be tracked just using the OptiTrack system without the lighthouse base stations, and when using the OpenVR driver, synchronization between two systems is not necessary. This article is for specific applications where both lighthouse base station and the OptiTrack system must be running simultaneously.

Warning2.png

Notes on the Sync Settings

The sync settings listed on this page have not been tested with the latest version of the firmware. This means that the appropriate sync offset value indicated on this page might not be correct. For integrating into SteamVR, please consider using OptiTrack OpenVR Driver to completely override the tracking.

This article provides instructions on how to synchronize an OptiTrack Motion Capture system with an HTC Vive virtual reality system, specifically the lighthouse base stations, to avoid overlapping of the infrared tracking lights. The HTC Vive system also uses infrared LEDs and lasers for tracking its head-mounted display (HMD) and controllers. When using an OptiTrack mocap system in conjunction with the HTC Vive system, the infrared tracking from the two systems can interfere with each other. For this reason, the two systems must be synchronized in a way so that the two different tracking lights do not temporally overlap. Currently, sync configurations with only OptiTrack Prime-series camera systems have been tested.

Let’s go through the synchronization setup. The following setup instructions assume that the two tracking base stations of the HTC Vive system are set to channel b and c and are optically synchronized. The channel b base station will serve as the master device for synchronizing the two systems. Sync out signal from the channel b station will feed into one of the input ports on the eSync, and a sync offset (specified in microseconds, or μs) will be applied to so that IR lights from the two systems don’t interfere with each other. The following section describes the instructions in detail.

Info2.png

Note:

  • The eSync 2 is required in order to synchronize HTC Vive lighthouses with the camera system.
  • Synchronization with Flex camera systems is not supported.

Synchronization Configuration


Step 1: Set up the HTC Vive system.

The base stations will synchronize optically in this setup. Refer to the respective documentation for more details on setting up the HTC Vive system. Set the tracking stations to channels b and c, so that they are optically synchronized (in the absence of a sync cable connection between them).


Step 2: Set up the OptiTrack mocap system.

Refer to the Hardware Setup wiki pages for more details.


Step 3: Connect the sync output from the channel b base station into the input port 1 of the eSync synchronization hub.

The sync output of the base stations use 3.5 mm stereo (TRS) cables, whereas the Input ports of the eSync are BNC ports. You will need to use a stereo female to RCA male adapter (e.g. http://www.monoprice.com/product?p_id=5612) as well as an RCA-to-BNC adaptor (included with the eSync) to connect the channel b base station and the eSync hub. After attaching the stereo to RCA adaptor, connect the red RCA cable into the eSync using a BNC adapter, as shown in the following photo.
Connecting an HTC Vive system into the eSync 2.



  • Custom synchronization configuration without applying multipliers to the final frame rate. 60 Hz input signal detected for the connected input under the Input Monitor.
  • Custom synchronization configuration with multiplier (X2) applied to the input signal, resulting in final frame rate of approx. 120 Hz.

Step 4: Motive: Synchronization pane. Configure the synchronization in Motive.

Open the Synchronization pane in Motive, and set the synchronization type to Custom Synchronization.


Step 5: Motive: Synchronization pane. Configure the Sync Input.

Set the Sync Input to Input 1, which was the input port of the eSync where the sync cable was connected to. If the sync cable is properly connected and the HTC Vive system is properly working, the bottom signal monitor will display a frequency of approximately 60 Hz detected through the Input 1 port of the eSync. Note that this configuration will synchronize the OptiTrack camera system to the sync signal coming through the Input port.


Step 6: Motive: Synchronization pane. Introduce Sync Offset (μs).

Now that the OptiTrack system’s shutter timing is synchronized with the base stations of the HTC Vive system, you will need to introduce a sync offset to avoid overlapping of the tracking lights. The following list of offset sync parameters are tested to avoid the interference. Input these parameters into the Synchronization pane. If you wish to increase the final frame rate of the mocap system, you will need to apply a multiplier.

  • Final Frame Rate: 120 Hz
  • Sync Multiplier: 2
  • Sync Offset: 1780 μs


  • Final Frame Rate: 240 Hz
  • Sync Multiplier: 4
  • Sync Offset: 3150 μs

Warning2.png

Notes on the Sync Settings

The sync settings listed on this page have not been tested with the latest version of the firmware. This means that the appropriate sync offset value indicated on this page might not be correct. For integrating into SteamVR, please consider using OptiTrack OpenVR Driver to completely override the tracking.

Step 7: Motive: Synchronization pane. Apply sync configuration.

Press Apply to employ the sync configuration. The tracking IR lights from both systems will no longer interfere, and the HTC Vive components will be working properly and available in the SteamVR application.


Step 8: Motive: Cameras pane. Lower the camera exposure on the OptiTrack system.

Another important note is that high camera exposure settings may cause IR light from the base stations to be detected by the OptiTrack system. It's suggested to keep the camera exposure below 1000 us for all of the cameras.

Now that the two systems are synchronized to avoid the IR interference, both systems can be used together to provide immersive VR experiences. Note that the instructions listed on this page are tested to work with HTC Vive system, but alternative approaches may also be possible.