Cultrarius
(Cultrarius)
December 12, 2017, 8:30pm
20
annuschka:
(I deleted my other, now obsolete, post)
I had problems to find the Distance Field Nodes you used in your Screenshots. But in the meantime I figured it out and want to share the process with everyone else:
“DistanceField” Node: It does not pop up in the palette (nor in the Documentation at all), because it is an Editor Material Function that has “Expose to Library” set to OFF. To get it: In the content browser click on view options, enable Engine Content. Go to EngineContent/Functions/Engine_MaterialFunctions01/Texturing/DistanceFields Open it, click on the free grid space, look at the Details panel and check “Expose to Library”. Now you can find it easily when building your material.
The “DistanceFieldTexture” node is just a TextureSample as Parameter and named like this. <rant> For newbies like me, this is always confusing when trying to follow UE4 docs or tutorials oO</rant>
I did play around with some sample Distance Fields I snatched from google image search and: Settings on the material and the file itself are not that important. Works with different material domains as well as default image import settings (… not using specialized settings like VectorDisplacementMap).
And while I’d really like to see native SVG support (and realtime path modification) your Plugin and the SDFs format open up fun ways to display stuff:
I quickly put in some sine and noise with a nice result:
Huh, they must have changed that in 4.17 or 4.18 then - thank you for the great writeup!
Just as a hint, you can also just import and use one of the materials used in the example project SVGImporterExamples.zip - Google Drive