HDRIs in Blender

HDRIs (also called HDRs or HDR images) are High Dynamic Range Images. We can get many of them for free and they can be used in Blender as global lighting and backgrounds. Installing and using HDRIs in Blender is easy and this guide will cover everything we need to know on the subject. It will be updated as needed. This guide may include affiliate links which pay me a commission if used to make a purchase.

Also, I have a YOUTUBE VIDEO on the topic as well if you’d like to check it out.

What is an HDRI?

An HDRI (or more specifically an “HDRI map”) is a panoramic photo which includes imagery from 360 degrees. The panoramic image can be mapped to 3D space in 3D graphic software like Blender.

An HDRI (high-dynamic range image) from Polyhaven.com.

HDRIs contain a large amount of color data, much more than standard images like JPG or PNG. Standard images use a brightness range from 0 (black) to 255. This range is optimized for display on monitors but real-world lighting has a much broader range of brightness. HDR images use 32-bit color instead of 8-bit color (JPG) or 16 bit (PNG). Their file sizes are proportionally larger as a result.

This extra data gives the image more information about the brightness of every single pixel in the image. Using HDRIs to light a 3D scene is the simplest way to get the most realistic lighting. Next we’ll discuss where to get free HDRIs (don’t pay for them!) and how to install them in Blender.

Where to Get HDRIs

There used to be a decent market for HDRIs but now there are so many places to get high quality HDRIs that there’s no need to pay for them. A quick Google search for “Free HDRI” should do the trick. The first place to start is definitely PolyHaven.com. As of this writing, PolyHaven has about 550 HDRIs available for free.

HDRIs available from Polyhaven.com and available for use in Blender.

When using PolyHaven.com, we can search for outdoor HDRIs and indoor HDRIs. They are well-organized and categorized. For example, with sky HDRIs, we can search by cloud coverage or by time of day (sunset, sunrise, afternoon, night, etc). There is an entire category of studio HDRIs which simulate the lights of a studio. These can be great for putting 3D models on display with professional scene lighting.

I would cover more places to get HDRIs but honestly PolyHaven probably has everything we could need.

HDRI File Types

When browsing HDRI files, we will run into a few different file types. The most predominant are HDR and EXR. Both of these offer very high dynamic ranges and will work well to light a scene. Normally the EXR file is larger in size.

We will also occasionally see JPEG, PNG or TIFF file types as HDRIs. These are not truly high dynamic range images but are formatted to wrap around a scene in the same way. Using these lower dynamic range images will give us a background image but will not have the lighting detail provided by true HDRIs.

We will also see a variety of resolutions for HDRIs – many of them very large. Which resolution size we want will depend on what we are using the image for and how big of a file we are willing to use.

If we are using the HDRI only for lighting and it will not be visible in the scene, we can choose a lower resolution. If the HDRI is providing background imagery to the scene (such as a sky) we probably want a higher resolution. Because these files stretch the entire 360 degree scene, a high resolution is necessary to maintain a high quality image.

8K is what I would look for if we are going for quality. If the background imagery is not a huge focal point or it will be blurred or obscured in the scene, 4K should be fine. If we are only using the HDRI for lighting, even lower may work.

Here are the differences in file sizes for various versions of the same HDRI I sampled from PolyHaven:

1K1.54 MB5.65 MB
2K6.23 MB21.19 MB
4K25.29 MB81.69 MB
8K99.7 MB319.05 MB
16K378.86 MB1.22 GB
20K585.98 MB1.91 GB
HDRI file sizes by type and resolution
Scatter is my favorite addon for nature environments and scattering objects (Affiliate Link)

Installing an HDRI in Blender

To use an HDRI for scene lighting in Blender, we need to add it to our “world.” The “world” in Blender is the infinitely far away 360-degree space around our scene. It’s the globe-shaped background of our scene. HDRIs are formatted to be wrapped around this scene much like a map image is wrapped around a globe.

The surface settings for a world background in Blender.

The World Properties tab in the Properties Panel is dedicated to settings for our world. Fittingly, the icon for the tab is an image of a globe. By default the world is set up with a single color. We will only be able to see the world background in Render Preview Mode. There is an option in the settings to “Use Nodes” which will need to be turned on in order to place an HDRI in the world. Turn this on and then go to the Shader Editor. If you don’t see the “Use Nodes” button then it’s already turned on.

In the top left of the Shader Editor is a box which will display “Object.” Change this selection to “World.” Now whatever we do in the Shader Editor will be affecting the world instead of object materials.

Default world background nodes in Blender's shader editor.

The default shader setup is a Background Node plugged into a World Output Node. We will press “Shift+A” and search for an Environment Texture Node. We will plug the color output of the Environment Texture Node into the color input of the Background Node. If we are in Render Preview Mode we will notice the world has turned pink because there is no image loaded into the Environment Texture Node yet.

Environment node to background node in Blender shader editor.
An Environment Texture Node plugged into a Background Node in the world shader editor

On the Environment Texture Node, click “Open” and a file browser will appear. We will navigate to the location of the HDRI that we want in our scene. Then choose “Open Image.” The HDRI will be loaded into our scene.

Adjusting the HDRI

We can adjust the strength of the HDRI from the strength slider in the background node. A higher strength will make the world brighter and it will give off more light.

If we want to adjust the positioning of the HDRI, we can add a mapping setup to the nodes. Press Shift+A and search for a Mapping Node. Plug the output vector from the Mapping Node into the input vector of the Environment Node. Then press Shift+A and search for a Texture Coordinate Node. Plug the “Generated” output from the Texture Coordinate Node into the vector input of the Mapping Node. Our setup should now look like this:

Blender world node setup in shader editor includes texture coordinate, mapping, environment and background nodes.
A full world node setup (minus the HDRI in the Environment Texture Node)

On a side note, if we have the Node Wrangler Addon installed, we can simply select the Environment Texture Node and press “Control+T” to add the mapping setup. It will add both the Mapping Node and the Texture Coordinate Node for us.

The most common adjustment we would want to make is rotation – and probably the rotation on the Z axis specifically. Start there and make adjustments. When we change the rotation of the Z axis, the HDRI should spin around our world. If you want to make further adjustments, play around with the X and Y axes.

Adjusting the location might be something we could find useful but make very small adjustments as too much will distort the image. We almost never want to scale the HDRI but if we did, the scale options in the Mapping Node would allow us to do so.

Because this is a node setup, we can of course add all sorts of nodes to adjust the look of the HDRI just as we would with materials. For example, we could add a “Bright Contrast” Node between the Environment Texture Node and the Background Node to adjust the brightness and contrast of the HDRI. We could do the same with a Hue/Saturation Node or any other node for color correction.

Create an HDRI “World Library”

If you’re interested in setting up a “World Library” full of HDRIs, I have a tutorial on YouTube for how to do it using Blender’s Asset Library.

YouTube player
How to create an HDRI library using Blender’s Asset Browser

Success! You're on the list.

Published by Brandon's Drawings

I am a digital artist in Vacaville, CA. I originally created this site to display my own digital art. Now I also use it to teach others about digital art - mostly with the free 3D software known as Blender.

Leave a Reply