2
$\begingroup$

I would like to create a scene in which some simple objects make a simple scene, normally lighted, and with a transparent lens object looking through which some of the objects have an emitter material that also illuminates the area around them, but only when seen through the lens object. Is there any way to do this? E.g. with 2 cameras or scenes...

$\endgroup$

1 Answer 1

6
$\begingroup$

I guess the proper way to do this would be via compositing, but in Cycles, the Light Path node can take you some way.. it's a bit of a fudge, and may depend on your scene:

enter image description here

The torus in the little shot below uses this tree:

  • 'Is Transmission' ensures that the torus material will emit whenever seen through another transmissive material, and is 'OR'ed by the Maximum with:
  • 'Ray Depth > 2', which means that surrounding objects appear illuminated when seen through the glass, but not otherwise.. the discrimination isn't perfect in all situations, there might be a tiny bit of bounce from the torus when not seen through the glass, but seems good here:

enter image description here

(The glass is 2-sided, it has thickness)

$\endgroup$
1
  • $\begingroup$ Exactly the effect I was looking for. Gonna try this with Cycles. Thanks! $\endgroup$
    – andreas
    Commented Oct 20, 2020 at 6:21

You must log in to answer this question.

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