In Meta Spark Studio, you can apply the dynamic environment texture to light an object under the same conditions as the real-world scene the virtual object is placed in. The object will be lit differently depending on how the user’s location is lit, making your effect more immersive and realistic.
You’ll combine the dynamic environment texture with a physically-based material applied to an object. The object must also be placed under either a plane or target tracker in the Scene panel.
Below, we've added the dynamic environment texture to the material applied to the flower pot object on the left. The plant looks more realistically integrated in its surroundings. The image on the right uses the default Meta Spark environment texture and looks too brightly lit for the enviroment it's placed in.
Next, we'll show you how to apply the dynamic environment texture to an object.
First add an environment light and a tracker to your project:
Next, extract the dynamic environment texture from the environment light:
Next you’ll create a physically-based material to combine with the environment texture.
The dynamic environment texture is now applied to the physically-based material.
All that’s left to do is apply your material to your object.
The environment texture is applied to your object but you won’t see the result in the Viewport or Simulator. This is because the dynamic environment texture uses information from the user’s device about their surroundings to light the object accordingly. To see how your object looks, you’ll need to preview your effect on your device.