This is a repository with Unity scripts that lets Qualisys users stream marker, 6dof and user bones to Unity from Qualisys Track Manager. A complete custom package that can be imported into Unity is available here.
- Start QTM and start streaming real-time (either real-time from camera system or from measurement file).
- Create new project.
- Import Package -> Custom Package...
- Show the QTM Streaming window using the menu option Window->Qualisys->RTClient.
- Create an empty GameObject and the RTMarkerStream.cs script to it.
- Press "play" mode
- The QTM servers available on the network will be automatically discovered and displayed in the Server settings in the QTM Streaming window.
- Press Connect and then Unity will receive markers and display them.
- Go to Window -> Asset Store -> 3D Models -> Characters and download and import Character
- Add character to the scene
- Drag and drop RTCharacterStream.cs to the character in the Hierarchy. Then continue as above at 6.
These are scripts that can be added to game objects for handling of streaming data from Qualisys Track Manager using the RTClientSDK.Net.
- RTMarkerStream.cs - Add this script to a Game object to visualize marker positions (using spheres) streamed from Qualisys Track Manager.
- RTBones.cs - Add this script to a Game object to visualize user defined bones (using line gizmos).
- RTObject.cs - Add this script to a Game object to get 6DOF object positions and rotations streamed from Qualisys Track Manager.
- RTCharacterStream.cs - Add this script to a Unity character to animate the character from marker streamed from Qualisys Track Manager.
Scripts in this folder are Unity helper scripts used to commuicate with Qualisys Track Manager and handle Unity user interface.
- RTClient.cs - Main script that handles the communication between Qualisys Track Manager and Unity.
- RTGUI.cs - This script is responsible for handling the Window->Qualisys->RTClient option that shows the QTM Streaming window where the user can select which Qualisys Track Manager to connect to.
- RTGUIInGame.cs - This script can be used to show a QTM connection user interface when in Game mode.
The Unity SDK includes a packaged version of the Real-time client SDK for .Net.
Files for real-time animation of a character.