2
$\begingroup$

I try to achieve that my lightrays are going through glass. With a volumetric container and without a glass in front of the light everything works fine. enter image description here But if I make my glass visible the lightrays disappear.

So I searched a little bit and found this question. I tried it but with this technic I have the problem that it affects the color of the button light. Additionally I was not able to get the nice fade out effect from the question above. I think its because my cylinder has a hole and is not filled like in the example.

enter image description here

So how can I do this without (or at least only a little bit) affecting the lightcolor of my button and with a glass infront of the light of the button?

Is it possible to get the result from the firt picture but with a glass infront of the light source?

Here is my blendfile.

$\endgroup$
3
$\begingroup$

The glass shader by itself won't let light pass through it the way you want. You need to modify the material by adding some transparency controlled with a light path node.

For more detail please read: How to illuminate the darkness inside glass objects in Cycles?

The volumetric light you can do just by adding some volume scattering to the world. enter image description here

click on the image to enlarge

$\endgroup$
  • $\begingroup$ Yes this is what I needed! Thank you. Why do you use additionally to the glass node a transparency node? $\endgroup$ – theoretisch Dec 2 '16 at 12:56
  • 1
    $\begingroup$ Please read the link on the answer. $\endgroup$ – cegaton Dec 2 '16 at 12:57

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.