Jump to content

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


Ravi
 Share

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:

http://www.babylonjs-playground.com/#6MZV8R#81

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)

http://174.129.161.24/ge/GE_Anim_Baked_gltf.gltf

http://174.129.161.24/ge/GE_Anim_Baked_gltf.bin

http://174.129.161.24/ge/GE_Machine_All_Texture.png

 

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

Link to comment
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 comment
Share on other sites

@Deltakosh

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

http://www.babylonjs-playground.com/#6MZV8R/#83

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

http://174.129.161.24/ge/GE_Anim_Baked_gltf.gltf

http://174.129.161.24/ge/GE_Anim_Baked_gltf.bin

http://174.129.161.24/ge/GE_Machine_All_Texture.png

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