ozRocker Posted February 23, 2018 Share Posted February 23, 2018 My shadows seem to be coming out strange. By default I get splotches, so I used this from an example shadowGenerator.useBlurExponentialShadowMap = true; shadowGenerator.useKernelBlur = true; shadowGenerator.blurKernel = 10; Its slightly better but still weird. Does anyone know what might be the problem? I'm using Babylon v3.2.0-alpha6 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 23, 2018 Share Posted February 23, 2018 Do you have the same issue with a model without bones? Also try top play with generator.depthScale If your scene is small I would also recommend using closeESM instead of ESM Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted February 23, 2018 Share Posted February 23, 2018 Does this help? I had a bit similar negative shadows because of wrong weights/matrices. BABYLON.SceneLoader.CleanBoneMatrixWeights = true; Quote Link to comment Share on other sites More sharing options...
ozRocker Posted February 24, 2018 Author Share Posted February 24, 2018 11 hours ago, BitOfGold said: Does this help? I had a bit similar negative shadows because of wrong weights/matrices. BABYLON.SceneLoader.CleanBoneMatrixWeights = true; That fixed it!!! Thanx mate Quote Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2018 Share Posted February 26, 2018 Well done @BitOfGold! Quote Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2018 Share Posted February 26, 2018 Do you mind updating the shadow troubleshooting documentation? Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted February 26, 2018 Share Posted February 26, 2018 OK I sent a PR. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2018 Share Posted February 26, 2018 You rock! 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.