Outline order?

Node-based Shader Editor

Outline order?

Postby CrashDummy » Tue Mar 20, 2018 1:50 pm

Hello,

I commissioned a small shader that apparently has been made with Amplify Shader. This shader has a beautiful outline that is customizable from the inspector.

I have a cylinder that fits into a slightly larger cylinder (sort of pants) and both have the material with different colors outlines.

The problem is that the slightly smaller cylinder outline peeks behind the slightly bigger cylinder.

Here's a photo:

Image

Is there a way I can manually fix this by myself? Or can something be done with ASE?

Thank you in advance!
CrashDummy
 
Posts: 4
Joined: Tue Mar 20, 2018 1:34 pm

Re: Outline order?

Postby Amplify_Borba » Tue Mar 20, 2018 4:08 pm

Hello, thank you for getting in touch and for your support!

It would depend on the technique used for the outline, could you send us a sample of your shader to [email protected] so that we can examine it on our side? Thanks!
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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Outline order?

Postby CrashDummy » Tue Mar 20, 2018 6:56 pm

Hi, thanks to you for your answer.

Here's the snippet of the outline part:

https://pastebin.com/j2tL2pUD

The programmer says that he simply checked the "outline" options in the shader editor and hooked up the outline color to the vertex color of the mesh.
CrashDummy
 
Posts: 4
Joined: Tue Mar 20, 2018 1:34 pm

Re: Outline order?

Postby Amplify_Borba » Wed Mar 21, 2018 11:55 am

Thank you for sharing additional details!

If the scale of the smaller object is close to the scale of the larger one, there is indeed some depth fighting between both outlines, however, as you decrease the scale of the smaller object you might notice that the larger one's outline should effectively overlap the smaller one's outline.

In order to best help you, I'm going to need some further information regarding the specific effect you're looking for, if possible being exemplified as a video or a screenshot, so that we can point you the right way, thanks!

Looking forward to your reply!
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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Outline order?

Postby CrashDummy » Wed Mar 21, 2018 12:55 pm

Sure!

Image

Unfortunately I can't post the entire shader because of the NDA. Anyway the first CGPROGRAM contains the snippet I posted above (the outline itself).

Cyl1 and Cyl2 are both at xyz 0, 0, 0. Cyl2 is slightly larger than Cyl1 (as you can see in the "current" view the outline is slightly larger). However, Cyl1's outline is still visible.

Thank you for your interest, I really appreciate it.
CrashDummy
 
Posts: 4
Joined: Tue Mar 20, 2018 1:34 pm

Re: Outline order?

Postby Amplify_Borba » Thu Mar 22, 2018 10:51 am

Unfortunately, this type of behavior is expected and not an easy one to manipulate. I would suggest looking into the Render Queue parameter of the Output node and the Depth options, in order to try and approximate the results to the shared image. Despite seeming like a simple depth issue, it might have further implications regarding this technique.

As requested in my previous post, providing further information regarding the specific effect you're looking for, with additional details such as the application and expected final result, would hopefully allow us to point you the right way.
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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests

cron