Home Unity

Unity technical drawing style shading

polycounter lvl 9
Offline / Send Message
Veezen polycounter lvl 9
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:

http://forums.tigsource.com/index.php?topic=40832.msg1024980#msg1024980

Especially this image:
http://i.imgur.com/PE74MfR.png

Replies

  • stabbington
    Offline / Send Message
    stabbington polycounter lvl 10
    Have you tried using the Edge Effect (Normals) image effect? It should be a lot closer to what you're expecting, hopefully!

    http://docs.unity3d.com/Manual/script-EdgeDetectEffectNormals.html
  • Hyshinara
    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...
  • echofourpapa
    Offline / Send Message
    echofourpapa polycounter lvl 4
    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.
Sign In or Register to comment.