Cycles OSL toon shader setup updated for 2.78

Description

Updated version of irie's Cycles OSL toon shader, working on Blender 2.78 and 2.79

Example of toon shader for Cycles + OSL.

This includes two OSL scripts:

Toon shader using diffuse_toon() and specular_toon() closures
Single sided black surface used for toon edge
You can see some test videos in Youtube:

http://www.youtube.com/watch?v=WcQFs1opokI

http://www.youtube.com/watch?v=coYggqUHwDc

Comments (11)

B
brickyboy99 over 8 years ago

You're a saviour. Thank you so much.

S
SeranadeFX over 8 years ago

So nice ^^

E
elibaba over 8 years ago

Hey Im trying to run the scripts is there any documentation on how to use these shaders? Im running the scripts and all i get is invalid syntax errors???

T
trigza over 8 years ago

@elibaba

H
HollowGraphic over 8 years ago

Black in 2.79, any ideas? It has no compilation errors at all.

D
Daveblender over 8 years ago

@HollowGraphic Perhaps check if you have GPU rendering on. OSL scripts only work in CPU rendering. In the" Properties" area, go to the "Render" tab, in the "Render" dropdown, under "Device:" change it to CPU and ensure "Open Shading Language" is checked on.

F
FrostDrive about 8 years ago

This is awesome! Love it. Is there any way to thicken the outlines or make them another color? (I'm trying to go for a low sat dark purple outline)

A
Azagwen almost 8 years ago

is there any way to use the toon alone without edges ?

R
ruwo almost 8 years ago

Great work, thank you!

G
GrimAnims over 7 years ago

Great job, but for anyone looking to modify and recompile this script, note that in the "else" statement under the skin shader, "glossytoon" needs to be changed to "glossy_toon".

T
TheRaptorsGame over 2 years ago

its not working in version 3.5

Sign in to leave a comment.