In my scene it is required to position the lights close to the main object like this:
How I can make the light source invisible to the camera?
You can setup the emission material in cylcles like this:
Note: @gandalf3 mentioned that disabling visibility is slightly more efficient performance wise than this node setup.
In the object properties, you can turn off Ray Visibility of the 'emission object' for the camera:
In Blender 2.76 the Ray Visibility panel was renamed to Cycles Settings:
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.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
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.