Jump to content

Error: WebGL not supported on localhost


ajhalls
 Share

Recommended Posts

Running Firefox 45.02 and downloaded the newest Babylon.js and the Samples last night. After unzipping into local folder, I get "Error: WebGL not supported" when doing any of the demos. It works great on the actual website, but not on localhost from the files on Github.

I then tried uploading it to a web server, and get the following errors when trying to access the demo Samples-master/Demos/AdvancedShadows/index.html:

"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Samples-master/css/index.css"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamTouchOff.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamVirtualJoy.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Assets/CamGamepadJoy.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamDeviceOff.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/camera.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamAnaGly.png"

In particular the index.css file seems to be missing from any meaningful directory as line 18 of the index.html has this line:

 

    <link href="../../css/index.css" rel="stylesheet" />

That doesn't point anywhere as the only index.css files are in subdirectories of the Samples-master directory such as the CYOS directory.

I am just experimenting with Babylon.js as a replacement to Three.js and am dissappointed that you can't seem to unzip and use anything. Here is what my directory structure looks like and you can see all the PNG files listed in the errors above are indeed missing for some reason.

Capture.PNG

Link to comment
Share on other sites

Yes, I thought the same thing which is why I copied it to a server. 404 errors are not security errors, they would seem to be either due to a sloppy commit that excluded needed resource files, or poor documentation of where to download the files.

"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Samples-master/css/index.css"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamTouchOff.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamVirtualJoy.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Assets/CamGamepadJoy.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamDeviceOff.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/camera.png"
"NetworkError: 404 Not Found - https://cdn.xxx.com/Babylon.js-master/Assets/CamAnaGly.png"

I downloaded the Babylon-master, Samples-master, Extensions-master, and UserFunctions-master, and yet doing a search through all those folders for "index.css" shows them in a few folders, but not where the demo files use it.

Capture.PNG

In fact you can see it has an index.css under Demos\Sponza, so you would think you could run that demo, but no, it is looking for an index.css under "BabylonJS/Samples-master/css/index.css"

You can see there is no `css` directory on the github page: https://github.com/BabylonJS/Samples though there is an `scss` directory. That doesn't help at all though when the demo files, such as this one: https://github.com/BabylonJS/Samples/blob/master/Demos/Actions/index.html

on line 18 refer to  ` <link href="../../css/index.css" rel="stylesheet" /> `

For fun I copied it again to a different web server, and running the Sponza demo, yes I get the 404 on the css file, but I still get ` Error: WebGL not supported `.

This is discouraging for several reasons, first is why am I getting all these security errors? ThreeJS runs just fine on localhost. Sure I could solve this for myself, but what about my customers? Again, I have copied it to an external apache webserver and am still getting WebGL errors in Firefox, but not in IE or Chrome. Missing files in the commit / documentation errors are the types of issues I would expect to have to work through with an immature application, not one with the following that BabylonJS seems to have - which leaves me confused as to whether I am making a mistake somewhere by skipping a step, or if these really are legitimate issues.

I am sure I could go the the main site and crawl the site and download all the files manually, but that seems silly when I would expect what I need to be in the Github repository.

UPDATE: for some reason WebGL on firefox stopped working in the past couple days. I had to upgrade my video drivers to get it working again. That solves the security error, but doesn't address missing files in the downloads.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...