Environment Textures and the Environment Light

Environment textures mimic the light in a specific real world environment. Use environment textures in Spark AR Studio to add realistic lighting to your effects. This is also known as using image-based lighting.

You can either:

Environment textures are made from images that capture a scene - like an office or the beach on a sunny day - from all directions. For example, using the Office environment texture included in Spark AR Studio would provide an object with similar lighting to an office.

There are several environment textures built into Spark AR Studio - you can also add your own.

Environment textures should be HDR images. We recommend maximum 4K images.

Adding an Environment Light

To add an environment light to your whole scene:

  1. Click Insert.
  2. Select Environment Light.
  3. In the Inspector panel, click the dropdown next to Texture.

Either select New Environment Texture (Preset) to choose from a range of preset textures, or New Environment Texture to import your own.

Applying Environment Textures to Individual Objects

You can apply environment textures to individual objects, even if you've already added an environment light to the whole scene. Environment textures applied to individual objects will override the environment light added to the scene.

Select the material applied to the object in the Assets panel - it must by a physically-based material. In the Inspector Panel:

  1. Check the box next to Environment.
  2. Click the dropdown next to Texture and select New Environment Texture (Preset).
  3. Choose an option from the menu.

You can also add preset environment textures to the Assets panel, and then apply them to materials in your scene:



Adding Your Own Environment Textures

There's a huge range of environment textures to choose from on HDRI Haven and other similar websites.

Either:

  1. Import the texture into the Assets panel by clicking + next to Assets, and selecting Import from Computer.

  2. Apply it directly to a material in the Inspector panel by selecting New Environment Texture from the dropdown under Environment:



The texture will be listed in the Assets panel. The image in the Assets panel won't look exactly like the texture you imported, because the texture undergoes some processing before it can be used as an environment texture.

Constraints and Optimization

There can only be 1 environment light in a scene.

Environment textures can increase the size of your effect, which can impact performance.

We recommend:

  1. Including no more than 1 environment texture.
  2. Applying the same environment texture to each material in the scene.

Before you export your effect, make sure any unused environment textures have been removed from the Assets panel. Otherwise, they'll still be included in the overall size of your effect.