39
$\begingroup$

I have an object with an hdr for the background. What do I do in Cycles to render the background with my object?

How is this different from an ordinary render in Cycles?

The hdr is a big one, 350MB.

$\endgroup$
1
  • $\begingroup$ Thank you @Cegaton, I didnt make my self clear! Sorry. I already have that part, it is the rendering that I dont know. I have an hdr in blender and an object that I have made. $\endgroup$ Jun 8, 2017 at 3:29

1 Answer 1

70
$\begingroup$

There are a few pieces to make this work. Note that there are a few differences on how this works in 2.7x and 2.8x versions.

First Step:

In the world section, set the surface to Background and the Color to use Environment Texture.

Then select the HDRI image you want to use.

enter image description here

For version 2.8x the world section is here:

enter image description here

Once the image is loaded enable Scene World in the viewport shading. Otherwise blender will use an HDR image that is "built in".

enter image description here

For 2.7x To view the image in the 3d viewport enable Display> World Background.

enter image description here

Usually HDRi images use an Equirectangular Projection. Think of it a as a huge sphere that completely surrounds the scene.

enter image description here

Note that the Background can only be displayed in perspective view, it will not be on orthogonal view.

The HDRi not only becomes the background for the scene, but is also used to light the scene. Every pixel of the HDR image contributes to the lighting of the scene. That is why the results of lighting wiht an image resemble the real world, where light acts in very complex ways.

The intensity of the illumination of the scene can be controlled by making the image brighter or darker with the Strength value on the world settings.

enter image description here

To render the HDRi in the background of the scene disable>Film>Transparent.

enter image description here enter image description here

The rendered image will be lit bythe HDR image and use that same image as the background of your scene.


If you want to use the HDRi to light the scene, but want a transparent background to be composited later with the background, or want to blur the HDR or maybe replace the background all together, then enable film transparent and enable the Environment output for the render layers, and use it as a different element in the compositor.

enter image description hereenter image description here

For 2.8 enable the Environment pass for the View Layer

enter image description here

enter image description here

To change the placement for the background

In the World section of the Shader Editor add a Texture Coordinate node and a Mapping node to control the placement of the Environment texture. By changing the rotation on the mapping node you can place the HDR where you need it.

For 2.8x:

enter image description here

For 2.7x

enter image description here

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Fantastic comprehensive answer! It's not as easy to click a button in Blender, thank you so much for taking the time to put this together! $\endgroup$ Mar 28, 2019 at 20:10
  • $\begingroup$ I spent a lot of time trying to figure it out why Blender was not displaying the background image. Turns out, It was only because Blender was not in perspective view. $\endgroup$ Apr 17, 2020 at 15:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .