Hi guys,
After all your great help last time I've made a lot of progress but I've reached a problem I can't seem to solve and I suspect someone on here will be able to point me in the right direction with ease.
Saves me waffling for ages anyway. The rock in front of the player has an annoying flicking self shadowing problem.
The debug boxes along the top show the color map, normal, lighting,depth and the 3 cascades of the shadow map.
It all looks pretty nice for most of the time but some models just have that problem. I have a slight wipe between the cascades where the quality changes but i'll accept that for the minute. It flickers in the medium quality cascade too anyway (not the far one but then by then its hard to tell since its so far away)
Things i've tried:
- Increasing my depth bias a bit in the shader (was set at 0.00035) but it starts to bad and the player starts to "peter pan"
- Creating a simpler rock model but it has the same problem and I wan't to be able to use complex models anyway. Besides the player seems to self shadow fine but I guess I'm not zooming in and out.
- I tried reducing the farclip of my camera down to something really small like 500 (near at 5) in case it was some depth precision problem. Doesn't seem to be, still flickers but maybe a red herring since I thought that was the most likely
Any ideas would be greatly appreciated..