silkroad Posted June 28, 2016 Share Posted June 28, 2016 Hi, I am building an app in Meteor and want to use the Babylon, I tried the assetsManager in Meteor to load an obj file, but it doesn't work. I am using external server http:/// as a URL root. The code works on Sandbox but not in Meteor. I also tried to load the obj file in local directory by putting it in the Public folder of the Meteor (the URL root is "/" or empty) , still doesn't work. Can someone help me on this? Thanks. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 hey! did you add the reference to obj loader? Quote Link to comment Share on other sites More sharing options...
silkroad Posted June 29, 2016 Author Share Posted June 29, 2016 Thank for the quick reply. I am not very clear how to add the reference to the obj loader in Meteor. I tried to include script tag in the head of html file and also import iobjFileLoader from 'babylonjs', import obj file from "objFileLoader" gives an error. all didn't work. Is this obj loader included in the babylonjs? I couldn't find this file under the babylon module. Thanks. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 29, 2016 Share Posted June 29, 2016 It is not included with bjs but you can find it here: https://github.com/BabylonJS/Babylon.js/tree/master/loaders/OBJ Quote Link to comment Share on other sites More sharing options...
silkroad Posted June 29, 2016 Author Share Posted June 29, 2016 I load the obj loader file as well as the babylon2.1 as indicated in the document and referenced them. Now I have this error: " undefined is not an object (evaluating 'BABYLON.SceneLoader.RegisterPlugin')" from babylon.objFileLoader.js:742. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 30, 2016 Share Posted June 30, 2016 You should use babylonjs 2.4 I guess 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.