Thank you @Scribbler and @RyanB for your awesome work! I used this script it in my Bachelors Thesis, without your groundwork it would not have been possible for me!
I improved your script quite a bit, I added the capability to cast shadows, and improved the usability.
So first the shadows: The projection only shows on the first layer of objects it hits, all objects behind don’t recieve any light, just like a real life projection would behave.
The shadows are projected from the camera, so that if you view your scene through the eyes of the projection camera, you’re going to see no shadows.
Now to the improved usability: I set up the Blueprint in a way, that you only need to drop in the Projection Blueprint and specify your media texture. Thats it!
There are a few more options that you’ll often use though, First the “X Scale” in the “Offset” Variable. This changes how far your texture will be projected.
The second one is the “Edge Bleed”. This determines how hard the shadow is blended with the projected image where both areas meet.
The last one is the “Field of View” on the Camera Sub-component, which adjusts the size of the projection.
I hope this helps someone as much as your work helped me! If you have any questions, just leave me a message! Download it here: GitHub - ChristopherRemde/Projection_shadow: This script is able to project a texture in Unreal Engine
Just click on “Clone or Download”, download and unzip, then open the project and drop a file into the Media Player, et voila!