Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
AR

AR Plane

AR plane detection places 3D models on real-world surfaces, like placing an alien character on the floor or a UFO in the air.
Let’s make an effect that places the alien character on the floor.

↓ Alien-assets.zip

Add an AR Plane Object and AR Camera

Go to the Hierarchy panel and click + Add object > AR Tracking > AR Plane. This will generate an occlude plane for the detected surface in the environment. It will also add an AR Camera to the scene automatically.

Tip
Tip

When creating AR Camera, remember to delete the default camera if you don’t need it.

Configure Device Tracker of the AR Camera object

Set the Tracking mode of the Device Tracker component of the AR Camera to World. This ensures that all the objects rendered by the AR Camera will be tracked in the world. You can hold the device and move around freely.

Place Your 3D object on a Real-World Surface

Import 3D Assets

Download the Alien-assets.zip file and import the assets into Effect House.

↓ Alien-assets.zip

Add Imported 3D Assets to the Scene

Drag the Alien Model to the Hierarchy panel.

Set Up the Transform of the Object

Set up the scale of the UFO that matches the real-world unit. Create an empty scene object by clicking + Add object >Create empty. Let’s rename it to AR container. Set up the scale of the AR container to (0.05, 0.05, 0.05). Then drag the UFO model underneath the AR container.

Set up the scale of the UFO to (1, 1, 1). For the information on alien materials setting, go to Body Avatar Drive. Set up the position and rotation of the object as you want.

Tip
Tip

Since the scale ratio between the 3D scene of Effect House and real-world is 20:1, we created the AR container with the scale of 0.05 to match the unit in the real world.