19
$\begingroup$

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.

$\endgroup$

3 Answers 3

26
$\begingroup$

enter image description here

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

$\endgroup$
2
  • 2
    $\begingroup$ perfect and thanks 1 one additional question i can c the black background can we change the color from back to some other color $\endgroup$
    – atek
    Oct 16, 2016 at 8:47
  • 1
    $\begingroup$ If you have additional question open up a new question. blender.stackexchange.com/questions/ask $\endgroup$
    – Leander
    Oct 16, 2016 at 10:30
29
$\begingroup$

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

$\endgroup$
2
  • 2
    $\begingroup$ Is there a way to make it so you can replace the background with a different background that you want? $\endgroup$ Jun 23, 2020 at 22:29
  • $\begingroup$ @CrazyVideoGamer In this case I'd use a simple plane with a color or a texture, facing the camera directly. $\endgroup$
    – Nekto
    Sep 11 at 10:01
10
$\begingroup$

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

$\endgroup$
1
  • 4
    $\begingroup$ THIS! I have been searching for this for years..... thank you! $\endgroup$
    – lmg1114
    Dec 24, 2020 at 1:16

You must log in to answer this question.

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