Jump to content

Importing mesh to scene from an object


WhoAteDaCake
 Share

Recommended Posts

I have a .babylon file that I've read.And I need to load the mesh into the scene. What would be the best way to do it? I can't use HTTP requests, it has to import from that object. 

I've tried: 

const loader = BABYLON.SceneLoader.GetPluginForExtension('babylon');
loader.load(scene, data);

But it gave an error:

Quote

importScene of undefined from undefined version: undefined, exporter version: undefinedimportScene has failed JSON parse

 

foot.babylon

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