Koroldev Posted April 4, 2017 Share Posted April 4, 2017 Hello all, I am using BitmapFontTexture for creating text messages, in browser chrome and opera all works fine, but in firefox I got white screen and error message: Quote Error: WebGL: texImage2D: Chosen format/type incured an expensive reformat: 0x1908/0x1401 I tried to finding something in internet but still don't solved this problem. Thank. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 4, 2017 Share Posted April 4, 2017 Hello can you share a repro in the Playground? Quote Link to comment Share on other sites More sharing options...
Koroldev Posted April 5, 2017 Author Share Posted April 5, 2017 12 hours ago, Deltakosh said: Hello can you share a repro in the Playground? Where I can load my texture and font file, that I can load it in the playground? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 github works well for that Koroldev 1 Quote Link to comment Share on other sites More sharing options...
Koroldev Posted April 8, 2017 Author Share Posted April 8, 2017 On 05.04.2017 at 7:35 PM, Deltakosh said: github works well for that I got error on http://www.babylonjs-playground.com/#Q0M3CV#2 Quote XMLHttpRequest cannot load https://github.com/KingMaks/bjs/blob/master/message.fnt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.babylonjs-playground.com' is therefore not allowed access. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 10, 2017 Share Posted April 10, 2017 You have to use the raw version of it Koroldev 1 Quote Link to comment Share on other sites More sharing options...
Koroldev Posted April 13, 2017 Author Share Posted April 13, 2017 On 11.04.2017 at 1:42 AM, Deltakosh said: You have to use the raw version of it Okay, it's helped, but if I am loading just texture - it is works, but if I am loading font, then no one error and nothing happening. I wrote in function onLoad console.log("font loaded") and nothing in console http://www.babylonjs-playground.com/#Q0M3CV#3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 13, 2017 Share Posted April 13, 2017 Ping @Nockawa or @adam Quote Link to comment Share on other sites More sharing options...
adam Posted April 13, 2017 Share Posted April 13, 2017 I got the font to load here: http://www.babylonjs-playground.com/#Q0M3CV#4 There was a breaking change that changed the constructor: https://github.com/BabylonJS/Babylon.js/commit/19ed9366706a8264ffc5c9526f8f9b19bfb4bcbc#diff-69e60dcf75816ab45ec8ed9ef039f79c Koroldev 1 Quote Link to comment Share on other sites More sharing options...
adam Posted April 13, 2017 Share Posted April 13, 2017 The error I'm seeing in FF is: Error: WebGL: texImage2D: Conversion requires pixel reformatting. Found this in FF code: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/TexUnpackBlob.cpp#335 Koroldev 1 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted April 18, 2017 Share Posted April 18, 2017 @adam should I do something? Quote Link to comment Share on other sites More sharing options...
adam Posted April 18, 2017 Share Posted April 18, 2017 I'm not sure if there is anything you can do for this. It appears to be an FF warning - not an error. 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.