0x8888 Posted April 2, 2018 Share Posted April 2, 2018 I'm using CubeTexture for getting started, and some faces of the cube became black sometimes (simply refreshing the page). And it seemed that only Chrome has this problem. My system is Mac 10.13.3 (17D102) with Chrome 65.0.3325.181 Safari works well, . I found that the image is drawn on canvas and then passed to texImage2D function, and I tried to pass image as the last argument (babylon.engine.ts) then the problem was solved. Anyone have the same problem? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2018 Share Posted April 2, 2018 Nope but I don't have a mac. Anyone else can check this? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2018 Share Posted April 2, 2018 (which version of bjs by the way?) Quote Link to comment Share on other sites More sharing options...
0x8888 Posted April 3, 2018 Author Share Posted April 3, 2018 BJS - [23:10:37]: Babylon.js engine (v3.1.1) launched Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2018 Share Posted April 3, 2018 Do you mind trying with 3.2 beta? Quote Link to comment Share on other sites More sharing options...
0x8888 Posted April 4, 2018 Author Share Posted April 4, 2018 Babylon.js engine (v3.2.0-beta.4) launched The problem remains, I've checked _workingCanvas of the engine for each face of cube texture by dumping the canvas image using toDataURL. It seems that the _workingCanvas's drawing works well. So the problem might be on gl.texImage2D on canvas,, maybe this is a Chrome issue? Quote Link to comment Share on other sites More sharing options...
0x8888 Posted April 4, 2018 Author Share Posted April 4, 2018 Well I've tried on windows in VMWare on my machine, the problem doesn't appear in Chrome. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2018 Share Posted April 4, 2018 Ouch so computer related...Sorry about that you can try to force webgl2 off with http://doc.babylonjs.com/api/interfaces/babylon.engineoptions#disablewebgl2support 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.