hit2501 Posted August 28, 2017 Share Posted August 28, 2017 Hi everyone, I'm working with "babylon.objFileLoader.js". Everything works fine when I load obj models locally but I dont know how can I get the url or src from an input type file. I'm using this snippet: BABYLON.SceneLoader.ImportMesh("", "HOW_CAN_I_GET_THIS/", filename, scene, function (newMeshes) { }); Can anybody help me with an example? Thank you all. Quote Link to comment Share on other sites More sharing options...
davrous Posted August 28, 2017 Share Posted August 28, 2017 Hello, Have a look to the source of our sandbox: https://github.com/BabylonJS/Babylon.js/tree/master/sandbox and you'll find the answer. Basically, all the magic is inside our FileInput object: https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.filesInput.ts David hit2501 1 Quote Link to comment Share on other sites More sharing options...
hit2501 Posted November 11, 2017 Author Share Posted November 11, 2017 Thank you very much, I'm still learning and sorry for the late response, (some health issues) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 13, 2017 Share Posted November 13, 2017 No need to apologize 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.