Regis Posted March 3, 2017 Share Posted March 3, 2017 Hello! My game does not render in chrome when I use the AUTO mode. I have the same problem with the Phaser examples that are in AUTO mode. Everything goes well when I test my game on Safari or on mobile browsers. Here is my configuration : macOS Sierra 10.12 chrome 56.0.2924.87 (64-bit) Does anyone has had the same issue? Any solution (other than configuring the game in CANVAS mode)? Thank you. Regis. Link to comment Share on other sites More sharing options...
iPotaje Posted March 3, 2017 Share Posted March 3, 2017 Hi! My MacBook Pro early 2011 doesn't like the newest releases of Chrome's webgl. I am using Safari or older Electron to test code... What Mac have you? Link to comment Share on other sites More sharing options...
stupot Posted March 3, 2017 Share Posted March 3, 2017 look in the browser console for any problem logging Link to comment Share on other sites More sharing options...
MikeW Posted March 3, 2017 Share Posted March 3, 2017 Have you tried Chrome on another OS - just curious. Link to comment Share on other sites More sharing options...
Regis Posted March 3, 2017 Author Share Posted March 3, 2017 Unfortunately there is nothing in the console. Chrome on Android has not this problem. It is stranged because it works well with Chrome on some other iMacs with the same Chrome and macos version. Also WebGL works well when I test some other "WebGL only" website. So it seems to be phaser related. However if I inspect the WebGL processing with the "WebGL inspector" Chrome extension, I see that the frame buffer is correctly computed but it seems that it is not rendered in the Chrome browser. Link to comment Share on other sites More sharing options...
stupot Posted March 3, 2017 Share Posted March 3, 2017 Try different versions of Phaser, see if you can find a working one, that might help pinpoint the problem Link to comment Share on other sites More sharing options...
Regis Posted March 3, 2017 Author Share Posted March 3, 2017 I went back to 2.1.0 but i still have the blank sreen Link to comment Share on other sites More sharing options...
samme Posted March 3, 2017 Share Posted March 3, 2017 6 hours ago, Regis said: I have the same problem with the Phaser examples that are in AUTO mode. Every one of those? Reset chrome://flags/ Link to comment Share on other sites More sharing options...
David Lochhead Posted March 5, 2017 Share Posted March 5, 2017 Chrome macOS Version 56.0.2924.87 (64-bit) doesn't work for me doing the demo tutorial. Using Safari or Canary (Version 59.0.3030.0 canary (64-bit)) works fine. Link to comment Share on other sites More sharing options...
rich Posted March 5, 2017 Share Posted March 5, 2017 I'm using the exact same version of Chrome and macOS, and the tutorials all load and run normally from localhost. Which means it's not this specific combination causing it, but something else undetermined as well. That could be anything though - GPU blacklist perhaps, a Chrome extension blocking Phaser (I've seen it before), something installed locally, etc. Start by swapping from AUTO to CANVAS. If that works, the issue is almost certainly GPU related. If the Phaser Examples site works (most of which use WebGL) but it doesn't work locally, then start temporarily disabling Chrome extensions. Maybe there is something like 'https only' or a security scanner getting in the way. It's also entirely possible there is just a bug in that version of Chrome re: your GPU, that no longer manifests in Canary. Which would explain why identical set-ups (except the hardware) don't have the same problem. Link to comment Share on other sites More sharing options...
Befive.Info Posted March 6, 2017 Share Posted March 6, 2017 I posted a while ago. The issue might be relevant: Link to comment Share on other sites More sharing options...
Regis Posted March 7, 2017 Author Share Posted March 7, 2017 Here is the capture of the page with the WebGL Inspector Chrome extension. The bottom right image is the frame that should be rendered in the browser. So it seems that WebGL is working fine but just not displays the image . Link to comment Share on other sites More sharing options...
Befive.Info Posted March 8, 2017 Share Posted March 8, 2017 @Regis Did you send a feedback to Chrome? I have already done a couple of time. Are other WEBGL demos working for you? And what is your Mac model? Mine is Macbook Pro 15' Early 2011. For example some of WEBGL demos listed at https://www.chromeexperiments.com/webgl are not working either. https://demo.marpi.pl/spider/ Link to comment Share on other sites More sharing options...
Regis Posted March 8, 2017 Author Share Posted March 8, 2017 Chrome experiments are working. Only the Phaser exemples are not. I am on an iMac 21.5' mi-2011. I'll try to contact Chrome nonetheless. Link to comment Share on other sites More sharing options...
Tom Atom Posted March 9, 2017 Share Posted March 9, 2017 Not sure if it helps, but on screenshot by @Regis, there are several "NaN" values in bufferData (last line). These are for not setting color tint on object - I am not sure what happens, when this gets passed into shaders. Can you try to reduce your example to single image and set tint to 0xFF0000? Link to comment Share on other sites More sharing options...
Regis Posted March 9, 2017 Author Share Posted March 9, 2017 Thanks Tom. Here is the result of setting a tint : When I set a tint, the first "NaN" disappear from the bufferSubData function but there is still "NaN" in the last parameters. Do you know where they come from? Also I always have a "Texture 27" rendered at the end of the frame (but it seems to be transparent). Link to comment Share on other sites More sharing options...
Befive.Info Posted March 9, 2017 Share Posted March 9, 2017 Hi, @Regis Can you update your Chrome browser and relaunch the game page? My current Chrome version is now Version 57.0.2987.98 (64-bit) Phaser can now disable WebGL support in Chrome so that games work at least. But WebGL examples stopped working in Chrome on my Mac after the update: https://www.chromeexperiments.com/webgl (it still works on Safari though) Link to comment Share on other sites More sharing options...
Regis Posted March 10, 2017 Author Share Posted March 10, 2017 Everything works with the last Chrome update (57.0.2987.98 (64-bit)) ! Thanks everyone for your help. Link to comment Share on other sites More sharing options...
Recommended Posts