Jump to content

Could not able to load .gltf from code and babylon playground as well but model can get loaded using babylon sandbox

Recommended Posts

I could not able to load the gltf for my model but its getting loaded using babylon sandbox. I have created playground example for your referece. I have modified the existing babylon example available at (http://www.babylonjs-playground.com/#6MZV8R)

Plyground for my model:


Please help me understanding why things are working with babylon sandbox and not on playground. Is there any babylonjs version difference for sandbox and playground.

Following are the gltf files used for sandbox / playground

(Could not able to attach file due to size limit but consider downloading from below urls)


Note: While checking from sandbox, remove the text ""  from image and bin file URLs

Link to post
Share on other sites

@Deltakosh Thanks for quick revert.

Now server is configured to accept the cross origin requests. You have to also add CORS plugin for chrome as shown in the attached video.

I have observed incorrect URL formation while accessing the bin and texture file. This could be the reason why model is not loading in playground. Could you please check why wrong URL is formed while accessing bin and texture file? (Please refer attached video recording.mp4)



Link to post
Share on other sites


I tried hosting the files on some other server and created the playground but still facing the cross origin error.


Request you to download files from below links and host them to your server and check the playground for issue.

Link to post
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.

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.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...