(related to this and this) Well, I'm not yet (but not so far) ready for cylinders but still trying to learn!
Now let's play with rectangular-parallelepipeds and do the same thing : A shape of light inside the same bigger shape with a volume scatter. :)

The goal is to do this with 1 object, only playing with math and vector nodes connected to an emission and a volume scatter nodes in a single shader.


1 Answer 1


Thanks to Chebhou's setups (see question for links) I found something that fits my question. here is the node setup: enter image description here

But I wanted to know how to make the light inside from all sides...
here is the node setup
enter image description here

The important things to note are the placement of the object's origin (all rotations applied) and the value node controling the space between volume scatter and light, normalized. 0.2 means 20% up/down (Z), 20% left/right (Y) and 20% front/back (X). The last multiply node just adds strength to the light.

  • $\begingroup$ you did it ! I'm waiting for an answer that my help to make this effect in any object $\endgroup$
    – Chebhou
    Commented Feb 14, 2015 at 7:59
  • $\begingroup$ @Chebhou That's exactly what I was about to ask :) My answer is good but looks like a workaround. I'll try to use objects geometry or something like that. BTW thanks a lot, the study of your setups allowed me to learn more in a day than in a year :) $\endgroup$
    – Bithur
    Commented Feb 14, 2015 at 9:33

You must log in to answer this question.

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