Hey, it’s me again.
So I have been playing around with an idea I got from here: https://answers.unrealengine.com/que…8742/view.html
I am essentially just scaling down the mesh and moving it closer to the camera. Besides the issue seen in the video, there are still other issues like near plane clipping when the scale gets to small.
This is what it looks like at the moment:
The code is available here as well: https://github.com/tiger-punch-sport…hComponent.cpp
Any ideas?
I tried panini projection, but the gun managed to projected its own shadow onto itself from above. I tried masking it with custom depth / stencil, but then it started jittering when intersecting with walls.
And I also tried the ScreenCapture2D method, but here again, see my post from above, jitter hell.
I think next I will try to create a custom shader plugin and try to disable depth testing
Any input is welcome as I want to provide this information for future people struggling with this.