Visual offset in Mixed Reality application (Motive / Unity)
Posted: Fri Feb 02, 2024 8:20 am
Hi everyone,
I'm having an offset problem while developping an MR application, here are the specs :
- Motive / OptiTrack cameras
- Unity with OptiTrack package
- Varjo XR-3 HMD with a group of markers (considered as a RigidBody, not an HMD in Motive)
To check the tracking data, I got the CAD model of the XR-3 on Varjo site and did a quick photogrammetry scan of the HMD with the markers to create a reference model to display in Motive. I did a simple model of a rigidbody marker set too. I set the pivot point from this page : https://developer.varjo.com/docs/get-st ... y-tracking. The transforms of the hmd and marker set are correct in Motive and Unity.
When visualizing the 3d model of the marker set in augmented reality, there is an offset that changes depending on the point of view. I implemented a tool to set a global offset, a camera local offset and other tweaks but it didn't fix the issue.
I've contacted Varjo support and they suggested to use a Varjo Tracking plugin (now set on SteamVR in Varjo Base by default but I don't use SteamVR code in the application), I don't think it would fix the problem as the tracking works well through the OptiTrack Unity package. Could I have missed something on the Motive side ? What can I tweak / explore to find the origin of the problem ?
Thanks, best regards
Aurélien
I'm having an offset problem while developping an MR application, here are the specs :
- Motive / OptiTrack cameras
- Unity with OptiTrack package
- Varjo XR-3 HMD with a group of markers (considered as a RigidBody, not an HMD in Motive)
To check the tracking data, I got the CAD model of the XR-3 on Varjo site and did a quick photogrammetry scan of the HMD with the markers to create a reference model to display in Motive. I did a simple model of a rigidbody marker set too. I set the pivot point from this page : https://developer.varjo.com/docs/get-st ... y-tracking. The transforms of the hmd and marker set are correct in Motive and Unity.
When visualizing the 3d model of the marker set in augmented reality, there is an offset that changes depending on the point of view. I implemented a tool to set a global offset, a camera local offset and other tweaks but it didn't fix the issue.
I've contacted Varjo support and they suggested to use a Varjo Tracking plugin (now set on SteamVR in Varjo Base by default but I don't use SteamVR code in the application), I don't think it would fix the problem as the tracking works well through the OptiTrack Unity package. Could I have missed something on the Motive side ? What can I tweak / explore to find the origin of the problem ?
Thanks, best regards
Aurélien