How about trying to make it work for multiple objects spread throughout the whole view?
I’m really missing some sort of automatic soft shadows in panda. Just a line of code and all you see is shadowed
If you make the buffer bigger and the camera lens wide enough it can cover the whole scene. You can switch to a orthographic lens to have shadows like from a directional light.
As far as multiple objects, you only need to put a hide mask on the object that the shadows are cast on, and setup the lens, buffer, camera, shaders… but you can put that all in one convenient class Here a shot from my dev-game, where I use this:
I’m using the softer shadows by wezu, and they are really easy to implement and look great. Performance is also good.
There is one thing I would like to get support for. The shadows textures are projected on the ground nodes, and I have the shadow camera following me when I am driving through the database. Everything around me casts shadows on the ground nodes, as expected. But the ground nodes just outside the shadow camera’s frustum sometimes give gray flickering artefacts. I can put the shadowcamera higher so that the area it sees gets larger, and the flickering outside the camera frustum is hardly noticed, but then the quality of the shadows is reduced. Does anyone have a suggetsion on how to solve the gray flickering artefacts ?
Hi I’m having a little trouble with my models from blender becoming invisible with these shadows, I found a fix but it only works on nonetextured objects, ( Yabee wont export properly with the ’ fix ’ enabled, could someone explain what settings I need so the objects wont become invisible? Thanks.
I haven’t taken a look at the shader, but I noticed in World of Tanks they gradually fade object shadows with distance. So either doing a fade in the shader or perhaps fading the edge of the projected texture (if its using shadowmaps like I think it would be).