22

I have added an hdri environment file and i want to use the lights and not the background image. Is there any option present to hide the image and just use the light source.

atek
  • 10,006
  • 29
  • 91
  • 195

3 Answers3

33

In Blender 2.8x, this can be done by ticking the Transparent checkbox in Render Properties:

Properties Panel > Render > Film > [x] Transparent

Blender 2.8 Transparent Background

Yann Masoch
  • 278
  • 1
  • 10
Austin Martin
  • 489
  • 4
  • 6
  • 2
    Is there a way to make it so you can replace the background with a different background that you want? – crxyz Jun 23 '20 at 22:29
  • @CrazyVideoGamer In this case I'd use a simple plane with a color or a texture, facing the camera directly. – Nekto Sep 11 '23 at 10:01
26

enter image description here

In the properties panel, World section, Ray Visibility tab, unceck the "Camera" option.

josh sanfelici
  • 26,917
  • 2
  • 20
  • 40
  • 2
    perfect and thanks 1 one additional question i can c the black background can we change the color from back to some other color – atek Oct 16 '16 at 08:47
  • 1
    If you have additional question open up a new question. http://blender.stackexchange.com/questions/ask – Leander Oct 16 '16 at 10:30
11

I usually just use this node setup for the environment to hide the HDRI from the camera. It also allows for some flexibility if one were to want the visible background to be say, blue or have a gradient and light the scene with the HDRI instead of turning off camera rays altogether.


The light path is camera ray output as mixing factor makes the camera see the black background shader, while the environment receives the lighting from the HDRI.

enter image description here Click to enlarge

Timaroberts
  • 12,395
  • 6
  • 39
  • 73