Can Magic Leap 2 communicate with OptiTrack?

I am trying to develop an app that integrates OptiTrack with Unity.
Specifically, I want to attach markers to shoes, obtain their position information using OptiTrack, and reflect this position information in real time in an app running on Magic Leap 2.

While creating a prototype, I found that Unity and OptiTrack can communicate within the Unity Editor. However, after building the project and executing it on Magic Leap 2, it appears that Magic Leap 2 and OptiTrack are not communicating, even though I had set the IP address to that of Magic Leap 2.

Is it not possible to integrate OptiTrack into a project running on Magic Leap 2?

Unity Editor version: 2022.3.21f1
ML2 OS version: 1.6.0
Unity SDK version:2.1.0
Host OS: Windows

You should be able to communicate with peripheral devices im the same manner as connecting devices on other Android 10 based platforms.

Does the plugin you are using support Android?

Thank you for replying.
I have looked into it as you advised, and it seems that the Unity Plugin by Optitrack may not be supported on Android devices.
If it cannot be implemented, that would be very disappointing.

Unity Plugin 1.4.0

Real-time interface for streaming 6DoF rigid body and skeleton data to Unity.

Details & Requirements

  • Release Date: August 9, 2021
  • File Format: unitypackage
  • Works with:
    • Windows 64-bit and 32-bit
    • Tested with Unity versions 2021.1.16f1 and 2020.3.15f2.

Hi Saiki,

In our research lab, we did it by retrieving the rigid bodies from OptiTrack using a desktop Unity app (same machine running OptiTrack/Motive) and by forwarding the information (using UDP and JSON) to the ML2 Unity app !

:slight_smile:

1 Like