Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WebGL Working/Partially working/Not Working depending on browser type

Discussion in 'WebGL' started by Moonmanjimd, Dec 3, 2015.

  1. Moonmanjimd

    Moonmanjimd

    Joined:
    Dec 19, 2014
    Posts:
    7
    I've got a project that I've been working on for some time, a spaceflight simulator. It runs fine if I Build to PC or Mac. Deploying to the web has become a nightmare.

    In Chrome, it will work but only if deployed as a Development Build. You can see it here: http://www.newspacefiction.com/webgl6/index.html.

    If you open the same link in Firefox, you will hear the audio files, and you can tell from the audio files that the program is taking key input, but there are no visuals.

    If deployed in WebGL without a Development Build, nothing works.

    Web provider is 1and1.

    Any thoughts on what may be wrong?

    Thanks!
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    For me, this works in neither Chrome nor Firefox, because it cannot download the files it needs:

    Code (csharp):
    1.  
    2. http://www.newspacefiction.com/webgl6/Release/UnityConfig.js Failed to load resource: the server responded with a status of 404 (Not Found)
    3. http://www.newspacefiction.com/webgl6/Release/fileloader.js Failed to load resource: the server responded with a status of 404 (Not Found)
    4. http://www.newspacefiction.com/webgl6/Release/WebGL6.js Failed to load resource: the server responded with a status of 404 (Not Found)
    5.  
     
  3. Moonmanjimd

    Moonmanjimd

    Joined:
    Dec 19, 2014
    Posts:
    7
    Unfortunately, I pointed you to the non-development build, which is broken on all machines. Your error codes are helpful, and I'll look into that. The Development Build can be found at http://www.newspacefiction.com/webgl5/index.html.

    I've gotten reports from a number of folks for whom the Development Build works in both Chrome and Firefox. On my machine only the Chrome version works completely. The Firefox version doesn't display any graphics. Safari users are reporting that it won't load.

    Thanks!
     
  4. Moonmanjimd

    Moonmanjimd

    Joined:
    Dec 19, 2014
    Posts:
    7
    I looked again and those files are uploaded on the server and the server allows download of .js files. Not sure why you're getting that error message.
     
  5. diekeure

    diekeure

    Joined:
    Jan 25, 2013
    Posts:
    221
    It works for me on firefox 43.0b9. Big data chunk though.
     
  6. Moonmanjimd

    Moonmanjimd

    Joined:
    Dec 19, 2014
    Posts:
    7
    Thanks. The model for the rotating space station is huge. I may try and get the artist to try and make is smaller, but i love the level of detail (even if I can't quite figure out how to get all the textures correct).
     
  7. Moonmanjimd

    Moonmanjimd

    Joined:
    Dec 19, 2014
    Posts:
    7
    I upgraded to 5.3 today hoping that this would help with my problem, since WebGL is no longer in "preview."

    The same problem persist in that it only will run in Development Build. Now, however, the non-development build gives me the following error message: "Uncaught incorrect header check."

    Obviously, 5.3 hasn't fixed my problems. Drat.
     
  8. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    what are the url's of the 5.3 version (Development and non-development) ?