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

How to select a position for displaying Holograms?

Hi,

I am trying to develop an application whose flow need to be like this
1.Allowing me to select a position.
2. At that position only I need to display the Hololgram object.

until I select a particular position my application shouldn't proceed.Do we have anyway to do this task?Please let me know how can I do this.

Answers

  • Options

    @Afreen_Firdous26

    One approach would be to hide your gameObject (aka Hologram object) in design mode so that it is not displaying when your app starts.

    You would set your

    SpatialMappingManager.Instance.DrawVisualMeshes = true;

    in a Start script so that it begins mapping your environment when the app starts and is in a mode that would allow the user to tapToPlace somewhere to position your gameObject.

    You would need a variable to reference the gameObject that you want to place, something like:

    Public gameObject CurrentHologram;

    which you would drag a reference of your Hologram gameObject into in the IDE.

    You would also need a TapToPlace (see HoloToolkit) like script that was modified to place your CurrentHologram object when the place logic runs.

    If you declared your

    bool placing = true;

    instead of false to start with, you could leverage most of the current TapToPlace logic almost as is.

    HTH.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    Hi HoloSheep,

    Thanks for the clue. I was able to do place the object at specified location.

Sign In or Register to comment.