How to make a cycles light emisson object invisible to the camera?

by p2or   Last Updated June 27, 2018 01:15 AM

In my scene it is required to position the lights close to the main object like this:

enter image description here

How I can make the light source invisible to the camera?



Answers 3


You can setup the emission material in cylcles like this:

enter image description here

Note: @gandalf3 mentioned that disabling visibility is slightly more efficient performance wise than this node setup.

p2or
p2or
October 18, 2014 11:07 AM

In the object properties, you can turn off Ray Visibility of the 'emission object' for the camera:

enter image description here


In Blender 2.76 the Ray Visibility panel was renamed to Cycles Settings:

enter image description here


You can also run this script to enable or disable the Camera Ray Visibility for all objects in the scene:

import bpy

for obj in bpy.data.objects:

    # toggle mesh lights
    if obj.type == 'MESH':
        nodes = obj.data.materials[0].node_tree.nodes
        for node in nodes:
            if node.type == "EMISSION":
                obj.cycles_visibility.camera = not obj.cycles_visibility.camera

    # toggle lamps
    if obj.type == 'LAMP':
        obj.cycles_visibility.camera = not obj.cycles_visibility.camera
jasperge
jasperge
October 18, 2014 12:50 PM

enter image description here

Well, in Blender 2.79 just turning the camera ray off did not work as I expected. So I did a new trick. It Works fine for me.

Geraldo Barros
Geraldo Barros
June 27, 2018 00:25 AM

Related Questions



How to render an object without its shadow?

Updated March 15, 2016 08:06 AM

composition advice needed

Updated June 17, 2018 12:15 PM