sailor Posted March 1, 2017 Share Posted March 1, 2017 Hello, I try to import a Mesh with multimaterial texture created with blender in my scene. When I import the .babylon file in the sandbox every materials are shown. But when I use BABYLON.SceneLoader.ImportMesh only one material is visible. What does I miss ? Quote Link to comment Share on other sites More sharing options...
sailor Posted March 1, 2017 Author Share Posted March 1, 2017 Nobody faced this issue ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 1, 2017 Share Posted March 1, 2017 Hello this should work. Sandbox is using AppendScene and not ImportMesh but ImportMesh should work as well. can you share your issue on the Playground? Quote Link to comment Share on other sites More sharing options...
sailor Posted March 2, 2017 Author Share Posted March 2, 2017 By doing the PG I pointed out more precisly the problem. It does not come from ImportMesh but from the MergeMesh function. Here is my PG : http://www.babylonjs-playground.com/#13JYDK#1 Is this behaviour intentional ? Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 2, 2017 Share Posted March 2, 2017 The merge mesh function creates a new multimaterial with each material of your object. As your object already contains a multi material, it does not work... Try to replace your multi material by either one single material or two object with two single materials, and it should work. Quote Link to comment Share on other sites More sharing options...
sailor Posted March 2, 2017 Author Share Posted March 2, 2017 Thank you for your explanation ! Using MergeMesh is not mandatory for me for this object so I will not use it. 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.