Shadows and scene size


(Gilles38) #1

Hi all,
That might be obvious for many of you, but I was surprised that depending on how large the 3D scene is, the shadow "sharpness" is highly impacted.
Here I get sharp shadows with this mesh on a 'white' ground

Now here is what I get if I just increase the ground size (about 10x on X and Y) and zoom on the same area,

Again that may be expected... but is there a way to improve this?


(Shaderbytes) #2

currently sketchfab does not use cascades in their shadow map system , so sadly the bigger a scene gets the less texel data can be used to represent all shadowing.


(Gilles38) #3

OK, thank you for you reply


(Paul Sketch) #4

Currently sketchfab shadow map depends on scene size, not camera position/direction
Note that using spotlight targeting a small area allow for scene independant shadow map.
Only the part in the spotlight impact the shadow map.


(Gilles38) #5

Thnaks @paul_sketch, it is nice to know that trick