User Tools

Site Tools


global_illumination

This is an old revision of the document!


Global Illumination


Global illumination provides more realistic, indirect lighting to a map. It generally works best when used with an indoor/interior map having a low energy directional light. It's a simple way to add better quality lighting to a map, however it comes at the cost of performance so it should be used cautiously. At this time it should be considered experimental. Global illumination can be enabled from the Map Properties panel.

The images below show an example map before and after global illumination has been enabled. As you can see in the second image (which has global illumination enabled), corners and areas that are obscured by objects appear darker and the lighting is generally more natural looking compared to the default lighting.

- Subdivisions setting determines the quality of the lighting (more subdivisions takes more performance), but best to experiment as to what looks best for a particular map

The “Bake” button needs to be clicked after changing the number of subdivisions or modifying an the “Use in Baked Light” setting for an entity.

Excluding Entities

In some cases, it's best to exclude certain entities from being included in the global illumination calculations. The “Use in Baked Light” setting on the Entity Properties panel can be unchecked for an entity to exclude it from this so it's only affected by the normal lighting. This is enabled for entities by default, and should typically be disabled for characters or animated objects that change or move significantly. As mentioned above, the “Bake” button on the Map Properties panel should be clicked again in order for the lighting to be properly updated after modifying this setting for any entities.

In the images below, the map on the left has not had any entities excluded from the baked lighting. In the map on the right, the characters and container objects have been excluded. This can also serve as a subtle indication to the player of entities that can be interacted with in some way.

global_illumination.1618900649.txt.gz · Last modified: 2021/04/19 23:37 by justin