Page 1 of 1

Outline shader for cube

PostPosted: Thu Aug 02, 2018 11:00 am
by 3d artist1987
Hey,

Any solution for outline shader for the cube? (its work in a sphere)

Thanks

Re: Outline shader for cube

PostPosted: Thu Aug 02, 2018 1:25 pm
by Amplify_Borba
Hello, thank you for getting in touch!

Our Outline implementation should be working for cubes, as you can see in the image below, could you please provide additional details regarding the issue you're having?

Image
Note: Our technique can only function properly in Forward mode, using it in Deferred may lead to all sorts of issues.

Are you using the Outline node for a custom setup, or simply setting the parameter in the Output Node?

If you could also share a screenshot or video for the effect you're trying to achieve we could point you in the right direction, thanks!

Re: Outline shader for cube

PostPosted: Fri Aug 03, 2018 9:28 am
by 3d artist1987

Re: Outline shader for cube

PostPosted: Fri Aug 03, 2018 11:18 am
by Amplify_Borba
Unfortunately, our current outline implementation doesn't provide this type of control, you'd have to create your own custom solution for an outline effect that would detect and apply the effect to the edges on your geometry.

I recommend that you check out this post, where an outline shader was shared by another community member, which makes use of our Shader Templates to create a Post-Processing shader that draws an outline on any edges that are detected on the screen, as a starting point.

Re: Outline shader for cube

PostPosted: Mon Aug 06, 2018 11:45 am
by 3d artist1987
Thanks for the reply. :D

Re: Outline shader for cube

PostPosted: Mon Aug 06, 2018 1:38 pm
by Amplify_Borba
No problem, glad I could help!

Please don't hesitate to get back in touch if you have any further questions, thank you!