I’ve recently been trying to think of a way of cutting an object from a transparent background. The best explanation to what I want to do is using pictures. Picture before:
And after:
As you may have noticed, I have uploaded black’n’white images, because I have an access to the transparency channel. My approach would be to get the coordinates of the first white pixel within the image and the extents of the box. Then accordingly cut the fragment out. How would I go about doing it? Is this effect possible to achieve using Unreal’s materials? If not, is there a way to do it elsewhere inside Unreal or maybe even using any kind of software that could be shipped with the project?
Thanks in advance for any tips!