Skip to main content
Skip table of contents

Manage asset living in both or moving between AR/XR

Doing more advanced composites in an AR/XR Setup where you have an element in both the AR scene and XR scene that overlap can be challenging. For opaque objects, but even more so for translucent ones.

To make the objects behave seamlessly we have added a set of tools. It will essentially hide any material in the XR world that is in front of a holdout.

Add XRARTransferOpacity to material

  1. Create a new material

  2. Add a MaterialFunctionCall node

  3. Open the Material Function dropdown

    • Select the Settings icon and Enable Show Engine Content

      image-20240828-144139.png

  4. Search for/Select the GetXRARTransferOpacityNew material function

We recommend using either Masked or Translucent Material/Blend Mode.

Screenshot 2024-10-15 at 15.21.41.png
  1. Plug it into Opacity or Opacity Mask depending on the Blend Mode

    image-20240828-144226.png

Test the setup

  1. Open an XR level

  2. Place your object with this material in the scene in front of the XR walls

  3. You should see that

    • in XR - the object is culled when in front of the wall

    • in AR - the object is unaffected

Run the level in Live, Preview Live or WYSIWYG mode for this to look correct. Learn more about how to Run levels in Edit, Preview Live and LIVE mode

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.