Baking Light

Light baking is an excellent way to improve performance, but it is somewhat of a balancing act to make everything work correctly. Here are a few tips up front:

  • Use GPU Lightmass Plugin

  • If you have moveable objects in your scene, set them to movable and lighting to stationary (not static)

GPU Lightmass

Project settings

  1. Go to Edit>Plugins. Search for GPU Lightmass and Enable

  2. Go to Edit>Project Settings. Search Hardware Raytracing and Enable Use Hardware Ray Tracing when available and Support Hardware Ray Tracing.

  3. Also in Project Settings, search Virtual Texture and check Enable Virtual Texture Support. MAKE SURE TO ENABLE VIRTUAL TEXTURE LIGHTMAPS AS WELL.

  4. Also in Project Settings, search Global Illumination and change to None.

  5. Probably not needed, but you can also go to your post-process volume and change your Global Illumination to None and Reflections to None.

  6. Restart your project.

Set up your lights

You will want to go through all of your lights and environment lighting and determine if you want them to be static or stationary. If unsure, just use Stationary.

You may want to set your Skylight to Real Time Capture.

I will change these point lights to Stationary as well.

Set up your Objects

You need to determine which objects in your scene need to be set to Static, Stationary, or Moveable.

Examples

Static Objects

Will not move at runtime at all.

Buildings

Stationary Objects

Objects might need to move but are not always moving.

Props that may be moved at runtime

Movable Objects

Objects need to move constantly.

Animated Cars

Baking

Go to Build>GPU Lightmass to open the window.

In the GPU Lightmass tab, uncheck "Viewport Realtime is OFF".

If you cannot turn of Viewport Realtime is off from this menu, go to the Viewport Options at the top left of the viewport and there will be something that says "Disable Realtime Override".

Click on Build Lighting at the top left of the GPU Lightmass window.

Tips and Troubleshooting

You can change your Lighting Quality by going to Build>Lighting Quality

You should check your Lightmap Density and Resolution Adjustment by going to Build>Lighting Info

With static lighting, especially where you have very large objects, like the ground, you may need to click on the object, search for "Lightmaps", and override the Light Map Res to be much much larger.

References

Here are a few video references that have been helpful for us:

Baked RTX Lighting in Unreal Engine 5 https://youtu.be/2VY-ZBWM5-M?si=HYBETr4aIFUh5lUV

UE5 Can we still Bake Light? https://www.youtube.com/watch?v=Tx-PNbKmLPU

Last updated