Surface AND volume shader?

I can’t figure out how to have both on the same object. Is it not possible by definition of what they are? Or am I am I just unaware of the method?

e.g. volume shader only:


…and volume & surface:


Clearly the volume shader is having no effect at all once the surface shader is plugged in.

All I really want to do is mix the two shaders in some way. Specifically I’m after the effect visible in the first image where the dark object intersects the cube and can be seen for a little distance within the cube. I don’t want something that is just slightly transparent, it needs to have some density so that objects fade away the further the intersect into the object.

Any ideas?

I am on a MacbookAir, and I’m using a 2.70 from 5 March.

It seems that mixing the surface shader with a transparent shader is the way to control that. Is that the ‘best’ way?

Exactly. Presumably there is plenty of volume going on in your render, but you can’t see it because the surface is opaque! Change your Glossy shader to Glass!

that would be a mess

If you use a surface shader - it has to be transparent (or semi transparent). So the glass, translucent, transparent and refraction shaders should all work fine with volumetrics.

You can also use a mix surface shader - just so long as some aspect of it is transparent (i.e. you could have a mixed glass/glossy shader - with a texture to control which parts are transparent).

How so?



Thanks everyone, it makes sense now. :slight_smile: