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.

Can we move the position of the spatial mapping mesh?


Hi, everyone!

As the picture, the mesh is on the object, but I want to move the mesh.
Is that possible?

Best Answers

  • pstuevenpstueven ✭✭
    edited January 2018 Answer ✓

    Hi @vrmaster2 ,
    This is just an idea: You could try making the mesh invisible and make a script as observer to the observer that creates a copy of the mesh in the Update() method, makes the copy visible and moves the copy. I am not sure about the performance impact, though.
    Maybe try around with FixedUpdate(which is called less often) or make the update time based like in the original observer. You can also edit the Spatial Mapping Observer script to call a method in your custom script once updated that creates the copy.

Answers

  • Thanks very much, pstueven!

    We are trying to use hololens to make a Viewport Transform. Spatial mapping can scan the whole room, we want to see the right view on the left.

    But my spatial mapping observer interface is like this picture.

    Why my spatial mapping observer don't have the "origin" and "orientation"?
    My unity3d is 5.6, Is this a version problem?

  • Thanks a lot for your suggestion and help!

    I am going to download the newest version of the HoloToolkit.
    We will keep your suggestions in mind.

    <3

  • Hi, pstueven! Is me again.

    I have changed the origin parameters, but the mesh still adhere to the object.

    I want move the mesh in real time.
    when hololens is scanning, can we move the mesh?

  • pstuevenpstueven ✭✭
    edited January 2018 Answer ✓

    Hi @vrmaster2 ,
    This is just an idea: You could try making the mesh invisible and make a script as observer to the observer that creates a copy of the mesh in the Update() method, makes the copy visible and moves the copy. I am not sure about the performance impact, though.
    Maybe try around with FixedUpdate(which is called less often) or make the update time based like in the original observer. You can also edit the Spatial Mapping Observer script to call a method in your custom script once updated that creates the copy.

  • Thanks for your advice, pstueven! Thanks a lot!

    I'm going to try!

  • @pstueven said:
    The Spatial Mapping Observer I use is a prefab of the HoloToolkit. Do you have the newest version of the HoloToolkit?

    I found that moving the spatial mesh while visualizing it looks weird and can cause headaches due to the eyes trying to focus on different things. You should consider making a copy of the mesh and shrinking it.

    thanks in advance,how to make a copy of the mesh and shrinking it.

Sign In or Register to comment.