Object outline in 4.14
I've been searching for some time for tutorial on object outlining:
There are pretty many tutorials on the youtube, but the problem is - all of them are outdated. Most famous are from 2014, most recent is from 9 months ago and they are outdated already - attached materials doesn't work. I just want a minimal example on creating materials outlines, like the picture above. Could someone actually tell me how to do it from the beginning to the end?
asked Feb 09 '17 at 08:16 PM in Rendering
I was finally able to get the outline to work in 4.18.
I'll try to explain how I did it...
I grabbed the material download from the site Ch3shireCat used: http://www.michalorzelek.com/blog/tutorial-creating-outline-effect-around-objects/
I moved the uasset files into a folder in my Unreal project folder. (I had to open up the PP_Outliner_M uasset and manually re-enter the custom function calls for all the MF_ExtractDepth, MF_ConvolveTexture and MF_SampleSceneTextureNeighbourUVs functions since they didn't automatically appear. Refer to the image at the above link for the PP_Outliner uasset)
In Unreal, open your level that will display the item to be outlined. Add a PostProcessVolume to your level
Open up a static mesh object that you want to outline:
Run your level and you should see the outlined object.
If you want to only show the outline when you're looking at the item, just follow the tutorial at http://www.tomlooman.com/tutorial-multiplayer-supported-usableactor-system-in-blueprint/
I got running 2 highlight materials in UE4.19.
1 - Soft Outlines: based on the SpiralBlur-Texture material function, which comes with the engine. (used this tutorial: http://www.tomlooman.com/soft-outlines-in-ue4/), which, basically consists of taking the SpiralBlur-Texture material function and replacing the texture with the current tecture of the mesh inside the shader code.
Unfortunately, this does not work in VR, the effect gets displaced.
2 - Hard Outlines, from this tutorial: http://www.michalorzelek.com/blog/tutorial-creating-outline-effect-around-objects/ Download the content, get the functions into your project, re-set all functions and re-link all the broken links in the PP_Outliner_M as per images. Hint: the "Sobel Operator - Vertical" and "Sobel Operator - Horizontal" are the same, except the colors, so you could re-set/re-link the first one and copy/paste to the second one.
answered Apr 09 '18 at 12:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here