cartoon lines in blender

the default cartoon lines feature in blender is limited to profile, so i played around with the compositing nodes to achieve cartoon lining that applies to all corners. although there are some scenarios when this nodegroup won’t work properly (when faces with identical normals are overlapping each other, they are not distinguished) it’s still good enough and can be applied to animation as well.

http://th07.deviantart.net/fs70/PRE/i/2011/127/d/9/toon_lines_comp_nodes_by_artkalev-d3fsr2i.jpg

anyway, if someone can improve this let me know.

edge.blend (399 KB)

I haven’t look at the blend yet, but it seems to be quite aliased, does turning on FSA improve that?

I think it should antialiase it, and if not then at least improve it a bit, of course with FSA it takes more time.