chgatla-microsoft / QRTracking

MRTK sample app for QRtracking
MIT License
74 stars 69 forks source link

QRCode not spatialized : CoordinateSystem.TryGetTransformTo returns null Matrix #7

Closed gilbdev closed 4 years ago

gilbdev commented 4 years ago

So my QRCode is correctly detected, i got the QrCodeAdded, my prefab is instantiated, qr code is fine, a CoordinateSystem for it is created.

in UpdateLocation(), the rootSpatialCoordinateSystem is retrieved correctly then in: System.Numerics.Matrix4x4? relativePose = CoordinateSystem.TryGetTransformTo(rootSpatialCoordinateSystem);

relativePose.HasValue returns false.

Am i missing anything ?

i'm using : Unity 2018.4.13f1 Visual 2017 Windows SDK 10.0.18362 MRTK 2.2 Microsoft.MixedReality.QR 0.5.2085 via Nuget for Unity 2.0.0 (i also tried some previous versions)

gilbdev commented 4 years ago

my mistake : i was using qrCode.Id instead of qrCode.SpatialGraphNodeId