Dog-Cat Posted March 22, 2015 Share Posted March 22, 2015 I found that when my mesh close to the ground , the shadow will disappear .following is my setting : the ball position:ball.position = new BABYLON.Vector3(0,0.5,0); the ground position:ground.position.y=0; and then i got the result as the files qp1.jpg when i set the ground position to position.y=-2; I see the shadow ( qp2.jpg ) . And Why I can't see it when my ground is close to my mesh?Is that a bug? I'm new to this. Hopes for help. Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 23, 2015 Share Posted March 23, 2015 Hi and welcome, It would be great to see this setup in the playground (http://www.babylonjs-playground.com/) so we can debug the scene. Try recreating your scene there (even without textures). I believe it has something to do with the light's direction/position (which is the problem is most shadow-related questions), but it is very hard to tell without knowing how you configured the scene. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted March 23, 2015 Share Posted March 23, 2015 Try changing the bias value of your shadow generator. Quote Link to comment Share on other sites More sharing options...
Dog-Cat Posted March 23, 2015 Author Share Posted March 23, 2015 Hi and welcome, It would be great to see this setup in the playground (http://www.babylonjs-playground.com/) so we can debug the scene. Try recreating your scene there (even without textures).I believe it has something to do with the light's direction/position (which is the problem is most shadow-related questions), but it is very hard to tell without knowing how you configured the scene.Thank you for your suggestion ! I replaced my babylon.js with the latest version , and I found my problem have solved! maybe there is something wrong with my old js document... Dog-Cat 1 Quote Link to comment Share on other sites More sharing options...
Dog-Cat Posted March 23, 2015 Author Share Posted March 23, 2015 Try changing the bias value of your shadow generator.I solved that it's because my babylon.js is too old .. thank you for your answer. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 23, 2015 Share Posted March 23, 2015 This is one of the key feature of v2.1: automatic projection for shadows 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.