Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

[SOLVED] WebGL only rendering Reflections and Sprites, everything else is black

Discussion in 'WebGL' started by LilGames, May 15, 2019.

  1. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    153
    I'm losing my mind... last night I did a WebGL build that was working "fine" in browser, just a bit choppy at times. Today I baked occlusion culling and did a few minor tweaks with performance in mind, but no matter what, now only reflections and 3D sprites are rendering!! Everything else is black.



    Unity 2018.3.8f1
    Target: WebGL
    "Both" webassembly and asm
    Graphics API: Auto
    Gamma color space
    Forward rendering
    Both Firefox and Chrome on Windows 10 PC are doing this. And in Unity editor it looks perfect (too perfect actually, but that's another matter...)

    I've of course Googled, search Unity forums, everywhere and all I can find are reports of the entire canvas going black, which is not this bug. This is clearly all opaque geometry rendering black.

    Demo: http://spore.ca/test/charisma2/

    Also, both browsers report this JS error:
    Code (JavaScript):
    1. Error loading this URI: Could not load the source for blob:http://spore.ca/bb936054-ddd5-4a94-ba9a-a9d2f93f25a3.
    2. [Exception... "Failed to open input source 'blob:http://spore.ca/bb936054-ddd5-4a94-ba9a-a9d2f93f25a3'"  nsresult: "0x805303f4 (<unknown>)"  location: "JS frame :: resource://devtools/shared/DevToolsUtils.js :: mainThreadFetch :: line 683"  data: yes]
    3. Stack: mainThreadFetch@resource://devtools/shared/DevToolsUtils.js:683:5
    4. _getSourceText@resource://devtools/server/actors/source.js:370:27
    5. Line: 683, column: 0

    HELP!
     
  2. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    153
    How do I call a Unity staff member into this thread?? Surely the above is something stupidly simple I am overlooking?
     
  3. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    153
    I CAN'T BELIEVE THIS. Exe builds too!

    Completely different project that used to build fine... Different target (this time Windows standalone EXE) and I get the exact same problem! Only transparent things are rendering, + skybox + UI. That's it. Works fine and normally in Game View. And the kicker is that this problem is viewable on other computers, so it's not my hardware or drivers or anything like that.

    Unity 2018.3.8f1 (a version I've been using for the last few months without these issues). I have however been updating packages:

    Package manager
    Analytics
    TextMesh pro
    Post Processing
    Unity Collaborate
     
  4. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    153
    *SOLVED*
    It was a fog script & shader called "Kino Fog" which has very specific fog settings requirements.
     
    De-Panther likes this.