Vijay Kumar Posted March 25, 2016 Share Posted March 25, 2016 Hi , I have a problem , Please help me . Shadow is getting penetrating through first mesh and it falling on second mesh , the second mesh is behind the first mesh . how can i stop that shadow of torus falling on second mesh ,and i want the only top ground shadow has to fall on the second ground. http://www.babylonjs-playground.com/#PI8IS#17 Please refer the screen shot also for more reference. Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 25, 2016 Share Posted March 25, 2016 Hi, Shadow won't stop on the first mesh it hits. Each mesh with receiveshadow set to true will... Receive the shadow. Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted March 25, 2016 Author Share Posted March 25, 2016 i tried but i cant able to stop please anybody help. torus shadow on 1stground and only 1st ground shadow on 2nd ground. Could anybody make that clean and can give the link. Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 25, 2016 Share Posted March 25, 2016 hi, you could always add the ground to the shadow list - http://www.babylonjs-playground.com/#PI8IS#18 . notice i don't use variance map anymore.. Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted April 3, 2016 Author Share Posted April 3, 2016 Hi, facing issue in shadows again this time i am getting some gap . shadow was starting after some gap. please see Red highlighted area in the below screenshot , Very basic i tried but couldn't able to figure out issue , please help me Raanaw. http://www.babylonjs-playground.com/#29BCK0#11 is the Playground link Quote Link to comment Share on other sites More sharing options...
eboo Posted April 3, 2016 Share Posted April 3, 2016 http://www.babylonjs-playground.com/#29BCK0#20 shadowGenerator.bias = 0.00001; GameMonetize and Vijay Kumar 2 Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted April 3, 2016 Author Share Posted April 3, 2016 Thanks eboo. it was really very helpful i really spend so much of time on time . thanks for it. 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.