Dad72 Posted October 11, 2018 Share Posted October 11, 2018 Hello, I found a problem with moving shadows. If I create a box with shadows, it is perfect, but if the object, a moment later, is in motion, the shadow of the first box will shake and degrade sharply. Observe the shadow for 10 to 20 seconds and see how it gets worse after the second box is started moving. http://www.babylonjs-playground.com/#U8MEB0#9 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 11, 2018 Share Posted October 11, 2018 This is because the shadow map needs to resize to be big enough to see both objects. So precision is getting worse. You can force the shadow to not auto extends (http://doc.babylonjs.com/babylon101/shadows#directional-lights) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 11, 2018 Author Share Posted October 11, 2018 ok. I see. Definitely, the shadows are really difficult to render correctly depending on the scenes. There are so many different settings that it becomes a lottery game to have proper shadows. Maybe the cascading shadows will settle everything later? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted October 11, 2018 Share Posted October 11, 2018 cascading shadow maps are done for this use case: a large scene with different shadows Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 11, 2018 Author Share Posted October 11, 2018 Is this planned for the 4.0 cascading shadows? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 11, 2018 Share Posted October 11, 2018 I am not sure I ll have time to put it in but if somebody else is willing to give it a shot ? Quote Link to comment Share on other sites More sharing options...
ssaket Posted October 11, 2018 Share Posted October 11, 2018 @Sebavan if you can mentor me I would love to contribute Dad72 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.