Data Streaming
Learn how to configure Motive to broadcast frame data over a selected server network.
Last updated
Learn how to configure Motive to broadcast frame data over a selected server network.
Last updated
Common motion capture applications rely on real-time tracking. The OptiTrack system is designed to deliver data at an extremely low latency even when streaming to third-party pipelines.
Motive offers multiple options to stream tracking data to external applications in real-time. Streaming plugins are available on the OptiTrack download site for the following applications:
Autodesk Motion Builder
Unreal Engine
Unity
Maya (VCS)
Motive can stream to the following applications or protocols as well:
Visual3D
VRPN
In addition to these plugins, the NatNet SDK enables users to build custom clients to receive capture data.
NatNet is a client/server networking protocol for sending and receiving data across a network in real-time. It utilizes UDP along with either Unicast or Multicast communication to integrate and stream reconstructed 3D data, Rigid Body data, Trained Markerset data, and Skeleton data from OptiTrack systems to client applications.
The API includes a class for communicating with OptiTrack server applications for building client protocols. Using the tools provided in the NatNet API, capture data can be used in various application platforms. Please refer to the NatNet SDK section of the user guide for more information on using NatNet and its API references.
Rotation conventions
NatNet streams rotational data in quaternions. If you wish to present the rotational data in the Euler convention (pitch-yaw-roll), the quaternions data must be converted into Euler angles.
In the provided NatNet SDK samples, the SampleClient3D application converts quaternion rotations into Euler rotations to display in the application interface. The sample algorithms for the conversion are scripted in the NATUtils.cpp file.
Refer to the NATUtils.cpp file and the SampleClient3D.cpp file to find out how to convert quaternions into Euler conventions.
Settings in the NatNet category apply to streaming plugins as well as NatNet.
Check Enable to start streaming. This will change the color of the streaming icon in the Control Deck:
Once enabled, Motive will display a warning if you attempt to exit without turning it back off first:
Default: Loopback
This setting determines which network Motive will use to stream data.
Use the Loopback option when Motive and the client application are both running on the same computer. Otherwise, select the IP address for the network where the client application is installed.
Motive Host PCs often have multiple network adapters, one for the camera network and one or more for the local area network (LAN). When streaming over a LAN, select the IP address of the network adapter connected to the LAN where the client application resides.
Firewall or anti-virus software can block network traffic. It's important to either disable these applications or configure them to allow access to both server (Motive) and Client applications.
Default: Multicast
NatNet uses the UDP protocol in conjunction with either Point-To-Point Unicast or IP Multicasting for sending and receiving data.
Unicast NatNet clients can subscribe to just the data types they need, reducing the size of the data packets streamed. This feature helps to reduce the streaming latency. This is especially beneficial for wireless unicast clients, where streaming is more vulnerable to packet loss.
For more information on NatNet data subscription, please read the NatNet: Unicast Data Subscription Commands page.
Default: Enabled
Enables streaming of labeled Marker data. These markers are point cloud solved markers.
Default: Enabled
Enables streaming of all of the unlabeled Marker data in the frame.
Default: Enabled
Enables streaming of asset markers associated with all of the assets (Rigid Body, Trained Markerset, Skeleton) in the Take. The streamed list will contain a special marker set named all, which is a list of labeled markers in all of the Take's assets. In this data, Skeleton, Rigid Body, and Trained Markerset markers are point cloud solved and model-filled on occluded frames.
Default: Enabled
Enables streaming of Rigid Body data, which includes the names of Rigid Body assets as well as positions and orientations of their pivot points.
Default: Enabled
Enables streaming of Skeleton tracking data from active Skeleton assets. This includes the total number of bones and their positions and orientations in respect to global, or local, coordinate system.
Default: Enabled
Enables streaming of solved marker data for active Trained Markerset assets. This includes the total number of bones and their positions and orientations in respect to the global coordinate system.
Default: Enabled
Enables streaming of bone data for active Trained Markerset assets. This includes the total number of bones, their positions and orientations in respect to the global coordinate system, and the structure of any bone chains the asset may have.
Default: Enabled
Enables the streaming active peripheral devices (ie. force plates, Delsys Trigno EMG devices, etc.).
Default: Global
Global: Tracking data is represented according to the global coordinate system.
Local: The streamed tracking data (position and rotation) of each skeletal bone is relative to its parent bones.
Default: Motive
The Bone Naming Convention determines the format to use for streaming Skeleton data so each segment can be properly recognized by the client application.
Motive: Uses the standard Motive bone naming convention.
FBX: Used for streaming to Autodesk pipelines, such as MotionBuilder or Maya.
BVH: Used for streaming biomechanical data using the BioVision Hierarchy (BVH) naming convention.
UnrealEngine: Used for streaming to UnrealEngine.
Default: Y Axis
Selects the upward axis of the right-hand coordinate system in the streamed data. Change this setting to Z Up when streaming to an external platform using a Z-up right-handed coordinate system (e.g., biomechanics applications).
For compatibility with left-handed coordinate systems, the simplest method is to rotate the capture volume 180 degrees on the Y axis when defining the ground plane during Calibration.
Default: Disabled
Enables the use of a remote trigger for recording using XML commands. Read more in the Remote Triggering section, below.
Default: Enabled
Includes the associated asset name as a subject prefix to each marker label in the streamed data.
Default: Disabled
Enables streaming to Visual3D. Normal streaming configurations may be not compatible with Visual3D. This feature ensures that the tracking data to be streamed to Visual3D is compatible.
We recommend leaving this setting disabled when streaming to other applications.
Default: 1
Applies scaling to all of the streamed position data.
Default: 1510
Specifies the port to use to negotiate the connection between the NatNet server and client.
Default: 1511
Specifies the port to use to stream data from the NatNet server to the client(s).
Default: 1512
Specifies the port to use to to stream XML data for remote trigger commands.
The XML Broadcast Port is linked to the Command Port and is not an editable field. The port will automatically update if the Command Port is changed from the default so that the XML Broadcast Port remains 2 ports away from the Command Port.
For example, if the Command Port is changed to 1512, the XML Broadcast Port will update to 1514 automatically.
Default: 239.255.42.99
Defines the multicast broadcast address.
When streaming to clients based on NatNet 2.0 or below, change the Multicast Interface to 224.0.0.1 and the Data port to 1001.
Default: Disabled
When enabled, Motive streams data via broadcasting instead of sending to Unicast or Multicast IP addresses. This should be used only when the use of Multicast or Unicast is not applicable.
To use the broadcast, enable this setting and set the streaming option to Multicast. Set the NatNet client to connect as Multicast, and then set the multicast address to 255.255.255.255. Once Motive starts broadcasting data, the client will receive broadcast packets from the server.
Broadcasting may interfere with other network traffic. A dedicated NatNet streaming network may be required between the server and the client(s).
Default: 1000000
This controls the socket size while streaming via Unicast. This property can be used to make extremely large data rates work properly.
DO NOT modify this setting unless instructed to do so by OptiTrack Support.
For information on streaming data via the VRPN Streaming Engine, please visit the VRPN knowledge base. Note that only 6 DOF Rigid Body data can be streamed via VRPN.
Default: Disabled
When enabled, Motive streams Rigid Body data via the VRPN protocol.
Default: 3883
Specifies the broadcast port for VRPN streaming.
Recording in Motive can control or be controlled by other remote applications through sending or receiving either NatNet commands or XML broadcast messages to or from a client application using the UDP communication protocol. This enables client applications to trigger Motive and vice versa. We recommend using NatNet commands because they are more robust and offer additional control features.
Recording start and stop commands can also be transmitted via XML packets. To trigger via XML messages, the Remote Trigger setting under the Advanced Streaming Settings must be enabled. For Motive, or clients, to receive the packets, the XML messages must be sent via the XML Broadcast port.
Tip: Within the NatNet SDK sample package, there is are simple applications (BroadcastSample.cpp (C++) and NatCap (C#)) that demonstrates a sample use of XML remote trigger in Motive.
The XML messages must follow the appropriate syntax. The samples below show the correct XML syntax for the start / stop trigger packet:
Value | Description |
---|---|
Name | Name of the Take that will be recorded. |
SessionName | Name of the session folder. |
Notes | Informational note for describing the recorded Take. |
Description | (Reserved) |
Assets | |
DatabasePath | The file directory where the recorded captures will be saved. |
Start Timecode | |
PacketID | (Reserved) |
HostName | (Reserved) |
ProcessID | (Reserved) |
Value | Description |
---|---|
Name | Name of the recorded Take. |
Notes | Informational notes for describing recorded a Take. |
Assets | |
Timecode | |
HostName | (Reserved) |
ProcessID | (Reserved) |
Runs locally or over a network. The NatNet SDK includes multiple sample applications for C/C++, OpenGL, WinForms/.NET/C#, MATLAB, and Unity. It also includes a C/C++ sample showing how to decode Motive UDP packets directly without the use of client libraries (for cross platform clients such as Linux). For more information regarding NatNet SDK visit our page NatNet SDK 4.0.
C/C++ or VB/C#/.NET or MATLAB
Markers: Y Rigid Bodies: Y Skeletons: Y Trained Markersets: Y
Runs locally or over a network. Allows streaming of both recorded data and real-time capture data for markers, Rigid Bodies, and Skeletons.
Comes with Motion Builder Resources: OptiTrack Optical Device OptiTrack Skeleton Device OptiTrack Insight VCS
Markers: Y Rigid Bodies: Y Skeletons: Y
Streams capture data into Autodesk Maya for using the Virtual Camera System.
Works with Maya 2011 (x86 and x64), 2014, 2015, 2016, 2017 and 2018
Markers: Y Rigid Bodies: Y Skeletons: Y
With a Visual3D license, you can download the Visual3D server application which is used to connect an OptiTrack server to a Visual3D application. Using the plugin, Visual 3D receives streamed marker data to solve precise Skeleton models for biomechanics applications.
Markers: Y Rigid Bodies: N Skeletons: N C-Motion wiki: Visual3DServer Plugin
Runs locally or over a network. Supports Unreal Engine version 5.3. This plugin allows streaming of Rigid Bodies, markers, Skeletons, trained markersets, and integration of HMD tracking within Unreal Engine projects. Please see the OptiTrack Unreal Engine Plugin section of our documentation for more information.
Markers: Y Rigid Bodies: Y Skeletons: Y Trained Markersets: Y
Runs locally or over a network. This plugin allows streaming of tracking data and integration of HMD tracking within Unity projects. Please see the OptiTrack Unity Plugin section of our documentation for more information.
Markers: Y Rigid Bodies: Y Skeletons: Y
Runs Motive headlessly and provides the best Motive command/control. Also provides access to camera imagery and other data elements not available in the other streams.
C/C++
Markers: Y Rigid Bodies: Y Skeletons: N
Within Motive
Runs locally or over a network.
The Virtual-Reality Peripheral Network (VRPN) is an open source project containing a library and a set of servers that are designed for implementing a network interface between application programs and tracking devices used in a virtual-reality system.
Motive 3.1 uses VRPN version 7.33.1.
For more information: VRPN Github
Join the community on the OptiTrack Data Streaming Forum today!
To quickly access streaming settings, click the streaming icon from the control deck. This will open the Streaming tab in the Application Settings panel. Alternately, you can open the Settings panel by clicking the button, then selecting the Streaming tab.
The Settings panel contains advanced settings that are hidden by default. To access these settings, click the button in the top right corner and select Show Advanced.
List of involved in the Take.
Timecode values (SMTPE) for frame alignments, or reserving future record trigger events for timecode supported systems. Camera systems usually have higher framerates compared to the SMPTE Timecode. In the triggering packets, the always equal to 0 at the trigger.
List of involved in the Take
Timecode values (SMPTE) for frame alignments. The value is zero.