DJousto Posted May 3, 2016 Share Posted May 3, 2016 Hi, In this playground I can't understand why my cylinder does not receive shadows whereas the ground (plane) does. Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted May 3, 2016 Share Posted May 3, 2016 Hi, If you just move your box a bit, it works : http://playground.babylonjs.com/#MPBTA#2 Quote Link to comment Share on other sites More sharing options...
lesterhaus Posted May 3, 2016 Share Posted May 3, 2016 As Samuel pointed out moving the box shows that it is casting a shadow. usePoissonSampling - which is your go to option when having meshes casting and receiving at the same time - can result in pretty crude shadows at times. So for your playground you could also try to tweak something like the shadowGenerator.bias like here (line 29) http://playground.babylonjs.com/#MPBTA#3 Quote Link to comment Share on other sites More sharing options...
DJousto Posted May 4, 2016 Author Share Posted May 4, 2016 ok thank you, I don't really understand why this problem occurs, but your solutions are working, i'll post my scene soon. Quote Link to comment Share on other sites More sharing options...
DJousto Posted May 5, 2016 Author Share Posted May 5, 2016 here is my scene, with shadows now working : http://boobiz.fr/webgl/tower/index.htm perhaps the begining of a game like this one thank you for your help Quote Link to comment Share on other sites More sharing options...
lesterhaus Posted May 5, 2016 Share Posted May 5, 2016 Glad you got the shadows working! The scene looks very nice already, and who wouldn't like a good 3D Tower Toppler Quote Link to comment Share on other sites More sharing options...
jerome Posted May 5, 2016 Share Posted May 5, 2016 really nice scene 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.