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.