I exported the project as HTML. When I try to start the itch game I get a black screen that says: WebGL not available
This is my first time exporting and uploading a game so I'm not sure what happened.
I exported the project as HTML. When I try to start the itch game I get a black screen that says: WebGL not available
This is my first time exporting and uploading a game so I'm not sure what happened.
What web browser are you using? It sounds like the web browser you are using doesn't support WebGL and so the Godot page cannot load.
I'm using Chrome
Chrome should have WebGL installed, so as long as your GPU supports it, it probably is not the browser then. If you open the developer console, does it show any errors? Maybe something there will help indicate why WebGL is not loading.
Which operating system are you on? What graphics card model do you have in your device?
Was your project configured to use GLES 2?
Do you have any security add-ons in your browser that are blocking Javascript?
Thanks guys for the replies. I'm using a 2019 MacBook Air with macOS Catalina. When I run the game the browser console says:
I also switched from GLES3 to GLES2 in my project.
I don't have extensions installed in my browser.
It runs in local
UPDATE: just tried to run the itch game on Safari and it works...
Now works....
I enabled that option
Chrome supports WebGL out of box, so I'm not sure why you would need that option. At least on Windows and Linux, it seems to work fine for me.
I really don't know...
you might have to turn it on manually in chrome perhaps? https://www.interplaylearning.com/help/how-to-enable-webgl-in-chrome
@Megalomaniak Yes I switched this to “enabled”
@adcoding said: @Megalomaniak Yes I switched this to “enabled”
This flag shouldn't be required to run Godot projects exported to HTML5, not even those using WebGL 2.0.