Search Unity

Toon Shader Desktop - Beautiful and fast

Discussion in 'Assets and Asset Store' started by Ippokratis, Jun 2, 2013.

  1. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi siblingrivalry,
    Update is coming in July and resistance is futile.
    Cheers :)
     
  2. Nicolas-Liatti

    Nicolas-Liatti

    Joined:
    Jun 19, 2013
    Posts:
    89
    I spoke with @Ippokratis by PM and he implanted the silhouetting, it seems to work as expected on the screenshots he sent me. I didn't have time to test the shader more in-depth though.
     
    siblingrivalry likes this.
  3. zachholt

    zachholt

    Joined:
    Aug 31, 2014
    Posts:
    10
    I am interested in this asset. Will I be able to pull shading like this? The model was rendered in blender. Thank you.
     
  4. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi, thanks for contacting me,
    You can get a similar result. If you wish, send me the model at my email ippobour at gmail dot com
    and I'll post some screenshots of the results.
     
  5. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    toonShaderDesktopOutline.png Here :) toonShaderDesktop.png
     
    Last edited: Jun 28, 2016
  6. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    News:
    Toon Shader Desktop update. Version 2.5 is submitted to the Asset Store:
    - Unity 5.4+ compatibility.
    - Matcaps do not rotate when camera rotates.
    - Supports normal scale.
    - Improved rim.
    - Added Occlusion and occlusion strength parameters.
    - Toon Shader Desktop price drop ( 20 euro ) for new customers, update is free for existing customers.
    - Existing Toon Shader Mobile customers can upgrade to Toon Shader Desktop for 10 euro.
     
  7. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
  8. Stevepunk

    Stevepunk

    Joined:
    Oct 20, 2013
    Posts:
    205
    Oh wow I lost this post a long time ago and only just found it again.
    Being that this is a toon shader I expected to see hard edges between the light levels and a configurable amount of 1-5 levels for example, rather than smooth shading..

    When I google toon shading I get this from wikipedia:


    Is this possible with this asset?

    Also I noticed that you mentioned alpha cutout double-sided. This is useful for sprites but where normal maps are used, one has to also reverse the normals when they flip the sprite (or when using any effects that show the backfaces like dissolve/cutaway).

    Something along the lines of:

    Code (CSharp):
    1.  float3 n = UnpackNormal(text2D(_Bump, IN.uv_Bump));
    2. o.Normal = dot(IN.viewDir, float3(0, 0, 1)) > 0 ? n : -n;
    I'm curious if this functionality is already built in.

    Also, is this shader compatible with Unity 5.5 & 5.6?
     
  9. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi Cereal_Killa,
    a. Yes, it is possible. You can send me a model of yours and I 'll send you back an image with the results. Or you might want to try yourself to get some results, using Toon Shader Free from my signature, which is free.
    b. This shader is made for 3d models, not sprites - if you wish to purchase it and try to modify it for your project, go ahead, source is included.
     
  10. Stevepunk

    Stevepunk

    Joined:
    Oct 20, 2013
    Posts:
    205
    Thanks for your reply. A sprite is basically a flat quad. Usually I add a normal map and turn cull off then reverse any normals facing away from the camera, but getting celshading in unity 5.5 is beyond me..

    I'll try the free version. Is it missing any features from the full desktop version?
    Also do you use deferred or forward rendering?

    I downloaded the free version and it looks like there's just a vertex and fragment shader but no surface shader so no effect from lights in the scene or normal maps. I guess I will have to use another shader. Thanks anyway.
     
    Last edited: Feb 4, 2017
  11. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Sprites, on the geometry level, may be a quad, on the shader level they are a little more complicated (stencils->ordering).
    Toon Shader Free is not the same as Toon Shader Desktop.
    Lights ( forward and deferred ) and normals are only supported in Toon Shader Desktop (paid version-is a family of surface shaders).

    To sum it up: If you need cell-shading for 3d models, this asset can serve you, if you need cell shading for sprites, look at other solutions.

    Kind regards.
     
  12. phouse2019

    phouse2019

    Joined:
    May 14, 2017
    Posts:
    5
    I'm debating on buying this from the asset store but I wanted to make sure of something first. You said this does support lighting - so the objects using this shader can receive lighting from all light types (point, spotlight, directional) as well as have outlines? Do the outlines thin with the distance from camera or do they expand?

    Reason I ask is because I am making a toon game with dynamic Time of Day so the lighting is constantly going to be changing. Also for areas like caves, shadows need to be cast and torches need to illuminate those areas. Can this shader do that?
     
  13. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi,
    This shader
    - can receive lighting from all light types (point, spotlight, directional)
    - has outlines that thin with the distance from the camera

    If you need any other clarifications, let me know,
    Kind regards.
     
  14. johnmk23

    johnmk23

    Joined:
    Jan 15, 2015
    Posts:
    2
    Hi - I've just bought Toon Shader Desktop.

    I've been reading through the online manual, none of the files mentioned were included with my download and it seems to be out of date. Is this the only source of information because I can't seem to find any others or any tutorials
     
  15. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi,
    Thanks for contacting me.
    You are welcome to address any questions you may have regarding Toon shader to my email, ippobour@gmail.com

    Kind regards,
    Ippokratis
     
  16. rodhurt

    rodhurt

    Joined:
    Apr 30, 2018
    Posts:
    4
    Hi

    Does it work for VR?

    Is it possible to change the thickness and fragment the outlines giving it a more Comic Drawing look?

    Best
     
  17. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi rodhurt,

    It works for vr, you can change the thickness.
    If you need to fragment the outlines just use hard edges on your modeling program of choice.

    Kind regards.
     
  18. rodhurt

    rodhurt

    Joined:
    Apr 30, 2018
    Posts:
    4
    I've sent you an email with sobe doubts.

    We want to achieve a visual look like this reference.

     
  19. rodhurt

    rodhurt

    Joined:
    Apr 30, 2018
    Posts:
    4
  20. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi there,
    You got mail ;)
     
  21. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    406
    Hi I bought the asset, and it's giving a lot of errors in 2019.1.9f. Is there a fix, or can I get a refund? Thank you!
     
  22. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    Hi nicmarxp,
    Thanks for conatcting me, I 'll have a look at it ASAP.
     
  23. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    406
    Thanks, I’ll watch this thread :)
     
  24. Ippokratis

    Ippokratis

    Joined:
    Oct 13, 2008
    Posts:
    1,521
    @nicmarxp, thanks for helping me decide to download unity v2019.

    This is what I get when I open the Toon Shader Desktop:
    upload_2019-7-13_7-55-49.png
    A bunch of warnings regarding obsolete features found in standard image effects scripts and line endings.
    I press the clear button and they disappear. I could detect no errors.
    upload_2019-7-13_7-58-54.png
    The included scene works ok, shaders work ok.

    What errors did you discover?
     
  25. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    406
    Hmm, I don't have it open at the moment, but it looks like the same files, but it was errors, instead of warnings. I solved it by deleting all the files mentioned, and I also could see the demo scene. So not sure if any of those are needed? :)

    Thanks for the quick support :)