I have followed this post, Looking for a basic Sobel Edge Post Process Material? - Community Content, Tools and Tutorials - Unreal Engine Forums, to add a edge to a procedural mesh. But I can’t get the same result.
I’m using Unreal Engine 4.11.2. I have downloaded and followed those instructions. I have set ‘custom depth = true’ in my procedural mesh, set ‘custom depth = true’ but I got these errors:
Error [SM5] Missing Material Function
Error [SM5] (Node If) If input B must be of type float.
Error [SM5] (Node SceneTexture) SceneColor lookups are only available when MaterialDomain = Surface. PostProcessMaterials should use the SceneTexture PostProcessInput0.
And when I open the project I get this error also:
Error /Game/Materials/MI_SobelEdge : Can’t find file for asset. /Game/Materials/SobelEdge/M_SobelEdge
Info Failed to load /Game/Materials/SobelEdge/M_SobelEdge.M_SobelEdge Referenced by MI_SobelEdge
I have solved all these errors changing SceneTexture:SceneColor with SceneTexture:PostProcessInput0. But, without any error, I still don’t see the sobel edge. Any idea? This is very frustrating.
I have continued searching and I have found this article, http://www.tomlooman.com/multi-color-outline-post-process-in-unreal-engine-4/, downloaded and followed its instruction and it works! I have done it on the same level. The only thing I’ve done is to change Blendable on PostProduction Volume.
Why I can’t get sobel edge example working?
My goal is to draw a procedural mesh. It has to be transparent but I want to show its edge. In other words, I want to draw its perimeter.