Light Probes in HDRP — Unity3D

Alberto Garcia
4 min readJun 3, 2023

--

Lighting plays a crucial role in creating visually stunning and immersive game environments. In the realm of game development, achieving realistic lighting can be a challenging task. However, with the High Definition Render Pipeline (HDRP) in Unity3D, developers have access to powerful tools like Light Probes. In this article, we will explore the amazing power of Light Probes and how they enhance the lighting quality and efficiency in HDRP.

  1. Understanding Light Probes: Light Probes are virtual objects that store lighting information, such as color and intensity, at specific positions within the scene. They serve as probes that capture and approximate the lighting conditions, allowing for realistic lighting interactions with objects and characters.
  2. Real-Time Global Illumination: One of the incredible capabilities of Light Probes is their ability to contribute to real-time global illumination. By placing Light Probes strategically throughout the scene, developers can capture the lighting information from different areas and use it to simulate indirect lighting, enhancing the overall realism and coherence of the environment.
  3. Dynamic Lighting: Light Probes enable dynamic lighting in HDRP. As the lighting conditions change in the scene, the Light Probes adapt and update their information accordingly. This dynamic nature allows for accurate lighting interactions with moving objects or changes in the environment, creating a more immersive and responsive experience.
  4. Importance of Baking Light Probes: In addition to real-time lighting, Light Probes can also be baked, which means precomputing the lighting information for static scenes or objects. Baked Light Probes provide high-quality lighting solutions without the need for real-time calculations, resulting in improved performance and efficiency.
  5. Light Probe Proxy Volumes: To optimize performance and accurately capture lighting information, Light Probe Proxy Volumes (LPPVs) can be utilized. LPPVs define a volume in the scene where Light Probes are placed automatically, ensuring an even distribution of probes based on the complexity of the environment. This automated process saves time and effort while maintaining lighting accuracy.
  6. Reflection Probes and Light Probe Groups: Apart from capturing direct and indirect lighting, Light Probes can also be used to approximate reflections. Reflection Probes capture the surrounding environment and provide accurate reflections on reflective surfaces. Light Probe Groups allow for more control over the lighting information by grouping multiple Light Probes together and managing their settings collectively.
  7. Enhancing Visual Fidelity and Realism: By leveraging the power of Light Probes, developers can achieve impressive visual fidelity and realism in their HDRP projects. Accurate lighting interactions, dynamic global illumination, and realistic reflections all contribute to a more immersive and visually captivating game world.

To start creating a Light Probe Group, add onto Hierarchy > Light > Light Probe Group.

This group of yellow spheres is the basic probe group.

Light probe group

You can click Edit Group to start selecting and multiplying the light probes

Editing Light Probe Group

After you spread out and multiply enough to cover the room, a wireframe should travel all across the room.

Light Probe Group Wireframe

Dynamic objects can now show the gizmo of the individual light probes it is being affected by. This wireframe stores the baked lighting in the scene and better bounces it off into dynamic objects like this:

A better look without gizmos and a smoother material.

Conclusion: Light Probes are an amazing tool available in HDRP Unity3D that revolutionizes lighting in game development. Whether it’s simulating real-time global illumination, dynamically adapting to lighting changes, or providing high-quality baked lighting solutions, Light Probes offer unprecedented control and efficiency. By strategically placing Light Probes and utilizing features like Light Probe Proxy Volumes, Reflection Probes, and Light Probe Groups, developers can create visually stunning and immersive game environments that leave players awestruck. Embrace the power of Light Probes in HDRP and elevate your game’s lighting to new heights.

--

--

Alberto Garcia
Alberto Garcia

No responses yet