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.

Spatial Mapping Collider/Observer/Manager/Renderer

I'm trying to create an app that requires raycasting onto the spatial mapping. It also requires that the gaze to stop at the point where it hits the spatial mapping. After looking into the different spatial mapping scripts and Unity components, I'm a bit confused as to what I need.

The HoloToolKit provides a Spatial Mapping Observer and a Spatial Mapping Manager while Unity provides a Spatial Mapping Collider and Spatial Mapping Renderer. Do I need the Spatial Mapping Observer and Spatial Mapping Manager or do I just need the Spatial Mapping Collider? If I have the Spatial Mapping Collider and the Spatial Mapping Observer, will that create two observers, thus, slowing down the app?

Answers

  • SpatialMappingRenderer really isn't required anymore since SpatialMappingManager has an option for "Draw Visual Meshes". To be completely honest, I'm not sure why it's still in the toolkit. I'd love to hear from anyone else that may know more than me.

    SpatialMappingManager requires SpatialMappingObserver. In fact it has a RequireComponent applied to it (which means unity will add an obserbver when you add a manager if one is not already in the same GameObject). You should never have more than one Observer in the same scene.

    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.

Sign In or Register to comment.