al404 Posted April 21, 2016 Share Posted April 21, 2016 Is it possible to hide an object creating shadow as it was visible? I tried with box.isVisible = false; but hides the shadow too http://www.babylonjs-playground.com/#EI2ZM Quote Link to comment Share on other sites More sharing options...
adam Posted April 21, 2016 Share Posted April 21, 2016 Remove the object from the scene: http://www.babylonjs-playground.com/#EI2ZM#1 al404 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted April 22, 2016 Share Posted April 22, 2016 As I have been told here: You can use "visibility = 0" and "shadowGenerator.setTransparencyShadow(true)" to render the shwadow of transparent meshes, http://www.babylonjs-playground.com/#EI2ZM#2 al404 1 Quote Link to comment Share on other sites More sharing options...
al404 Posted April 22, 2016 Author Share Posted April 22, 2016 thanks both Quote Link to comment Share on other sites More sharing options...
al404 Posted April 22, 2016 Author Share Posted April 22, 2016 @iiceman is it possible to make the shadow white? Quote Link to comment Share on other sites More sharing options...
iiceman Posted April 22, 2016 Share Posted April 22, 2016 I remeber we had that question before, too: And the answer was this: On 13.3.2015 at 6:55 PM, Deltakosh said: ... 4. Shadows are not drawn actually. They block the lighting. So to see the ground, just add some emissiveColor to the material of the ground So I don't think it's possible, sorry Maybe somebody else has a good idea for a workaround. al404 1 Quote Link to comment Share on other sites More sharing options...
al404 Posted April 22, 2016 Author Share Posted April 22, 2016 sorry but can't also understand why my mesh, is a loaded mesh of a logo, does has this issue the logo is curved but the shadow is not seems that increasing map number gets butter var shadowGenerator = new BABYLON.ShadowGenerator(10240, d1); Quote Link to comment Share on other sites More sharing options...
adam Posted April 22, 2016 Share Posted April 22, 2016 Try adjusting the shadow generator's bias property. Quote Link to comment Share on other sites More sharing options...
al404 Posted April 22, 2016 Author Share Posted April 22, 2016 if i try to change bias or get too high with map value the shadow is not displayed i try with shadowGenerator.bias = 1; shadowGenerator.bias = 0.1; shadowGenerator.bias = 0.01; but once is set the shadow in not display Quote Link to comment Share on other sites More sharing options...
adam Posted April 22, 2016 Share Posted April 22, 2016 Do you have a PG example? Sometime the bias value needs to be very small (like .00001) . al404 1 Quote Link to comment Share on other sites More sharing options...
al404 Posted April 22, 2016 Author Share Posted April 22, 2016 i don't have PB because i'm loading some resources locally shadowGenerator.bias = 0.0003; this i s the maximum amount that it seems to handle, could it be an issue from model? maybe it doesn't has enough faces? in screenshot you can see model that it doesn't seem like a straight line but has segments is it possible to add a blur to the shadow? Quote Link to comment Share on other sites More sharing options...
adam Posted April 22, 2016 Share Posted April 22, 2016 You might discover a shadow type that works for you here: http://www.babylonjs.com/Demos/AdvancedShadows/ 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.