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.


enter image description here

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

  • 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 '16 at 8:47
  • 1
    $\begingroup$ If you have additional question open up a new question. blender.stackexchange.com/questions/ask $\endgroup$
    – Leander
    Oct 16 '16 at 10:30

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

  • 1
    $\begingroup$ Is there a way to make it so you can replace the background with a different background that you want? $\endgroup$ Jun 23 '20 at 22:29

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.