webnurlan Posted May 23, 2017 Share Posted May 23, 2017 Hello everyone. I have a question. How can I add just one mesh from Blender into an existing babylon scene? I created a babylon scene with several meshes. Now, I want to add a model of a car from Blender into existing scene. Thank you. Quote Link to comment Share on other sites More sharing options...
hunts Posted May 23, 2017 Share Posted May 23, 2017 Hello there: BABYLON.SceneLoader.ImportMesh("indicate the name of the mesh you want to appear here", "url of the whole mesh", "your blender.babylon", scene, function (newMeshes, particleSystems, skeletons) { var wantedMesh = newMeshes[0] }) PixelPush 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 23, 2017 Share Posted May 23, 2017 Or BABYLON.SceneLoader.Append() http://doc.babylonjs.com/classes/2.5/sceneloader#static-append-rooturl-scenefilename-scene-onsuccess-progresscallback-onerror-rarr-void Quote Link to comment Share on other sites More sharing options...
webnurlan Posted May 30, 2017 Author Share Posted May 30, 2017 On 5/24/2017 at 0:43 AM, hunts said: Hello there: BABYLON.SceneLoader.ImportMesh("indicate the name of the mesh you want to appear here", "url of the whole mesh", "your blender.babylon", scene, function (newMeshes, particleSystems, skeletons) { var wantedMesh = newMeshes[0] }) Hello. Thank you for your answer about this issue! You know, SceneLoader.ImportMesh didn't work for me. So, I solved the problem using - AssetsManager. And I added into the existing scene a Cube (in the shape of a toy car) from Blender for now. Soon, I'll try to add a model of a car from Blender. I'm new in Blender and Babylon. If I have more questions, I'm going to post them soon and I hope you can answer them like you did to this one. Bye for now! Quote Link to comment Share on other sites More sharing options...
webnurlan Posted May 30, 2017 Author Share Posted May 30, 2017 On 5/24/2017 at 1:16 AM, Dad72 said: Or BABYLON.SceneLoader.Append() http://doc.babylonjs.com/classes/2.5/sceneloader#static-append-rooturl-scenefilename-scene-onsuccess-progresscallback-onerror-rarr-void Hello. Thank you for your answer about this issue! You know, SceneLoader.ImportMesh and SceneLoader.Append() didn't work for me. So, I solved the problem using - AssetsManager. And I added into the existing scene a Cube (in the shape of a toy car) from Blender for now. Soon, I'll try to add a model of a car from Blender. I'm new in Blender and Babylon. If I have more questions, I'm going to post them soon and I hope you can answer them like you did to this one. Bye for now! 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.