ogsl contour code? (aka toon lines)

DonK's icon

I can find plenty of info on the web about programming the shading part of the cel shader look, but I can't find any info on the contours as we call them in mental ray (aka toonlines). Has anyone accomplished this with Jitter? Toon lines?

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

DonK's icon

Does this shader use texture coordinates? I have a strange seam that looks like a texture edge when I rotate the apple.

It looks mostly like it's using facing normals to camera.
I was hoping for a better line drawing method than using the normal angle to camera, but this definately helps, thanks.

Axiom-Crux's icon

I set the face cull to 1 and it helped

DonK's icon

Thanks. I gotta finish up the jitter tutorials now before I ask anything I can find by doing them. :)