Totooria Hyperion Posted August 2, 2018 Share Posted August 2, 2018 http://www.babylonjs-playground.com/#20OAV9#10 first example of Materials Chapter. missing one diffuseColor expected to be reflected by the first groundMesh. if I change the for loop from 4 to 3, the missing diffuseColor will come back, and it even have a specularColor of white(new BABYLON.Color3(1, 1, 1))! it's obviously something (maybe some configuration) that limit it's maximum color to be displayed. But the article didn't mentioned. My browser is Chrome 68.0.3440.75. The maxSimultaneousLights of ground is set to 16 at the end of the code(if you explore the latest example.). ``` var groundMat = new BABYLON.StandardMaterial("groundMat", scene); groundMat.diffuseColor = mats; groundMat.maxSimultaneousLights = 16; var ground = BABYLON.MeshBuilder.CreateGround("ground", {width: 4, height: 6}, scene); ground.position.x = -2.5 + 5 * (i % 2); ground.position.z = 4.5 - 7 * (Math.floor(i / 2)); ground.material = groundMat; } return scene; ``` Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 2, 2018 Share Posted August 2, 2018 Hi @Totooria Hyperion and welcome to the forum. Thank you for noticing this and pointing it out. The image on the materials page just below the playground you mentioned is a screen capture of the same playground taken at the time of its creation. This means that an update to BabylonJS has changed something and we will need to trace the changes and create a new playground for the page. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2018 Share Posted August 2, 2018 On it! It is due to a new change for spotlights. We had to introduce more data per light so now we know are over bugdet when having 16 lights. I will probably fix the sample to restraint lights per material (using light.includedMeshOnly) if that works for you @JohnK Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 2, 2018 Share Posted August 2, 2018 @Deltakosh am working on a PG that uses a GUI to choose material color rather than showing all four at once. Should be ready in about half an hour and I will update docs with it then, if OK with you. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2018 Share Posted August 2, 2018 We will also try to see if we can add this data only when needed. Stay tuned!! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2018 Share Posted August 2, 2018 OK for me! This will fix the doc issue and thus we can work on fixing the root cause as well Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 2, 2018 Share Posted August 2, 2018 PRed 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.