Using Light probes in Unity 3D

In this tutorial, we will see what are light probes and how to use them in unity 3D applications. Light probes are very useful to provide real time like lighting effects to the moving objects in a baked light environment.

Light Probes

Light probes captures the light information that is passing through the empty space of the scene. It stores the baked light information.

Light probes apply these stored light information to the moving objects and provides the high quality lighting to the moving/ non-static objects in the scene.

Light probes in Unity 3D – Step by step guide

Download the below example unity package here – Light Probes Demo Unity Package

Step 1: Prepare scene
We will use the below scene for the implementing light probes. Mark all the environment game objects static. This includes walls, floors and directional light.

Step 2: Add a cube game object. This will be a non-static/ moving game object.

Cube

Step 3: Make directional light mode to Mixed.

Mixed Mode Lighting

Step 4: Light settings
Open light settings window (Window -> Rendering -> Light Settings ). Disable real time lighting and set lighting mode to subtractive.

Light settings

Step 5: Add light probes
Add light probe group in the scene (Create -> Light -> Light Probe Group)

Add Light Probe Group

Step 7: Edit Light Probe
Click on the edit light probes button in the inspector. As shown below it will allow you to add, delete, duplicate the probes.

Enable Edit light probe

After then you can edit the light probes in the scene. Below is the example of selecting multiple light probes and arranging their position.

  • While arranging light probes, make sure that the position of light probes are above the ground otherwise it will not be able to store light information that is bounced from the ground.
  • Add light probes where ground color is changing or where shadow is present. Basically, add light probes at positions where light information is changing.
Light probes in unity 3D
Arrange position of light probes

We can also click on a light probe sphere to select and change its position.

Light probes in unity 3d
Edit single probe

Step 8: Bake the light from light settings window. Ignore this step if auto light generation is switched on.

Generate lighting  - light probes in unity 3d
Generate lighting

Disable compress light maps option in the light settings, if errors throws at the time of baking and bake again.

Step 9: Test the light probes effect by changing cube position. It will take light information from near by light probes. You can see these near by probes in the editor scene.

Result - light probes in unity 3d

Hope you get an idea about using light probes in unity 3D. Post your comments for queries and feedback. Thanks for reading.

Share Button
The following two tabs change content below.
Gyanendu Shekhar is a technology enthusiast. He loves to learn new technologies. His area of interest includes Microsoft technologies, Augmented reality, Virtual reality, unity3d and android development.

Latest posts by Gyanendu Shekhar (see all)

Gyanendu Shekhar

Gyanendu Shekhar is a technology enthusiast. He loves to learn new technologies. His area of interest includes Microsoft technologies, Augmented reality, Virtual reality, unity3d and android development.

One thought on “Using Light probes in Unity 3D

  • May 14, 2021 at 5:44 pm
    Permalink

    Hi Gyanendu. Such a nice explaination over light probes. But i need something where i can set the Meshrenderers of one heirarchy to look for light probes in same position as the objects of second heirarachy to avoid lighting difference when duplicating the object. Could you guide me on this a bit?. Thanks.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *