hit2501 Posted September 14, 2015 Share Posted September 14, 2015 Hi.I'm working with imported meshes from blender and I use:BABYLON.SceneLoader.ImportMesh("", "folder", "mymesh.babylon", scene, function (newMeshes){});To import one mesh but, how can I import more than one without repeat the sale lines? Is there any way to import two or more with one single code?Thank you all. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2015 Share Posted September 14, 2015 Hey! You should just import your mesh once and then clone it Quote Link to comment Share on other sites More sharing options...
hit2501 Posted September 14, 2015 Author Share Posted September 14, 2015 Thanks DK but what Im looking for is to import different meshes (12). Quote Link to comment Share on other sites More sharing options...
gryff Posted September 15, 2015 Share Posted September 15, 2015 Are all you meshes in the same Blender file, Hit? If so, then they all should import together. My Christmas Village first loads the terrain and trees with with "BABYLON.SceneLoader.Load ..." then all the buildings, toys lamps fences etc. with "BABYLON.SceneLoader.ImportMesh ... " If your meshes are in different Blender files you can merge them in Blender with "File ->Link Append" cheers, gryff Quote Link to comment Share on other sites More sharing options...
hit2501 Posted September 15, 2015 Author Share Posted September 15, 2015 Hi gryff. No, I have 5 meshes in the first blender file, 9 in the second, ..., 6 in the 12th blender file. I will try to follow your advice but all the meshes together have more than 65k vértices, is that a problem?Thanks. Quote Link to comment Share on other sites More sharing options...
gryff Posted September 15, 2015 Share Posted September 15, 2015 It should not be Hit. The 65k limit is for a single mesh. Take a look at the Hill Valley scene here - it has 0.5 million verts If you have 12 blender files though you will have to call BABYLON.SceneLoader.ImportMesh for each of of the files (or 11 of them anyway if you use BABYLON.SceneLoader.Load ... for the first one) cheers, gryff Quote Link to comment Share on other sites More sharing options...
hit2501 Posted September 25, 2015 Author Share Posted September 25, 2015 Thank you gryff very much. 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.