Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

room to object

There is an easy way to convert the room triangle data to an object? I captured my room using the SpatialMapping prefab, and the data its stored in a .room file, it is visible when I hit the "play" button on Unity, but not accessible on the regular scene edit mode.

Answers

  • Options

    Hmm...
    I haven't tried it, but you should be able to write a script that runs in the editor to load it up. Check this out.

    http://docs.unity3d.com/ScriptReference/ExecuteInEditMode.html

  • Options

    @bernieSF,

    There is code in the HoloToolkit's Spatial Mapping prefab that will automatically load the mesh data, provided that was saved (by clicking on Unity's Game view and pressing the S key) at runtime.

    A better (more future proof) solution would be to save the Spatial Mapping mesh using the Device Portal. If you go to the 3D View page, press the Update button and then Save. This will download the data for you in .obj format. You can then import the model into Unity.

    Thanks!
    David

  • Options

    @DeckTwelve this looks only applies to scripts :( Not sure if can load the mesh room data in edit mode.

    @DavidKlineMS I'm aware of the HoloToolkit's SpatialMapping. Actually that's the method I used to import the room mesh to Unity, unfortunately this mesh is not available in regular 'edit' mode, only when is in 'play' state. I'll try the .obj importing function for the file generated through the portal, and let you know about the results.

    Thanks to y'all!

  • Options

    @bernieSF, You are correct, the "Send Meshes" functionality in the Holograms 230 course does not enable design time use of the data in Unity.
    The .obj file you import will be available in the editor.

    Thanks!
    David

  • Options

    Is it possible to access and convert the room file to OBJ at run time?

    Similar to what these guys did, I want to upload my room on the web server in the form of OBJ.

Sign In or Register to comment.