How enable Hololens 2 Spatial mapping occlusion in Unreal Engine

anton chernov 1 Reputation point
2021-06-03T09:13:19.44+00:00

Hello everyone!

I studied webinar working with unreal engine and hololens 2. This is a great lesson. And I understood how UxtTapToPlace works. But I can’t turn on the function of spatial mapping for occlusion of my Hologram. That is, so that the hologram is not visible behind real objects in my room.
I can set a solid mesh to the material for the spatial mesh, and then the holograms hide behind it, but when I hide this mesh, my hologram is always visible. Please help me!

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
387 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hernando Ren 2,166 Reputation points
    2021-06-04T08:03:24.19+00:00

    Hello, Welcome to Microsoft Q&A,

    You need to use an ARSessionConfig data asset for Spatial mapping occlusion, it is recommended to follow this step-by-step guide to add ARSessionConfig data asset first: Adding a session asset, and then, try the following steps to make the AR system render the mesh data as occlusion meshes:

    1. Open the ARSessionConfig and expand the ARSettings > World Mapping section.
    2. Check Use Mesh Data for Occlusion.

    ----
    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Galaxy 1 Reputation point
    2021-12-09T22:15:04.057+00:00

    Hello!
    Can I ask you have you fixed this issue? I met this as well and tried much times configurations. I completely follow the guidelines of the official doc.

    0 comments No comments