Babylon.js meshes get the same stuff

I am using BabylonJS V3 with Blender 2.79 to create product visualizations. Many times, you need to define more complex shaders in the JS code. I use strings like

scene.meshes[1].material.emissiveColor = new BABYLON.Color3(1, 0, 0);
Run codeHide result

to identify shaders after export. Usually each grid can get its own shader this way. Unfortunately, in one case, a shader with multiple grids is overwritten. Has anyone had a similar problem? All cells are called individually, they all have a basic (individual) shader from a blender. They do not divide any data blocks, there were no attempts or duplication. I am grateful for every hint.

Edit

It seems that an error occurs with the new version (3.0), updating to 3.1 fixes the problem, but introduces errors with a rotating camera with an arc. Once you click on the canvas to rotate the view, you can no longer release the mouse. Are the latest stable versions buggy?

Edit 2

After some in-depth troubleshooting, we came to the conclusion that versions 3.0 and 3.1 and / or their exporting plugins are faulty. Even in the simplest tests, this error occurs. Along with other issues, such as broken cameras and displaced geometry.

+4
source share
1 answer

, . , , , . ,

0

Source: https://habr.com/ru/post/1693069/


All Articles