Shadows

Previous

Step #396 in the Expanded Vanilla list

Next

What is this button?

Author:
OpenMW Authors
Description:
Realtime shadow maps for (optionally) all game objects.

Mod Installation/Setup Info

Did you find any inaccurate information below? Please let us know by opening an issue on GitLab or joining our Discord!

Usage Notes:

To enable shadows via OpenMW-Launcher:

  • Click the Graphics icon at the top of the launcher
  • Click the Shadows tab
  • Check the box next to Enable Player Shadows
  • Check the box next to Enable Actor Shadows
  • Check the box next to Enable Object Shadows
  • Check the box next to Enable Terrain Shadows
  • Note that not all shadows settings are exposed via the launcher

Near Perfect Shadow Settings Pre-Set (3-5 FPS cost in testing on modern hardware)

number of shadow maps = 3
split point uniform logarithmic ratio = 1.0
compute scene bounds = bounds
shadow map resolution = 4096
normal offset distance = 8.0

We suggest that you don't enable indoor shadows as on multilevel buildings, you will see the shadows through the floor.

In general you can use the above settings in pretty much any setup with some slight tweaks.

Adding maximum shadow map distance to your settings file, and setting the value to 4096, which is half the regular default of 8192, will improve your FPS.

Lowering your number of shadow maps will increase your FPS if you need it.

If you are in need of VRAM, you may lower your shadow map resolution to either 2048 or 1024.

If you are struggling for FPS, it is quite possible that not using shadows at all could be an option rather then having subpar looking shadows.

On 0.49 Dev Builds, increasing number of shadow maps will only cost you a bit of FPS, and will not cause you any texture issues. Highly suggest that you try out 4 shadow maps (or more) if your CPU can handle it, the extra map is helpful visually.

Please see the Tips: Performance page for more information about shadows performance tweaking and testing, as well as the official documentation for shadows for more information about related settings.

Extra Configs:
These values need to be added to settings.cfg (be sure to consult the CFG Generator for a complete readout of all required settings):
Click to hide or show:
[Shadows]
enable shadows = true
actor shadows = true
player shadows = true
terrain shadows = true
object shadows = true
number of shadow maps = 3
compute scene bounds = bounds
split point uniform logarithmic ratio = 1.0
shadow map resolution = 4096
normal offset distance = 8.0