Jump to content

Error with loadFromDataString (preview release)


ozRocker
 Share

Recommended Posts

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

draw_image_errors.jpg

Link to comment
Share on other sites

  • 5 months later...
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

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