Jump to content

Can't load textures in Sandbox


 Share

Recommended Posts

Hi Gijs, thanks for your answer.

If you look inside babylon file you will see that textures are defined as follow;

  "diffuseTexture": { "name": "https://drive.google.com/open?id=0B-OOMaIHLcDyekQtdnhZODhkc1E",   

 "opacityTexture": { "name": "https://drive.google.com/open?id=0B-OOMaIHLcDyYTIzTVhfLUluMTQ",

The urls which are displayed in the console are converted to lowercase, and it seem that they didn't work for that reason. If you put in the browser the exact url that is on babylon file, they work.

https://drive.google.com/open?id=0B-OOMaIHLcDyekQtdnhZODhkc1E

https://drive.google.com/open?id=0B-OOMaIHLcDyYTIzTVhfLUluMTQ

Anyway, I upload a new version of the babylon file where the textures point to another server (and I get same results)

test.babylon

Link to comment
Share on other sites

Hello,

The sandbox has been made to load local files only, by drag'n'dropping all resources directly. Usually, when you're exporting a scene from Unity, Blender or 3DS Max, the URL to the textures are not absolute. 

Our loader is changing its behavior when we're detecting a "file://" moniker and try to load all the textures (or sound) from the drag'n'drop operation.

If you really want to keep your file with the path to textures like that, please use the PlayGround and load your scene by code.

David

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