Kesshi Posted November 11, 2016 Share Posted November 11, 2016 Hi, please check this playground: http://www.babylonjs-playground.com/#26DHSA currently i always get the error "Cannot read property 'replace' of null" when i try to load a data url. I checked the sources already. I think the handling of data urls inside Engine.createTexture () is broken somehow. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 14, 2016 Share Posted November 14, 2016 Here is the correct syntax: http://www.babylonjs-playground.com/debug.html#1WQSPX#3 The first parameter is used for cache keying and format specification Quote Link to comment Share on other sites More sharing options...
Kesshi Posted November 14, 2016 Author Share Posted November 14, 2016 1 hour ago, Deltakosh said: Here is the correct syntax: http://www.babylonjs-playground.com/debug.html#1WQSPX#3 The first parameter is used for cache keying and format specification Ah thank you. I need to look clother at the sources next time. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 15, 2016 Share Posted November 15, 2016 no worry this is not super obvious I've just added a helper to make it simpler: BABYLON.Texture.LoadFromDataString(name, buffer): http://www.babylonjs-playground.com/debug.html#1WQSPX#5 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.