Outline Postprocess

Hey there. I’m trying to recreate this effect:

https://docs.unrealengine.com/latest/images/Engine/Rendering/PostProcessEffects/PostProcessMaterials/Teaser2.jpg

I’ve already got an outliner post process material, but it works on depth difference: for example, it wont render the outlinee between the carpet and the floor. Any ideas? Or, can I directly get this material?

Thanks in advance

Hello mago314,

If you would link me a screen shot of your post process and the material that is associated with it then I can take a closer look at how you are handling the outline.

Thanks,

I’m using this one: http://alannoon.com/wp-content/uploads/Outline_Post_Process_Material.txt , from this tutorial: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

Hello mago314,

The outline material from this post tutorial is designed to draw the edges of geometry at certain angles.

Calculating the space between objects is not how this material is intended to work.

What you can do is take the underlying object, and line it up with the bottom of the object on top. Or the other way around. So that you see the edge of the object on top and fake it.

Thanks,

Ok, thank you! But the ‘draw edges of geometry at certain angles’ sounds much more interesting for my purposes. Sadly, I can’t seem to find anything. Any clue on how to achieve it?

Hey mago314,

Within the outline material all of the lines are being calculated via that material. It is a rather complex and in depth way of calculating how it’s drawn.

The mask with R and G calculate respectively to X and Y.

You will have to delve through that to tweak any of the properties that are affecting it’s calculations.

Thanks,

Did you figure this out ever? I am interested in doing a similar thing. Thanks!

I’m currently using this one, eventhough it’s a bit too heavy:
Copy this into a post proccess material

Hey guys,

That tutorial that mago mentioned provides an outline material for you. It also explains how to implement it. Here is a link to someone who has set this up in a much more in depth way.

http://www.michalorzelek.com/blog/tutorial-creating-outline-effect-around-objects/