Jump to content

Problem when loading .obj


nicofirst1
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...