MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Export Remote Spatial Mesh from Device to Unity Editor?

Open gkh38 opened this issue 9 years ago • 6 comments

When I save WorldAnchors using the WorldAnchorManager, is there a way to export the saved WorldAnchors to the UnityEditor? (So I can view the Anchors in the Editor, not in runtime) Or can I get the positional data relative to the SpatialMapping? I'm already using the Remote Mapping Manager, but can't figure out how to send the WorldAnchors as well.

gkh38 avatar Feb 21 '17 12:02 gkh38

No, you cannot use world anchors in the editor. Although, you can create fake data to send as a test. See RoomTest.cs for an example of fake anchor data.

StephenHodgson avatar Feb 21 '17 14:02 StephenHodgson

My latest PR https://github.com/Microsoft/HoloToolkit-Unity/pull/513 for the Sharing Service pretty much makes it easier to work with Devices and users in Editor over the sharing service.

StephenHodgson avatar Feb 21 '17 15:02 StephenHodgson

I mainly want to use the positions of the WorldAnchors in the downloaded SpatialMesh, is that possible? From what I understand, simply taking the xyz values won't cut it, right?

gkh38 avatar Feb 21 '17 15:02 gkh38

Take a look at the RemoteMapping test scene. I'm unsure if it works in editor (because there's no way to grab the WorldAnchorStore) but there might be a way to load in the mesh at the origin (0,0,0) using RemoteMeshSource and RemoteMappingManager.

Let me know how it goes.

StephenHodgson avatar Feb 21 '17 15:02 StephenHodgson

Instead of saving the WorldAnchor positions I create a prefab on the place where I placed the WorldAnchor. When I stream the meshes to Unity using the RemoteMappingManager they show up in my Beamed files, but as soon as I save it, it doesn't show up in the .room file. Any tips on how to handle this? (Add prefabs to meshes)

gkh38 avatar Mar 01 '17 14:03 gkh38

Going to close this. It's probably been archived by google by now.

StephenHodgson avatar Oct 28 '17 01:10 StephenHodgson