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.

Better Manipulation Like Hologram App

I've followed Holograms 211 and gotten rotation and translation to work. However translation (manipulation) feels sluggish and inaccurate especially when compared to the Holograms app. How can I get a better translation experience than what is shown in 211?

211 essentially stores the first position on ManipulationStarted, the computes a vector between the first position and the second position on ManipulationUpdated, then updates transform.position by the same offset. This works, but again it feels very sluggish compared to whatever the Holograms app is doing.

I could apply a scale factor to this vector which would increase speed, but I don't know if that would feel natural. The Holograms app almost makes it seem as if the hologram is attached to the end of a pole that the user is holding. It seems like the further the hologram is away from the user the faster it moves. Is this the way it's actually working? And can anyone share sample code that would achieve a similar behavior?

Thanks!

Answers

  • I could apply a scale factor to this vector which would increase speed, but I don't know if that would feel natural.

    I would recommend first trying this out on a few users as well. I actually don't know what the Holograms app does exactly. I am not even sure if they use this event. :)

  • Just realized I asked this question with my other Live ID. Whoops.

    Can anyone ask the Hologram team what they did here? What they're doing feels very very natural and I'd really like to be able to help others achieve it. In fact I'm helping with the Boston Hackathon the remainder of this week and I know this question will come up. I'd love to see is get more natural movement into the HoloToolkit. I'm willing to write it and do a pull request if we can get some information from the Holograms team on how they did it.

    Our Holographic world is here

    RoadToHolo.com      WikiHolo.net      @jbienz
    I work in Developer Experiences at Microsoft. My posts are based on my own experience and don't represent Microsoft or HoloLens.

  • I've used manipulate in two ways. The first to pan a map and the second to draw on top of the map.

    For panning I used a multiplier to make it feel right and it took a lot of fiddling before I got it to feel natural. I even added commands to increase/decrease the multiplier while I was debugging it just so I didn't have to rebuild for each tweak.

    For drawing I used a different method which is to freeze the camera and then offset the camera's position with the hand's delta and raycast to the map from that point. Perhaps that would give a more accurate movement for you as the drawing feels 1:1.

    Taqtile

  • Our discussion in the slack group got me thinking about that scale multiplier and I think converting to the parent transform's space is much cleaner.

    Something along these lines:

    https://gist.github.com/markgrossnickle/229c658fcff90694ea98d4c8f548b88a

    Taqtile

  • I have the same problem. How can I improve the speed of the movement of the object when I use manipulation?

Sign In or Register to comment.