Realtime lighting with WebGl

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

Only baked GI us supported in WebGL. See Unity - Manual: WebGL graphics

1 Like

Hey thanks so much , is unity planning to bring the same for future versions ?

We have no immediate plans for it. When that changes it will show up on the roadmap.

Thanks for the reply , appreciate

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!

Realtime GI is not currently in the roadmap. However, we will re-evaluate once multi-threading support is available.

2 Likes

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!

I’m using realtime GI successfully in WebGL… is it just doing the bake at launch or something?

@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.

3 Likes

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?

There are currently no plans for realtime GI for WebGL specificly. Sorry.

Thanks for your quick answer @Schubkraft .

If anybody know of a possible solution for this, let me know.

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!

1 Like

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?

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: Enlighten support is being reenabled? - Unity Engine - Unity Discussions

2 Likes