Jump to content

problem with SceneLoader and manifest being appended to resource URL


georage
 Share

Recommended Posts

I can't seem to load a babylon mesh into my scene from my server.

I am familiar with the playground, but my version appends appends manifest?unixtimestamp to the resource url I provide and I get a showstopping GET error.

My console reports I have a version of skull.babylon on the server but the url appended with .manifest?unixtimestamp returns a 404.

I find the SceneLoader documentation a little confusing, with lots of repeated text. https://doc.babylonjs.com/classes/2.3/SceneLoader

My questions:

  • How do I get rid of the GET error?
  • How would you code this up if you have your .babylon files in a separate folder from your root folder? I have my root folder with index.html, then a js folder and a json folder for saved .babylon mesh files.
BABYLON.SceneLoader.ImportMesh("", "_json/", "skull.babylon", scene, function (newMeshes) {
    });

Thanks for any help! I think I am learning a lot but am often bewildered for hours.

 

 

Capture.JPG

Link to comment
Share on other sites

Or just ignore it :) it is not an error, it just means you didn't provide a manifest for this file.

If you have a problem with the red color in your console (your users won't have any problem with it, i promise you) use one of the solutions provided here. Or stop disliking red! it is a wonderful color!

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