max123 Posted July 6, 2018 Share Posted July 6, 2018 Hi, I'm having trouble with applying BlurExponentialShadowMap to a scene created in Blender. I've tried a bunch of settings and lights, yet no matter what I do, the whole bloody scene remains grey! I've tried all lights in Blender that can work with shadows in Babylon, I've set some extreme settings (kernel 4 - 512)... The blender file is attached. The settings I tried are below: shadowGenerator.useBlurExponentialShadowMap = true; shadowGenerator.useKernelBlur = true; shadowGenerator.blurKernel = Any ideas guys? test.blend.zip Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2018 Share Posted July 6, 2018 can you save your .Babylon on GitHub, go to rawgit.com to get a link to it and repro in the PG? It will be easier for us to help finding the right setup Also:http://doc.babylonjs.com/babylon101/shadows#troubleshooting Quote Link to comment Share on other sites More sharing options...
max123 Posted July 10, 2018 Author Share Posted July 10, 2018 Hey @Deltakosh, here's the PG: https://www.babylonjs-playground.com/#T70UQK#1 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2018 Share Posted July 10, 2018 Here we are: https://www.babylonjs-playground.com/#T70UQK#2 Do not include the ground in the shadow casters as it will cast shadow on itself and this won't work due to the terrible precision we have with WebGL Quote Link to comment Share on other sites More sharing options...
max123 Posted July 11, 2018 Author Share Posted July 11, 2018 Thanks @Deltakosh! No self-shadows - got it. However, shadowGenerator.blurKernel doesn't do anything in this example: I've tried values ranging from 2 to 32,768 - the shadow remains unchanged. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 11, 2018 Share Posted July 11, 2018 You are using a point light (which generate cubemap shadows) and this kind of light cannot generate blurred shadows. You have to use a directional light Quote Link to comment Share on other sites More sharing options...
max123 Posted July 12, 2018 Author Share Posted July 12, 2018 Hi @Deltakosh, I've updated the scene to use a spotlight: https://www.babylonjs-playground.com/#T70UQK#5 Now the shadow is just gone. Quote Link to comment Share on other sites More sharing options...
Arte Posted July 12, 2018 Share Posted July 12, 2018 Hi @max123, https://www.babylonjs-playground.com/#T70UQK#6 GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
max123 Posted July 12, 2018 Author Share Posted July 12, 2018 @Arte, thanks for the input. Changing kernel size doesn't do anything to the shadow's blur though.. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2018 Share Posted July 12, 2018 because line 47 change the filter 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.