Outline on invisible object?
Hello, is it possible to get a post-process outline to show on objects that are invisible in any form?
asked Aug 04 '17 at 01:09 PM in Blueprint Scripting
This is possible using post processing and the stencil buffer or just standard buffer. One of the Epic artists did a post about it but I cant find the link, so heres a external link to the shader I have used before.
What I do is disable or enable the depth on the mesh with a "SetRenderCustomDepth" blueprint node, so you could drive this when something is invisible, then the post process shader will auto render it as soon as custom depth is enabled.
answered Aug 04 '17 at 01:18 PM
I was messing around with this lately, and I think the trick is to toggle "Render in Main Pass," instead of the "Visibility" settings.
Changing an object to "Hidden" will, I assume, not make it available for any rendering, post-processing or otherwise. If you leave the object "Visible" but then turn off "Render in Main Pass" (under the Rendering advanced settings), the object will be visible but not get displayed. Then, change "RenderCustomDepth" to true, and it should display your outline.
Whenever you want the object's main body to show up, just set "Render in Main Pass" to true.
answered Sep 26 '17 at 10:07 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here