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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Black Screen of death

Discussion in 'WebGL' started by Jonathan459, Sep 24, 2015.

  1. Jonathan459

    Jonathan459

    Joined:
    Dec 1, 2013
    Posts:
    10
    Hi.
    I'm desperate.

    I have 2 scenes in my project. the first one is the loading screen which uses the following code:
    Code (CSharp):
    1. void Start()
    2.     {
    3.         StartCoroutine(waitAsecond(1f));
    4.     }
    5.     IEnumerator waitAsecond(float waitTime)
    6.     {
    7.         yield return new WaitForSeconds(waitTime);
    8.         StartCoroutine(Load());
    9.     }
    10.     IEnumerator Load()
    11.     {
    12.         Debug.Log("Load");
    13.         async = Application.LoadLevelAsync(LevelToLoad);
    14.         async.allowSceneActivation = false;
    15.         yield return async.isDone;
    16.         yield return loadingComplete = 100;
    17.         SwitchScene();
    18.     }
    19.     private void SwitchScene()
    20.     {
    21.         Debug.Log("SwitchScene");
    22.         if (async != null)
    23.             async.allowSceneActivation = true;
    24.     }
    When i press play in the editor,everything seems fine and no errors appear. When i build the project and run it on my local system it runs fine.

    but then...
    When i upload it to the server i begin to get all these strange errors on chrome only.
    Note: when i built the project in unity 5.0 and uploaded the files to the server it was working (slow,but working).
    now after upgrading to 5.2 i get these errors.
    Another Note: when i built the project in 5.0 i used the WebGLStraming script from the asset store to split resources.

    Errors i get in Chrome:
    WebGL: INVALID_OPERATION: texImage2D: incompatible format and internalformat
    WebGL: drawElements: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'. Or the texture is Float or Half Float type with linear filtering while OES_float_linear or OES_half_float_linear extension is not enabled.

    *FF works fine.

    Any help would be appreciated, ive tried to search this errors but got to nowhere.
     
  2. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    188
  3. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    188
    try a last patch - 5.2.1p1, It's out today
     
  4. Jonathan459

    Jonathan459

    Joined:
    Dec 1, 2013
    Posts:
    10
    @yuliyF, Downloading right now.... thx. (hope it'll work)