There are 5 types of light in Spark AR Studio - ambient, environment, directional, spot and point.
The ambient light adds a constant amount of light to all the objects in your scene. Directional, spot and point lights can be moved to illuminate objects from different positions. The environment light mimics the lighting from a real world setting - like the beach or a park.
Every new project has an ambient light and a directional light added to it by default. These lights help to illuminate objects in a realistic way - you can remove them if you want to. This is a particularly good idea for objects that use 2D objects, which don't need lights to provide realistic shadow and depth.
You can only have 4 lights in a scene at once - excluding ambient light.
To add a light to your scene:
The light will be listed in the Scene panel. You can make changes to it in the Inspector.
An ambient light will provide each object in the scene with a constant amount of light. You can't change the position, rotation or scale of an ambient light.
In the image below, there's no ambient light in the scene:
In this image, we've added an ambient light:
In the Inspector, you can:
A directional light will shine on each object in the scene from the same direction, like the sun. It's a good idea to have a directional light in any scene that contains 3D objects, as they give objects a sense of depth.
In the image below, we've added a directional light. Compared with the example above, the object has a more realistic sense of depth:
In the Inspector, you can:
A point light is a sphere-shaped light that shines in all directions evenly. It becomes less intense with distance, like a lamp.
A spot light is cone-shaped beam of light, like a flashlight or headlight. Below, we've added a spot light to the scene:
You can edit the position and rotation of these lights, either in the Inspector or by using the manipulators.
You can also choose a color, by clicking the box next to Color.
The spot light shines a beam of light within the range defined by its 2 constraining cones:
You can edit the outer and inner angle of these cones, by adjusting the sliders next to Outer Angel and Inner Angle in the Inspector.
The environment light can be used to add lighting across your whole scene that mimics in a real world setting - for example an office or the beach. Find out more about environment lights in this guide.
Checking the box next to Visible in the Inspector stop a light from being visible in the scene.
You can also create a patch to represent this property, for example to make a light turn on or off based on an interaction, or create a flashing light effect.
Under Enable for, you can check or uncheck the boxes to choose whether a light appears in:
You can stop a light from affecting some objects in your scene, and not others, by excluding the layer those objects are on. To do this:
Having lots of lights in your scene can impact the performance of your effect.
It's a good idea to remove ambient and directional lights from effects that don't include 3D objects, to help improve performance.
Uncheck this box to stop the light from being rendered in the scene.
Change the color of the light.
Adjust the brightness of the light.
Change the distance over which the light falls off.
Adjust the outer angle of a spot light
Adjust the inner angle of a spot light
Edit the position, scale and rotation of the light. You can't change these properties for ambient light.
Stop the light affecting objects on a particular layer.
Choose the camera or cameras on a mobile device in which you want to render the light.