Cycles - Light Path Length node output
Closed, ResolvedPublic

Description

Dear Blender developers, I present you a very small patch for Cycles to be able to output the length of the ray being shaded in the LightPath node, it doesn't add any extra computation, is very simple no intrusive, making possible to create volume absorption dependent shaders, like glass absorption based on the distance the ray traveled inside the surface, or using the transmission path of the translucent shader to create a very fake sss effect like frozen ice shaders and others. very useful for use in combination with transmission light path.

I attached an screenshot but for more information about uses cases and illustrative screenshot you can visit my Blog entry about it:

http://agus3d.blogspot.com.ar/2012/05/blender-cycles-ray-length-node-output.html

You can find there a .blend file with the usage examples.

Patch against rev. 46120

Thanks for your attention.

Agus.

Alain - (alain) added a comment.Via Old WorldMay 2 2012, 12:52 PM

Great ! I've been waiting for that features to create shore water like here: http://blenderartists.org/forum/showthread.php?237457-Realistic-Water-with-Cycles

Kind regards
Alain

Tom Musgrove (letterrip) added a comment.Via Old WorldMay 2 2012, 6:35 PM

Hopefully brecht can have a look at this, some really nice example results in the blenderartists thread

http://blenderartists.org/forum/showthread.php?216113-Brecht-s-easter-egg-surprise-Modernizing-shading-and-rendering&p=2110115&viewfull=1#post2110115

Brecht Van Lommel (brecht) added a comment.Via Old WorldMay 2 2012, 7:04 PM

Patch committed, thanks!

Brecht Van Lommel (brecht) closed this task as "Resolved".Via Old WorldMay 2 2012, 7:04 PM

Add Comment