The Power of Light Probes in Unity

Objective: learn how to use light probes to pass light data to dynamic objects.

In this scene, the lighting data is baked into the static objects. This allows for much more realistic lightning in the scene. For example, this glowing cube creates a slight glow on the ground beneath it. However, that glow is “baked in” and will not move with the object.

In order to change the light data so the ground is update with the new position of the cube, we would have to go to the Lighting window and click Generate Lighting. We could also turn on Auto Generate so that the scene will take a few moments to recalculate the lights every time a light source moves.

However, some objects are meant to be able to move around the scene. We want those objects to be realistically lit as well. This sphere actually does get updated lighting when it moves, even though its not updating the light map. How does that work?

The secret is an invisible web of objects called Light Probes. These keep track of the baked light data of the scene and use it to illuminate dynamic objects that move around.

We can create a new light probe group with this menu

Setting up light probes can be a lot of work. Fortunately, this scene already has hundreds of them set up in proper locations in order to keep track of what areas are lit by glowing surfaces and which areas are not.

We can think of those little yellow balls as light “sponges” that soak in the baked light data, and then apply that light to dynamic objects that move around. With gizmos turned on in the scene view, we can see which light probes affect an object as we move it around the scene.

--

--

--

I’m a passionate and talented software engineer seeking an opportunity in game development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting Started with Go

Do you really understand the code that you read ?

[Home Lab] Set up Kubernetes cluster on laptop/PC using Vagrant Virtual Box and Kubespray

Self-managed vs SaaS: where to host your data science applications

Creating a Graphite Cluster on Kubernetes

How to Get a GAME OVER in Unity

AGDK tutorial step by step

Bootcamp challenges and how i have adapted in the last few weeks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Blake Zoeckler

Blake Zoeckler

I’m a passionate and talented software engineer seeking an opportunity in game development.

More from Medium

How to Jump in Unity

Google Maps & Location Services

Time to Powerup!

Cinematography In Unity — Cameras In Cinemachine