Jump to content

How to import a .babylon file


frey
 Share

Recommended Posts

Sorry for my English I'll do my best to explain it.

the problem is I made a 3D model by blender and exported it as a .babylon file.

Then I want to load this model in my page, but it's a black screen.

here is the code, and the error from safari .

 

Thanks for your help!

 

屏幕快照 2017-10-31 14.41.36.png

屏幕快照 2017-10-31 14.39.42.png

Link to comment
Share on other sites

the 404 has nothing to do with the .babylon file, it is simply missing a map file (unneeded for regular usage).

As dk said, make sure you are hosting the .babylon correctly, and implement the onError callback in the Load function to get a better understanding of the error you receive. to do that, add another function after the progress function:

function(scene, error, exception) {
    console.log(error, exception);
}

 

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...