Contextual Awareness
Texture Occlusion

To create this template, you should already have installed ARDK and Lightship HUB.

How does it work?

Texture Occlusion uses Depth Texture to occlude objects in the scene. It allows you to better integrate the AR Objects with the real world.

1 - How it works

Create the template

Open the Welcome HUB and select the Depth Texture template under Contextual Awareness. You could also access it from the menu Lightship > Lightship Hub > Templates > Contextual Awareness > Texture Occlusion.

2 - Menu

This will create a series of objects and set up the current scene with all the scripts and components to start working. Once you reach this step, you should have a fully working scene that’s ready to be exported.

To test this template in Unity Editor you’ll need to select a mock environment. Go to the Lightship Menu > ARDK > Virtual Studio and Select Mock. Then, choose an environment. Make sure to keep the Virtual Studio configuration window open while you play through your scene.

4 - Interior Mock

Just press Play to test the scene.

5 - Play scene

Customize your scene

To add your own content to the template, replace the “[REPLACE ME]” object with your own 3D model.

6 - Replace object

From now on, this object will be used instead of the placeholder.

Template Behavior Properties

This template provides an option to change the scene behavior. Select the ARController and the inspector panel will show the different options available.

7 - Controller

Show Depth Texture

When checked, you will see the Depth Texture used to calculate the occlusion.

6 - Options Show Depth Texture A

When unchecked, you will see the current scene with the occlusion applied as normal.

7 - Options Show Depth Texture B
Ready to build?