Kilombo Posted April 23, 2014 Share Posted April 23, 2014 I everyone, Does anyone imported meshes from blender (in .babylon format) with success while running in localhost?If so. Please tell me how, I'm not having succeding on this. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Artem Posted April 23, 2014 Share Posted April 23, 2014 var newMeshes = []; function importedMeshes(mesh) { mesh.position = new BABYLON.Vector3(0, 0, 0); // for mesh.scaling = new BABYLON.Vector3(.025, .025, .025); // example } BABYLON.SceneLoader.ImportMesh("NameYourMeshHere", "../path_here/", "FilenameHere.babylon", scene, function (newMeshes) { importedMeshes(newMeshes[0]); }); Quote Link to comment Share on other sites More sharing options...
Kilombo Posted April 23, 2014 Author Share Posted April 23, 2014 Yap. It's working. Thanks a lot. How do you scale the mesh btw ? Thanks. 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.