Dad72 Posted July 6, 2018 Share Posted July 6, 2018 I notice a strange behavior in the shadows between the field and the meshes of the scene. When my character is on the ground, the shadow is perfect, but if I go on a mesh, the shadow does not see it anymore. What can create this weird behavior ? Here in pictures what I have : Do you have ideas of what can cause this behavior ? Also if I add buildings on the mesh, shadows of buildings are perfect, but the character and the trees do not project shadows, which is a second strange behavior that I do not understand. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2018 Share Posted July 6, 2018 Questions: - Are all material using StandardMaterial - Is there a difference in diffuse color value? or ambient color value? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 6, 2018 Author Share Posted July 6, 2018 I use the multimaterial in 3ds max and diffuse and ambient color values may be slightly different. In fact I use mixMaterial for the field and I do not know the diffuse and ambient colors by default. I just tested with other filter and I do not meet this problem, but I meet other than I reported in Bug The shadows are really very difficult to set up, there is a lot of parameters to take into account, adjustment. I have been there since this morning and it is midnight and I can not do it. I have another problem too but I'll see that tomorrow. it's because I think that I am grouping objects into a dummy object that creates shadow layer problems and softens the shadow of my character. dbawel 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted July 7, 2018 Share Posted July 7, 2018 Listen to @Deltakosh and @Dad72, as they are spot on. The babylon framework is no automatic depiction of your scene. All attributes of a mesh need to be set up individually. And if they share material values, then assign the same material to each one using different name variables. I must do this all the time. DB Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 7, 2018 Author Share Posted July 7, 2018 It's solved by changing the filter to WebGL2 = > usePercentageCloserFiltering = true and filteringQuality = BABYLON.ShadowGenerator.QUALITY_HIGHT; dbawel 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.