Hi,
I recently encountered some issues with shadow volumes:
1.
I duplicated an objects geometry and used it as shadow volume.
Loading the map, the renderer seems to have an issue with Z-layering the object which results in flickering shadows:
You cannot view this attachment.
I kind of solved the problem by shrinking the shadow volume by 1%, but this results in inaccurate shadows.
It is also way harder to solve for donut shaped objects.
2.
To have the terrain throw a shadow I approximated the dimensions of a mountain to cover it completly.
Again, after loading the map, the shadow volume does not show properly.
I tried, covering the mountain and also having the shadow volume enclosed by the mountain with the same result.
The mountain contains more objects with shadow volumes, which might influence the rendering.
I also tried combining the shadow volume of the mountain with the other objects shadow volumes.
However, nothing was successful:
You cannot view this attachment.
Some part of the shadow volume is rendered correctly, but not complete.
Any idea, what causes either of the problems or how I could fix them?
Cheers!
I recently encountered some issues with shadow volumes:
1.
I duplicated an objects geometry and used it as shadow volume.
Loading the map, the renderer seems to have an issue with Z-layering the object which results in flickering shadows:
You cannot view this attachment.
I kind of solved the problem by shrinking the shadow volume by 1%, but this results in inaccurate shadows.
It is also way harder to solve for donut shaped objects.
2.
To have the terrain throw a shadow I approximated the dimensions of a mountain to cover it completly.
Again, after loading the map, the shadow volume does not show properly.
I tried, covering the mountain and also having the shadow volume enclosed by the mountain with the same result.
The mountain contains more objects with shadow volumes, which might influence the rendering.
I also tried combining the shadow volume of the mountain with the other objects shadow volumes.
However, nothing was successful:
You cannot view this attachment.
Some part of the shadow volume is rendered correctly, but not complete.
Any idea, what causes either of the problems or how I could fix them?
Cheers!