When Spark AR Studio renders a scene, the objects are rendered in a specific order. In general, objects will appear in front of other objects when they're closer to the camera - even when they are all in the same layer.
This might result in objects that you want to appear in front of other objects appearing behind them and vice versa. Use layers control this process, when you need to.
By default, new projects have one layer and every object you insert is assigned to this layer.
However, you can:
To add a new layer:
To rename or remove layers, double-click on the layer and select the relevant option from the menu.
There must always be one layer in a project.
To assign an object to a different layer:
The render order is the sequence in which the layers are rendered.
If you have more than one layer in your project, the layer at the top of the list will render first and the layer at the bottom of the list will render last. This won't affect the order your objects appear in unless they're at the same z-position or you use different render modes.
To change the order, click and drag the layers into position.
Enable read and write depth buffer. This means that closer objects will obscure far objects.
Disable read depth and enable write depth. These objects will always draw over any other object, and these will obscure opaque or transparent objects farther away if such are drawn after.
Enable read depth and disable write depth. These objects will be obscured by nearer opaque or cutout objects that have already been drawn, but can be obscured by any objects drawn afterwards (whether nearer or further away).
Disable read and write depth. These draw on top of any objects of any type already drawn, and in turn will be overdrawn by any later rendered objects, regardless of whether they are nearer or further away.
Uncheck this box to stop the objects in the layer from being rendered in the scene.
Change the color associated with the layer.