CLEAR

Layers

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:

  • Add more layers.
  • Change the layer objects are assigned.
  • Adjust the render order and mode of each layer.

Adding New Layers

To add a new layer:

  1. Go to the Layers tab.
  2. Click +.

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.

Assigning Objects to Layers

To assign an object to a different layer:

  1. Select the object in the Scene tab.
  2. Go to the Inspector panel and click on the current layer at the top.
  3. Select the layer you want to assign the object to from the menu.

Changing Render Order

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.

Layers - Properties

Render Mode

Opaque

Enable read and write depth buffer. This means that closer objects will obscure far objects.

Cutout

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.

Transparent

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).

Overlaid

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.

Visible

Uncheck this box to stop the objects in the layer from being rendered in the scene.

Color

Change the color associated with the layer.