doughtmw / display-calibration-hololens

Point correspondence-based display calibration and ArUco marker tracking for the HoloLens 2.
48 stars 8 forks source link

To run with OpenXR #4

Open linas-apprenticefs opened 2 years ago

linas-apprenticefs commented 2 years ago

https://github.com/doughtmw/display-calibration-hololens/blob/35d1437f8f3b62dc33379a2aaa14e788dd309e0c/unity-sandbox/HoloLens2-Display-Calibration/Assets/Scripts/NetworkBehaviour.cs#L308 using Microsoft.MixedReality.OpenXR; ... ~~_unityCoordinateSystem = Marshal.GetObjectForIUnknown(WorldManager.GetNativeISpatialCoordinateSystemPtr()) as SpatialCoordinateSystem;~~

_unityCoordinateSystem = PerceptionInterop.GetSceneCoordinateSystem(UnityEngine.Pose.identity) as SpatialCoordinateSystem;

nothingbut1 commented 1 year ago

Thanks, It really helped!