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

Realtime lighting with WebGl

Discussion in 'WebGL' started by liqvidunity, Feb 11, 2016.

  1. liqvidunity

    liqvidunity

    Joined:
    Dec 21, 2015
    Posts:
    4
    We have an ongoing project which requires simulation with lights switching on/off in certain areas of a grocery store .The total number of lights used are approximately 12 & we were to develop this for PC standalone , Android , iOS & Web .We have successfully manage to get all lights working within simulation with realtime lighting for PC standalone(12 spotlights) , Android(emission value technique) & iOS (emission value technique) however now we are stuck at situation with web .When we create webplayer options things look & work fine for us but( not supportive for chrome & also requires to install the plugin-old technique) So we though rather to use WebGl option,but the problem we face here is 1. No more than 2 spotlights with realtime GI like used in PC or webplayer are supported 2. Emission value technique like used in Mobile device platform does not work for Webgl

    We are at the edge of finishing this project but feel stranded , can someone please help with expert suggestion?

    Regards

    charan
     
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    xiangshushu likes this.
  3. liqvidunity

    liqvidunity

    Joined:
    Dec 21, 2015
    Posts:
    4
    Hey thanks so much , is unity planning to bring the same for future versions ?
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    We have no immediate plans for it. When that changes it will show up on the roadmap.
     
  5. liqvidunity

    liqvidunity

    Joined:
    Dec 21, 2015
    Posts:
    4
    Thanks for the reply , appreciate
     
  6. Salvador-Romero

    Salvador-Romero

    Joined:
    Jan 21, 2014
    Posts:
    54
    Hi!

    I just had a look to the roadmap and didn't see plans of adding that feature yet. Is that correct?

    Also, would you care to briefly elaborate why this is not supported? Thanks you!
     
  7. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Realtime GI is not currently in the roadmap. However, we will re-evaluate once multi-threading support is available.
     
    MNNoxMortem and Salvador-Romero like this.
  8. Salvador-Romero

    Salvador-Romero

    Joined:
    Jan 21, 2014
    Posts:
    54
    Thank you, Marco! I've been doing some searches based on your response and I ended up reading your post here:
    https://blogs.unity3d.com/es/2018/08/15/webassembly-is-here/
    From which I deduce that it is coming. That was an interesting read!
     
  9. fretfingers

    fretfingers

    Joined:
    Feb 8, 2018
    Posts:
    2
    I'm using realtime GI successfully in WebGL.. is it just doing the bake at launch or something?
     
  10. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    @fretfingers are you SURE realtime GI is working? Could you provide 2 screenshots to verify that you indeed are able to move a light with bounce lighting to show realtime GI in a browser build? Would be the first time Ive read it works.
     
  11. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    Hi @Marco-Trivellato . Anything new about real time GI in webGL?

    I'm using Realtime GI in a project and its absence means a lot of limitations in optimisation and productivity. Are there any solutions out there with built in renderer or SRP?
     
  12. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    There are currently no plans for realtime GI for WebGL specificly. Sorry.
     
  13. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    Thanks for your quick answer @Schubkraft .

    If anybody know of a possible solution for this, let me know.
     
  14. Salvador-Romero

    Salvador-Romero

    Joined:
    Jan 21, 2014
    Posts:
    54
    Hey, you are late to the party! Is not that they have no plans to implement it for WebGL. Is that they are dropping support for Enlighten, the tech behind real time GI, for all platforms. See:

    Unity - Enlighten deprecation and replacement solution - Unity Forum

    As you can see, they promised a solid replacement solution for 2021.1, but so far, they haven't announced anything. People are more than worried.

    Have fun reading this thread, and plan accordingly. Cheers!
     
    Marc-Saubion likes this.
  15. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    643
    Thanks a lot for the link.

    I knew Enlighten was deprecated but was too busy to follow the news about it's replacement. I had no idea Unity was screwing up that bad...

    WTF Unity?
     
  16. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    I believe Realtime GI has never worked on WebGL 2. Enlighten Lightmap Baking does, since it is an offline process, and maybe static/precomputed light probes do also. It will likely be until WebGPU before Realtime GI will make its way to web builds, because of the current feature disparity between WebGL 2 and native D3D/Vulkan/Metal APIs on the web.

    Btw, it looks like Enlighten is being undeprecated, see this post: https://forum.unity.com/threads/enlighten-support-is-being-reenabled.1047248/#post-6800924
     
    xiangshushu and Marc-Saubion like this.