Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. 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 Accepted 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 Accepted 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.