captainleighwalker Posted May 17, 2018 Share Posted May 17, 2018 Is this a bug or what to do here? https://www.babylonjs-playground.com/#JE0ZA7 No shadow from clone Also it seems that any DirectionalLight disables the shadow if facing the same direction even if set to 0. Is there any work around? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 No bug here just need to move the light: https://www.babylonjs-playground.com/#JE0ZA7#1 http://doc.babylonjs.com/babylon101/shadows#directional-lights Quote The light's position, as well as the positions of the mesh that you have pushed into the renderlist, determine where the shadows will appear. Note that your light point-of-view from this position have to view all meshes in the renderList; otherwise the shadows may not be rendered Quote Link to comment Share on other sites More sharing options...
captainleighwalker Posted May 17, 2018 Author Share Posted May 17, 2018 Yes it does work in this PG but on my mesh it's not. I have tried all sorts of angles and distances by setting light parent to the camera. It does work with forceBackFacesOnly = false but I though having this true would save some processor. You can see in this image. By the way I have used csg on the original mesh before cloning. Quote Link to comment Share on other sites More sharing options...
captainleighwalker Posted May 17, 2018 Author Share Posted May 17, 2018 And how to stop the HemisphericLight messing up the shadow? I noticed the shadow is ok if setting the scaling to -1 ? https://www.babylonjs-playground.com/#JE0ZA7#2 Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 So solved? Quote Link to comment Share on other sites More sharing options...
captainleighwalker Posted May 17, 2018 Author Share Posted May 17, 2018 well it's ok if i have force back faces to false but would be nice to know how to do it as true! any thoughts on the hemispheric light problem in the last post? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 what is your issue precisely with the hemi? It will ad its contribution which is expected here Quote Link to comment Share on other sites More sharing options...
captainleighwalker Posted May 17, 2018 Author Share Posted May 17, 2018 On my pc there is a missing shadow under the sphere on https://www.babylonjs-playground.com/#JE0ZA7#2 Even when setting level to 0? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 just a bias issue: https://www.babylonjs-playground.com/#JE0ZA7#3 Quote Link to comment Share on other sites More sharing options...
captainleighwalker Posted May 18, 2018 Author Share Posted May 18, 2018 Yes thanks ? GameMonetize 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.