Skip to main content
Participant
April 6, 2023
Answered

Rendering Toon Outline with Post Process or GLSL

  • April 6, 2023
  • 1 reply
  • 1217 views

Hello,

 

I'm making a toon shader using the Shader API, I'm trying to recreate a material we use in Unreal Engine to help our artist better visualize the results they'll be getting in engine. I was able to recreate most of what we need. But I wanted to check if its possible to create a toon outline by accessing the Depth and other buffers.

 

Basically I'm trying to use the bufferes to compare adjacent pixels and calculate the difference to create an outline. Is it possible to make a custom Post Process effect to calculate an outline? or access the buffers directly in the GLSL shader code?

 

Thank you in advance.

This topic has been closed for replies.
Correct answer Cyril Dellenbach

Hi @Ameen A.,

 

A real outline shader isn't possible with Substance 3D Painter because we don't have any post process effect.

 

With that being said, you will found online shaders that use the normal angle to draw lines on the surface of the mesh, like the fresnel would do. This is not really the same as an outline, but maybe this will interest you.

 

Best regards,

 

1 reply

Cyril Dellenbach
Community Manager
Cyril DellenbachCommunity ManagerCorrect answer
Community Manager
April 12, 2023

Hi @Ameen A.,

 

A real outline shader isn't possible with Substance 3D Painter because we don't have any post process effect.

 

With that being said, you will found online shaders that use the normal angle to draw lines on the surface of the mesh, like the fresnel would do. This is not really the same as an outline, but maybe this will interest you.

 

Best regards,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Ameen A.Author
Participant
April 17, 2023

Hello @Cyril Dellenbach,

 

I suspected this might be the case, thank you very much for the resource, maybe there's a way I can approximate it using that method.

 

Best regards,

Ameen