Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: WebGL not supported, in Chrome #13

Closed
jkleiser opened this issue Aug 13, 2013 · 6 comments
Closed

Uncaught Error: WebGL not supported, in Chrome #13

jkleiser opened this issue Aug 13, 2013 · 6 comments

Comments

@jkleiser
Copy link

When I try the simple test from http://blogs.msdn.com/b/eternalcoding/archive/2013/06/27/babylon-js-a-complete-javascript-framework-for-building-3d-games-with-html-5-and-webgl.aspx (just the very basics, incl. the code at "The last thing you need to do is to register a render loop"), using Chrome v28.0.1500.95 on Mac, I get "Uncaught Error: WebGL not supported". No image gets rendered. I'm using babylon.1.1.0.js.

@deltakosh
Copy link
Contributor

Could you try with Firefox? Some browsers have a black list for specific drivers and can block webGl in this case :(

@jkleiser
Copy link
Author

On 13-08-13 13:18 , deltakosh wrote:

Could you try with Firefox? Some browsers have a black list for
specific drivers and can block webGl in this case :(


Reply to this email directly or view it on GitHub
#13 (comment).

Hi,

Same problem with Firefox 23.0 on Mac, and also with Safari 5.1.9.
(Both of these handles the WebGL in
http://learningwebgl.com/lessons/lesson05/index.html without problems.)

I'd love to see Babylon.js working on Mac. ;-)

/Jon

@deltakosh
Copy link
Contributor

It works on several Mac I tested :(
Could it be linked to an old video driver?

@jkleiser
Copy link
Author

On 13-08-13 13:33 , deltakosh wrote:

It works on several Mac I tested :(
Could it be linked to a old video driver?


Reply to this email directly or view it on GitHub
#13 (comment).

You can have a look at my code here and see if I've missed something:
https://dl.dropboxusercontent.com/u/48186945/web/webgl/test.html

I get the same "Uncaught Error: WebGL not supported" in the log of
Chrome (28.0.1500.95 m) on Windows.

/Jon

@melaugui
Copy link

Hi,

I looked at your code, and the problem comes from the loading of your JS code: you are trying to get the canvas whereas the page is not loaded yet.
Try to copy paste your Babylon JS code after < /body>, it should work ;)

If you want to learn more, you can try our tutorials: https://github.com/BabylonJS/Babylon.js/wiki/Tutorials

Thx,
Guillaume

@jkleiser
Copy link
Author

On 13-08-13 14:30 , Guillaume wrote:

Hi,

I looked at your code, and the problem comes from the loading of your
JS code: you are trying to get the canvas whereas the page is not
loaded yet.
Try to copy paste your Babylon JS code after < /body>, it should work ;)

If you want to learn more, you can try our tutorials:
https://github.com/BabylonJS/Babylon.js/wiki/Tutorials

Thx,
Guillaume


Reply to this email directly or view it on GitHub
#13 (comment).

Hi Guillaume,

You're absolutely right. Thanks a lot! It now works fine in all my browsers.

/Jon

deltakosh pushed a commit that referenced this issue Oct 12, 2020
deltakosh pushed a commit that referenced this issue Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants