nicofirst1 Posted June 7, 2018 Share Posted June 7, 2018 Hi, I'm trying to load an obj in BabylonJs but I'm having some problems with it. The model it's this and it consists of a texture folder and a obj folder called respectively Textures and FelLord. I moved everything into one single directory called boss and used the following lines to load it: var initCharacter = function (scene) { BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; BABYLON.SceneLoader.Append("Models/boss/", "Full_low.obj" ,scene, function (scene) { }); }; The loading phase is successful (The console warns me about not finding Models/boss/Full_low.obj.manifest?1528385481935 with "Failed to load resource: the server responded with a status of 404 (Not Found)", but I know I can ignore it), but I get this as a result. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2018 Share Posted June 7, 2018 Can you share your code somewhere so we can see it live and debug it? Quote Link to comment Share on other sites More sharing options...
nicofirst1 Posted June 7, 2018 Author Share Posted June 7, 2018 Yes sure! I warn you that the code is in alpha so it sucks right now. here is the link to the repo, you will need to download the model in order to make it work Quote Link to comment Share on other sites More sharing options...
DylanD Posted June 7, 2018 Share Posted June 7, 2018 5 minutes ago, nicofirst1 said: Yes sure! I warn you that the code is in alpha so it sucks right now. here is the link to the repo, you will need to download the model in order to make it work Hey you should set up a playground and share that, it is probably the best way to get help. Set one up here: https://playground.babylonjs.com then save and link it back here. My guess is It probably has something to do with this: BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true; Quote Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2018 Share Posted June 7, 2018 Your link seems wrong Quote Link to comment Share on other sites More sharing options...
nicofirst1 Posted June 8, 2018 Author Share Posted June 8, 2018 Yes, sorry about the link, you can clone the repo with git clone https://[email protected]/nicofirst1/game.git Quote Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2018 Share Posted June 8, 2018 I would have preferred a way to test it directly on a website 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.