ozRocker Posted April 20, 2017 Share Posted April 20, 2017 I'm testing out the preview release of babylon.js When I run this line on desktop and mobile browsers: diffuseTexture1 = BABYLON.Texture.LoadFromDataString("diffuse",data,scene); I get the errors shown in the image below. It works fine in current version of babylon.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 20, 2017 Share Posted April 20, 2017 Can you reproduce it in the playground? Quote Link to comment Share on other sites More sharing options...
ozRocker Posted October 12, 2017 Author Share Posted October 12, 2017 I'm still stuck on this with both 3.0 and preview release 3.1 I'm simply reading in a .JPG image using XHR with responseType "arraybuffer" and I'm using that as the data string. I works in 2.5 but not in the later versions Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 12, 2017 Share Posted October 12, 2017 Please just give me a repro in the PG and I'll fixt it Quote Link to comment Share on other sites More sharing options...
ozRocker Posted October 16, 2017 Author Share Posted October 16, 2017 ok, I made a playground https://playground.babylonjs.com/#RLHD87#1 Quote Link to comment Share on other sites More sharing options...
sable Posted October 16, 2017 Share Posted October 16, 2017 While this doesn't solve the problem with LoadFromDataString, I thought I'd mention that you can request images as blobs instead of array buffers, https://playground.babylonjs.com/#RLHD87#2, which I found in my projects to be much faster as it means that a conversion to a base64 string isn't needed . Quote Link to comment Share on other sites More sharing options...
ozRocker Posted October 16, 2017 Author Share Posted October 16, 2017 2 hours ago, sable said: While this doesn't solve the problem with LoadFromDataString, I thought I'd mention that you can request images as blobs instead of array buffers, https://playground.babylonjs.com/#RLHD87#2, which I found in my projects to be much faster as it means that a conversion to a base64 string isn't needed . Woh, nice!!! This is great! Thanks so much for that Imma change my code right now Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 16, 2017 Share Posted October 16, 2017 Will be fixed with next nightly 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.