Post process background problem

  1. Hi all, I was hoping someone might have an easy solution for a problem I’m facing: I’m using pre-rendered backgrounds as a post process material and want to have a simple blob shadow underneath the player. The issue I have is that the shadow ( image with opacity on a plane ) does not show up over the background.

  2. [10:30 AM]

If I put a plane underneath the player it will render fine. Does anyone have any ideas how to achieve this result? (usingUE4.27)


If I understand you correctly, in the second image the character doesn’t really walk on the floor?
If you want to make it with postprocess, I think I would start with passing desired shadow world position to your postprocess, then multiply the pixels around this position with something like SphereGradient2D.
The thing is, the shadow will face the camera, so if you change the camera angle in your game you will probably need to implement some additional functions to fake a perspective depending on the camera angle.

BUT if you don’t have to create a shadow in post process, consider creating simple alpha material with sphere gradient. You can assign it to plane and put it just under the character. This way you won’t have to bother with perspective, position etc.

Thanks for the reply @lordlolek .
Yes, in the second image the player doesn’t walk on the floor so to speak - it’s a 2d image . There is geometry in the scene (set to hidden) that only acts as collision.
I’m using a fake shadow currently ( a plane attached to the player capsule with an image that has opacity) I tried the sphere gradient but I get the same result.
If I use an image without opacity it works as expected, but anything with opacity is invisible.