Jump to content

Some questions about asset loading


AlexB
 Share

Recommended Posts

We have a project that we are converting over to Babylon from ThreeJS. One of the first issues I have to solve is loading OBJ files. I'm running into two issues. First, the OBJ loader is looking for the OBJ extension, but our API returns a url with no extension, e.g, htttp://www.examples.com/assets/12345. This then defaults to the .babylon loader and then fails. How can I load an OBJ file in this way?

The second issue (which may not be a problem once I get past the first one) is that I might also have to send custom auth headers as part of the request. Is there a way to do this?

Thanks!

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