As a result of the coronavirus (COVID-19) outbreak, we have a reduced capacity to review effects and delays in publishing are expected. Learn more.
In Spark AR Studio, you can create AR effects that transform someone's environment when they're looking through the back camera of a mobile device.
One way of doing this is by moving an object from camera space, into world space. If an object is in world space, you can set it to be in a fixed location in someone's environment. Only mobile devices with a gyroscopes can use effects in world space.
Another way of creating a world effect is with the plane tracker.
By default, all objects are added to the scene as children of the Camera in the Scene panel. This means they're in camera space, and will move with the movement of the device.
To see camera space, select the Camera in the Scene panel. This will highlight 2 rectangles in the Viewport in blue:
In the example below, the heart is in camera space.
When an object is no longer a child of the Camera, it's in what's known as world space. This means the object can be placed in a fixed location in someone's environment.
To move objects out of camera space and into world space, all you need to do is:
This will position the object at 0 along the X, Y and Z axes.
We've done this in the example below:
Use the Manipulators at the top of the Viewport or edit the Transformations of an object in the Inspector to experiment with its position, rotation and scale.
When you move an object into world space, Device Motion Capability will be added. Leaving it in place will limit the mobile devices your effect can work on, so it's a good idea to remove it if you've decided to make an effect in camera space instead.
If you move that object back to camera space or delete it, you'll need to remove the capability: