Ravi Posted January 22, 2018 Share Posted January 22, 2018 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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2018 Share Posted January 22, 2018 I'm seeing CORS issue from your server: You have to enable anynomous request if you want the playground to access your file Quote Link to comment Share on other sites More sharing options...
Ravi Posted January 23, 2018 Author Share Posted January 23, 2018 @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) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 23, 2018 Share Posted January 23, 2018 I can't debug with a video unfortunately. I need a real repro case (And something that does not me to install addons :)) Quote Link to comment Share on other sites More sharing options...
Ravi Posted January 30, 2018 Author Share Posted January 30, 2018 @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 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 30, 2018 Share Posted January 30, 2018 Sorry but I need you to help me You cna host the files on github and reference them from there using rawgit.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.