Hello,
Currently, I'm making custom Toon shader for the project of my team.
Mostly, everything is OK, but I have one specific issue.
In many cases, we are using game objects that we intentionally hardened edges In order to get the shading we want.
https://drive.google.com/file/d/1bOU0Zd ... sp=sharing
However, when I apply outlines in the usual way, the out line becomes all broken.
(I understand that. because the outline's normal came from original mesh with hard edge)
https://drive.google.com/file/d/159N_bp ... sp=sharing
But if there is any way to do, I want to get the outline as if it came from the mesh with smoothed vertex normal while I maintain original mesh with harden edge.
https://drive.google.com/file/d/10SS3TA ... sp=sharing
(I intentionally made outline thick to help my explanation)
can I get some help?
Outline with smoothed normal issue.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Outline with smoothed normal issue.
Hello, can you share a sample of your shader? Are you using our Outline node?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 3
- Joined: Sun Apr 07, 2019 10:33 am
Re: Outline with smoothed normal issue.
Hi! Thanks for your reply.
I'll attach my hair shader sample on this pose.
this is unity package contains test scene, material, and my shader.
https://drive.google.com/file/d/1bb9hTP ... sp=sharing
and attach two image here too.


(sorry, I'm not sure how to post image correctly. you can see the image by "right-clicking and open the image from new tab".)
in the scene, there are two torus mesh, one is with all soften edge and one is with harden edge.
In the shader, I used usual ASE outline node.
I want to make outline from harden edge torus look like the outline from torus of soften edge.
I'll attach my hair shader sample on this pose.
this is unity package contains test scene, material, and my shader.
https://drive.google.com/file/d/1bb9hTP ... sp=sharing
and attach two image here too.
(sorry, I'm not sure how to post image correctly. you can see the image by "right-clicking and open the image from new tab".)
in the scene, there are two torus mesh, one is with all soften edge and one is with harden edge.
In the shader, I used usual ASE outline node.
I want to make outline from harden edge torus look like the outline from torus of soften edge.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Outline with smoothed normal issue.
Thanks!
Please note that our Outline node might not be suitable for all types of effects, we've added it for convenience and as an example even though we've been expanding its features over time, but for certain situations it might be best to create a custom solution.
In any case, you might try to use the Vertex Scale type rather than the Offset, so that vertices are scaled rather than moved, effectively smoothing the jagged torus.
Please note that our Outline node might not be suitable for all types of effects, we've added it for convenience and as an example even though we've been expanding its features over time, but for certain situations it might be best to create a custom solution.
In any case, you might try to use the Vertex Scale type rather than the Offset, so that vertices are scaled rather than moved, effectively smoothing the jagged torus.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 3
- Joined: Sun Apr 07, 2019 10:33 am
Re: Outline with smoothed normal issue.
Thank your for the reply. I'll look for the custom solution, and try to use vertex scale too. :>