Here's a great demonstration of the power of the Open Shading Language node! In 60 lines of code, Youpi wrote an Ambient Occlusion Shader.
Youpi writes:
Just because I need one, and also because the AO node in Blender is a little too light, I've made today an Ambient Occlusion Shader with OSL.
It works exactely like a standard Ambient Occlusion, as you could find it in many software.
Links
7 Comments
Decent result! Finally, an example of the OSL with Cycles in action! I'm looking forward to more examples of OSL at work within Blender.
you can follow here some other examples:
http://blenderthings.blogspot.pt/
Very nice work. I have really been waiting for something like this.
OSL is probably the best thing after introduction of Cycles :)
Just one small question:
"AO Angle is in RADIANS, 1.0 = 180°"
Do you mean 1.0 * pi = 180°, or angle is in pi Radians ?
I have saw the different examples that you guys have made, they are really interesting. It would be grate if there was a site where all those great shaders could be made as a library. And explain to novice as me as to instal and use them properly.
I wonder...can OSL shaders positively affect cycles render times and/or noise?
It's not hard to imagine that they can affect performance in a negative way.