Note : TO USE THIS .BLEND YOU NEED A RECENT BUILD OF BLENDER 2.63 (LATER THAN 46200). IT DOESN'T WORK WITH THE OFFICIAL RELEASES of 2.63a YET.
This .blend file contains nodegroups that fake volumetrics using the lightpaths ray length output. It contains a variety of materials that do this. They only produce absorption without any scattering. One is based on physical settings and is used for a variety of liquids including cola, water, merlot, apple juice, cranberry juice, budweiser, chardonnay...etc. The settings for these were taken directly from the website http://www.home.no/faenskap/3d/scattering-properties-of-participating-media.html and any other physical absorption coefficients can be used. Also included are, plain absorbing volumes (without refraction), emitting volumes, glowing glass, a simple glass shader that transmits one colour and a creative glass shader that allows any colour for various depth. I have also added a simplified way of setting realistic absorption, with a material that uses a colour at depth setting.
<div></div>
Thanks! I used a recent build of 2.63. I have just noticed that 'ray length' isn't in the official bug fix release of blender 2.63 yet so to use this you will need to get a recent build of blender trunk (later than 46200), either from http://www.graphicall.org/ or by building it yourself.
Yes, I got one of last development builds from Blender at "http://builder.blender.org/download/"
Why its not working with me in 2.9 cycles, I copied 1 mesh and pasted in my working project. As compare to original file (for example yellow material (BudweiserMonkey)) in my project file its look transparent as if its transparent glass. Not the yellow effect it has in the original file. Any suggestion whats going wrong with my setting or something else. (here is the difference https://imgur.com/a/B8oukB3). I tried in 2.79, 2.83.5 it work but in 2.90 I got this result. Thanks.
Great materials. Thanks for sharing. Which Blender version have you used?