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.

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.