# How to hide hdri background?

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.

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

• 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 8:47
• If you have additional question open up a new question. blender.stackexchange.com/questions/ask – 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

• Is there a way to make it so you can replace the background with a different background that you want? – CrazyVideoGamez 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.

Click to enlarge

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