Hi! So I wondering if there is chance to create shader for Unity which looks like technical drawing? I've tried use Edge detection script but it doesn't work very well. Also I found this and it could be perfect for my purpose:
As far as I can tell, it is already the "Edge Detect Effect Normals" that is being used in the linked article.
(among other things, it reads "This generates edges based on depth and normal differences.")
But even if it isn't, the effect still won't catch every detail, so it's unusable for technical drawings anyway.
The only real solution is the one the autor has eventually created, except leaving out the shadow and dithering.
Too bad they only share the first step of that process...
Triangle Luminescence Edge Detection mode works really well, you just need to control the color offsets of your mesh.
TI doesn't use a depth texture(so it's more mobile friendly if that's a requirement), and basically works by drawings a line when it detects a strong enough color change.
You can get good dashed lines with careful control of gradients too. They have to be backed into a texture though.
Replies
http://docs.unity3d.com/Manual/script-EdgeDetectEffectNormals.html
(among other things, it reads "This generates edges based on depth and normal differences.")
But even if it isn't, the effect still won't catch every detail, so it's unusable for technical drawings anyway.
The only real solution is the one the autor has eventually created, except leaving out the shadow and dithering.
Too bad they only share the first step of that process...
TI doesn't use a depth texture(so it's more mobile friendly if that's a requirement), and basically works by drawings a line when it detects a strong enough color change.
You can get good dashed lines with careful control of gradients too. They have to be backed into a texture though.