Unreal Engine 4.25
Creating HDRI environment backgruond and lighting* in UE4:
Lighting using a panoramic HDRI background is also referred to as IBL – Image Based Lighting.
* The example HDRIs in this post are from www.hdrihaven.com
- Import HDRI environment file.
The file must be saved as a *.hdr file and not *.exr because AFAIK that’s the only way UE4 will recognize it as an HDRI environment and encode it as a Texture Cube (cube map)
- Enable the HDRIBackdrop plugin:
Go to Edit > Plugins
Type “HDRI” in the search field to locate HDRIBackdrop and enable it.
* You’l have to restart the UE Editor before using the plugin
- Drag a Lights > HDRI Backdrop object to your level:
- In the HDRIBackdrop details, select the wanted Cubemap:
- > Set the HDRIBackdrop‘s Intensity (self explanatory..).
> Rotate the HDRIBackdrop around its Z axis to set the environment’s direction.
> Set the HDRIBackdrop‘s Size.
* Make it larger than your whole scene,
And if Use Camera Projection is unchecked make it also large enough so that noticeable objects in the HDRI image will be distant enough as to not move incorrectly when you strife.
* When Use Camera Projection is activated the Size property has no effect.
> If Use Camera Projection is unchecked, set the Projection Center Z value to define the background image height below which it is projected as a flat ground.
> Lighting Distance Factor defines ground projection area that will appear to receive shadows from your scene objects.
* Set this attribute to 0 in-order to turn off the ground projection shadow.
> Use Camera Projection:
Activate this option to get a traditional infinitely far background with no flat ground surface projection.
9 thoughts on “UE4 – HDRI Environment & Lighting”
hey i try to rotate my HDRI and Skylight but the direction of the shadows stay the same. Any suggestions? thanks in advance!
Just made a quick test in UE4.25,
Rotating the HDRIBackdrop actor does also change light and shadow direction.
I suggest trying to check this in a new clean project to make sure it’s not something with your current settings.