trollolloo

Members
  • Content Count

    3
  • Joined

  • Last visited

About trollolloo

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you all for your suggestions! Unfortunately, the problem still remains. @brianzinn, adding material.clone() only made changes to the initial state of the materials. But both materials get changed by one line of code, and also the "old" (blender defined) material is loaded, when the other object leaves the screen. @JCPalmer, it also happens without any changes to the material. Meshes seem to be "combined" (or materials linked) without any apparent reason. In my test scene this is true for both icospheres, in more complex scenes, several objects seem to be "combined". I really don't know what is going on there, the problem never occurred before. I attached the test scene as blender file and our current framework. For the upload, I stripped out all products (for legal reasons) and only left the testscene in our framework. The materials for the ico spheres can be changed in line 119 in the tx-cgi.js file. Right now, the changes in the .js file seem to have no effect on the spheres, for reasons I don't understand either. I am quite helpless right now, I hope you can make sense of the test scene. babylon.zip
  2. I'm using BabylonJS V3 with Blender 2.79 to create product visualizations. Many times, it is necessary for me to define more complex shaders in the JS code. I'm using lines like scene.meshes[1].material.emissiveColor = new BABYLON.Color3(1, 0, 0); to define the shaders after export. Usually every mesh can get it's own shader this way. Unfortunately, I can't get it to work somehow. Even in small test scenes (one red icosphere, one green cube, a hemi lamp and a camera), both objects get the same material. When trying to change the appearance like shown above, both meshes change color. When I navigate the camera, so that one object isn't visible, the right material gets loaded (green, in my sample scene). Here is a small video of the strange behavior: https://imgur.com/a/zYlLT Both blender meshes have individual datablocks and individual materials. No duplication, instancing ... Do the mesh indices change, when a mesh gets unloaded? Where could I have made the mistake? In blender or in my .js? I am greatful for every hint!
  3. Hello fellow BabylonJS users, I'm currently using babylon to put some product visualizations on the web, but today I ran into a problem that I didn't find to be documented anywhere. I got a poly-reduced CAD-data rip with custom vertex normals, in Blender everything looks nice and smooth, but when I export to babylon, all those data seemsto be lost. Do you have any idea how to fix this? I'll attach an image, showing the dataloss. Have a nice day, J