Draw outline
Step 0.
We will use a stencil buffer to draw outlines.Step 1.
First of all, enable stencil buffers.Menu -> Edit -> Project Settings -> Custom Depth-Stencil Pass -> set 'Enabled with Stencil'
For each actor that you want to draw with outline,
Select Actor in viewport -> See Details Windows-> Check 'Render Custom Depth Pass'
Select Actor in viewport -> See Details Window-> Change 'CustomDepth Stencil Pass' to 'Enabled with Stencil'.
There are many ways to draw outline, but this is the best material to start :
https://answers.unrealengine.com/questions/316814/how-to-hide-outline-post-process-effect-behind-obj.html
This is a little enhanced version.
Draw each line with a different color.
Step 3.
Near outline object removes other outlines. Maybe it is not what you want.We can fix this with Unreal Engine code modification.
It's too long to describe now, so I will show you it next post.
Comments
Post a Comment