Light probes

From Divinity Engine Wiki
Revision as of 20:28, 9 August 2017 by Kevin (talk | contribs) (Types)
Jump to: navigation, search

File:Lightprobes-banner.png


General

Light probes are the Larian Engine's system for indirect lighting and reflections. A pre-calculated approximation to global illumination.
In short, a light probe is an object you place in the level. It looks at the surrounding lighting and objects and uses that information to calculate realistic indirect lighting.
This includes light bouncing off of objects, causing colors to carry over to nearby objects (this effect is called color bleeding).
It also provides accurate reflections of surrounding objects.


Types

There are 2 types of light probes, used for different parts of the overall lighting.


Distant

Lightprobes-distant.png

Distant probes are used to account for far away lighting information: the sun and sky.
It uses the information of the surrounding atmosphere to apply an approximation of sun and sky light bouncing and color bleeding to everything in that atmosphere.
Since the probe contains atmosphere information, it applies to everything in that atmosphere. So in editor terms, you only need one distant probe per atmosphere trigger.

For more information on atmospheres, look here: Atmosphere panel
More information on atmosphere triggers can be found here: Triggers


Local

Lightprobes-local.png

Local probes are used to simulate color bleeding and reflections related to nearby lights and objects.
Local probes only gather information within a defined area around them and thus, only apply to objects in that same area.
Contrary to distant probes, you can place as many local probes as you want. Even probes inside other probe areas are allowed.
The lighting of the smallest probes always gets priority over the lighting of a larger probe that covers the same area. With local probes, you fine-tune illumination and reflections where the distant probe (or a large local probe) proves to be insufficient.


Usage


Shapes


Atmospheres


Best Practice