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.
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.
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.
Just press Play to test the scene.
Customize your scene
To add your own content to the template, replace the “[REPLACE ME]” object with your own 3D model.
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.
Show Depth Texture
When checked, you will see the Depth Texture used to calculate the occlusion.
When unchecked, you will see the current scene with the occlusion applied as normal.