Jump to content

Windows Chrome babylon.js "Error while trying to load texture"


vladimr
 Share

Recommended Posts

Hi,

In corporate environment I tried to run a very basic babylon.js scene in a Win7 Chrome browser using my own, Python 3.x and node.js simple HTTP servers - without any success.
I always get the same error: "Error while trying to load texture: ..." for texture and height map files.
These and all other project files (html, js, css, images) reside in the same directory for simplicity and HTTP servers were run from the same place.
All other files are loaded successfully. I tried to run Chrome browser with a HTTP server on the same and different computers - not helped.
No any Chrome add-on which could prevent to load these files + incognito mode didn't  help too.

The same scene I can run successfully in Internet Explorer on the same computers and in iPhone Chrome browser via wi-fi too.
All other our applications (not babylon.js applications) have no any problem with Chrome browser, they are using XMLHttpRequest and Websocket protocols.
I tried all suggestions which I found in Internet regarding this error - nothing helped in my case.

Any advice ?

Thanks,
Vladimir

My code (map.tif and ground.tif images cannot be loaded):
...
var ground = BABYLON.Mesh.CreateGroundFromHeightMap("ground", "map.tif", 100, 100, 100, 0, 10, scene, false);
var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
groundMaterial.diffuseTexture = new BABYLON.Texture("ground.tif", scene);
...
 

Link to comment
Share on other sites

Just fixed it - now all working properly after I have replaced tif files with png files ( map.png, ground.png instead of  map.tif, ground.tif).
It's very strange that iPhone Chrome and Win7 Chrome differently working with tif-files.
Our native files are tif - from this are used them :-)
 

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