Search Unity

Unreal Lumen (Global Illumination without RT)

Discussion in 'Global Illumination' started by jjejj87, May 28, 2021.

  1. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    So, Unreal Engine 5 EA dropped today and what got me wondering is the new GI tech, aka Lumen.

    It looks like a non RT based GI (although it can be accelerated by RT) and very little info is known about how it works. Performance wise, it seems like it is able to outperform RTGI and definitely Unity's RTGI and SSGI. It averages 100FPS on RTX2080ti, so definitely much faster than Unity RTGI...

    Here is a vid


    From what I have gathered so far, it seems like a blend of SSGI and VXGI. And it seems like it can be accelerated by RT cores...(Funny because this is exactly what the community wanted a few years back and UT guys said that it is not what they want...)

    EDIT: On further investigation, it seems like it is more of a SDFGI (Signed Distance Field) than straight up VXGI. A more advanced variation of what they have in UE4 and Gordot.

    Now the tech is branded Lumen and people will start asking when Unity will make Lumen.

    So yeah. Just wanted to drop this info on this forum and let everyone know we are behind...again.

    On the other hand, I do wonder if Unity will ever work on DDGI...

    Also, Unity devs...if you are reading this...and want to make Unity's GI remotely usable...look into SEGI...just drop your pride and hire SonicEther...or the HXGI guy...please.
     
    Last edited: May 28, 2021
  2. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395
    It's a blend of SSGI and SDFGI. For the primitives without interior it can also generate so-called "cards" which seems to be another type of simplified scene representation. Looks a bit like Godot SDFGI + a good screen space solution to me. Tested it yesterday with RTX 2070 (without hardware raytracing): it's really good, but not artefact-free and some artefacts are quite heavy when the camera is fastly moving forwards and backwards. It also generates a lot of floating blurred noise (real-time denosing) which is not always noticeable in the youtube demonstartions but is obvious in the engine itself and especially on the bright surfaces. It adds a bit of AO on top of that (darkened corners). There's also a noticeable update lag when lighting changes rapidly. All in all, it's a great solution for prototyping and some slowly changing lighting scenarios (especially outdoors) but with some obvious caveats. I'm sure it will be improved in the future.

    As for Unity, I've seen they are rolling an updated version of SSGI. There was a link to github in one of the threads related to it. And it looked really promising. I would not say that it looked worse than the screen space part of Lumen. And there were also some examples of it working in conjunction with the new probe volume system (which, according to the github again, has been sped up by utilising SDF for scene representation). So probably there will be some good news in the near future, if all of the above is actually being included in the engine.
     
    LooperVFX, keeponshading and PutridEx like this.
  3. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Unless I am mistaken, that SSGI is already available and it performs really bad...quality wise...I would rather not say more as it is innately limited due to its screen space nature. There could be another SSGI revamp in progress that I am not aware of...but I highly doubt SSGI will match lumen...performance and quality wise. Currently unity SSGI is a fallback method when RTGI is enabled and it fails to do so.

    Nevertheless, I will probably get to try UE5 Lumen myself later this weekend and should be able to share more.
     
    id0 likes this.
  4. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395
    Yeah, I see that it's been merged. I'm talking about this one: https://github.com/Unity-Technologies/Graphics/pull/3330
    Though, I'm surprised to hear that it has bad quality because the difference between the old and new version according to the attached examples is like day and night. And it holds up pretty well even in comparison to the ray traced version in the apartment example. I mean, this looks as good as a screen space solution gets.

    The closest thing is this one (for built in):
    https://github.com/haolange/Unity_ScreenSpaceLighting_Old
     
    mattvnr likes this.
  5. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    Can anyone tell me about what is the new probe volume?
    Are there any documentation pages showing it in action except the one mentioned above?
     
  6. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Screenshots can be misleading...I would advise you to look at videos or try them yourself.
    And when that happens you will see what I mean :) At least with unity SSGI.
     
    Ruchir likes this.
  7. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    I tryed UE5 beta, and it's works quite fast on my non top hardware. But Unity as usual continues cosplay slowpoke. Remove enlighten, restore enlighten back, rtx those working only on HDRP and top nwidia cards... Just ridiculous. I would have gone to UE long time ago, but it's mean I need to rewrite all my code and it's a lot, that's why I'm still here.
     
  8. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Yup, this is my last project that I will be running Unity. Jumping ship to UE after this project.
     
  9. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I and many passionate forum users have consistently tried to get through to Unity to no avail.

     
    flyer19, Pecek, Sab_Rango and 9 others like this.
  10. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    I consider it to be a hybrid solution, a blend of different techniques. Its quite impressive in some ways, although I have to wait to see what its like in final release form as it currently still has the sort of limitations and compromises that remind me there is no perfect, performant solution in this area that can perfectly fit every scenario. eg the way it caches stuff in order to be performant has some obvious implications when it comes to ghosting etc.

    As for Unity, I have moved further towards hardly even finding it worth bothering to complain, such is their consistent track record of over-promising and under-delivering. Growing paints from years ago that they never solved, something fundamentally wrong with their management, structures, relationship with technology and solutions that are fit for purpose.
     
  11. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    If someone could clarify this for me, what are the supposed advantages of unreal over unity?
    isn't lumen extremely niche, only for projects that necessitate dynamic lighting, at the expense of lower runtime performance and alienating low end users & platforms?

    for my case, even though personally i would seriously like to give unreal a try, it is completely unusable.
    the lighting system is too locked down. i need control over the lightmaps, shadowmaps, and directional maps for runtime & editor editing. Same for lightprobes and the lighting asset.
    I don't think this can be achieved in unreal, without spending an inordinate amount of time editing & compiling the engine code.
    Unity has a very nice safe api for texture manipulation & gi application, and a very nice multi threading system for my own custom baking step.
    editing the srp packages, lighting asset and shader code is very pleasant, and compiles very fast. i don't think the same can be said for unreal.

    honestly unreal is kind of a joke, for anything that isn't a cookie cutter rpg / fps. i've seen a couple newer people suggest a transition to unreal and they've been given a flat no answer, which i found kind of amusing
     
    Last edited: May 30, 2021
  12. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Are you comfortable saying something like that on a public forum, with the full knowlerdge of how many AAA studios use Unreal, how many actual billions of dollars of revenue pass through that engine, and so on? What about bright memory and all those indie titles that also are made in it? I mean, it's a stretch to take your words on board, so I don't think many will.
     
  13. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    The idea that high end stuff is extremely niche is a joke. Its not the whole world of gaming, but its a fair chunk, especially with the latest consoles. And gaming is no longer the be all and end all of realtime 3D graphics engines. I expect they also felt the need to work on dynamic lighting systems because of other stuff like nanite.

    Regardless of this and my complaints about Unity, there are still plenty of scenarios where I'd rather use Unity. And its important to have multiple options, with different strengths and weaknesses and different sets of compromises. Narrower views may still have validity but not in isolation, view that are too narrow have to be combined with lots of other narrow views in order to obtain the full picture.
     
  14. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    i didn't say anything about high end, my comment was about high end + needs moving lights / objects, but not so high end as to need rtx.
    slightly above enlighten on the high end scale and slightly below ssgi
     
  15. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    You are not wrong, but your information is outdated by like 15 years. Your idea of UE being like that is when it was UE2/3 era. In terms of what is do-able, UE and Unity is pretty much neck and neck. UE allows freedom in the sense of the engine source being readily available and Unity being a black box but allowing us to extend the editor and behavior with C#. They are pretty much the same except Unity's shader approach is the more appealing method for people with shader experience. People with a solid C and engine developement experience will find UE way more approachable and easier to find a good hire. Other than that there is not much difference.

    If you argue that Unity is better because you can do anything, the same goes for Unreal. The whole engine is up for modification. The difference is your background and skill and hence your preference. Some people find Unity more open and others not vice versa.

    The real difference between the two Engines, is the graphical scalability, and it has been since the early days of UE4. See, lately, Unreal have realized, that their engine needs to be designed for Open World Games, not because they are more popular, but because techniques required for Open World Games pretty much cover every other 3d genre. If it can do Open World, then mostly likely it can do everything else.

    For example, streaming large terrain, shifting floating point, Seamless interior/exterior, Nanite, Realtime GI and lights, virtualized shadows. I mean, people are uploading level videos on UE5, which calculating the release date, the max time they could have had is 2-3 days. Some people actually say they whipped something up in 10 min. That kind of stuff takes couple months in Unity. The baking alone...phew


    On the other hand, Unity has been knee deep in DOTS, which so far proves to be a big mistake (this is subjective so, this is my opinion). They expected data oriented approach to leave a huge gap between UE and Unity, but the development of DOTS and Hybrid Renderer is just dragging on and on. Also, per usual, Unity has put graphics at the bottom of the list, getting their bottoms kicked hard - again.

    See, I expected the Hybrid Renderer and DOTS to be fully ready about 2 years ago which would have made Unity and Unreal trade good blows to each other, DOTS hybrid renderer vs UE4, then UE5 around now, and Unity something 6 months later. You know, a good competition.

    But the sad reality is Unity keeps missing their punches by investing in the wrong direction. (Enlighten going away and coming back, DDGI development stopped, basic editor features like Splines delayed because Overlays is so important, HDRP grass shaders taking 3~4 years)
    Then there is the delayed and prolonged development cycle which I think at this point is not subjective but objective fact.

    So, what am I trying to say? When it comes to Unity vs Unreal, Unreal is the clear winner. If you say otherwise, then it is at a point where you are insulting both engines. The difference is clear and big. Don't confuse what is better versus what works or more suited for your project though, because out there, outside of this Unity forum, I guarantee you that there are millions of people who would say Godot or some other engine is better than Unity. The two are mutually exclusive and should not interfere with discussion.

    I just hope that the Unity devs know what exactly is going on. For some strange reason, every Unity dev disappears when people start talking about Unreal Engine. No news, no sharing of roadmaps, no info on how far or what they are doing. I mean, did everyone know that this tech is not getting worked on at the moment?


    If there is a priority list it should be on the negative side of things...this is how important this tech is and yet, it is delayed, not worked on and not told. Why and how long? who the hell knows man...who knows.
     
    mGMM, BOXOPHOBIC, Roggi_ and 15 others like this.
  16. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395
    Would be cool to hear from the devs what's gone wrong each time they fail to deliver some feature. I asked this exact question when they announced that Enlighten is coming back, but with no answer, of course. I mean, what do they fear at this point? That people won't like it? The convoluted in-house real-time gi development that has ended with literally nothing can't go unnoticed. People are already quite disappointed and are not ready to believe other promises. If the company was brave enough to disclose what's gone wrong and comment on how they are planning to improve this situation, then, I believe, they could find more understanding than they receive now, ignoring questions and acting like nothing happened.
     
    Immu, florianBrn, ExtraCat and 2 others like this.
  17. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    i-i kneel. i see that i was wrong and you are right. unreal is the superior engine.

    i just like unity's:
    -job system
    -ecs (particularly how scripts live in the project folder vs dragging references in editor, and how, uniquely, there are no static mesh objects)
    -markup style sheet flex uielements
    -instant compile time, leak detection and safety in editor, thanks to jit
    -modular package design, modifying & updating parts of the ""engine"" vs the whole of it
    -tiny builds
    -super low end platforms
    -runtime modability via .net assembly injects or host playing from engine with livelink in multiplayer game.

    but i can clearly see why more AAA studios would go for Unreal, with its superior graphics, artists workflow and technologies like nanite
     
    Last edited: May 30, 2021
    LooperVFX and Ruchir like this.
  18. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    No problems here mate, we are just throwing opinions :)

    As for me, though a lot of the stuff you mentioned feel useless (and mind me, I am not AAA or even close to AA) but as soon as the project scales to a release scale/date, the whole editor/project starts to break apart.

    Job system - if not used carefully, the overhead slows the game down more than not using it. Strange behavior, and if I only use it when it benefits, there are very few instances, where I can (like spraying many objects as projectiles, or doing linearly increasing cross array calculations). It feels like a half baked multi thread system, trading safety of threads for performance....

    ECS - if it actually worked with HR and other related stuff. The horrible conversion workflow is another...

    And most importantly, as the scene gets bigger and number of things increase, the editor is more prone to crash...just randomly, loading in, saving etc. And Unity does its magic when it crashes, often corrupting the project, sometimes even breaking it beyond repair. I try to erase Library, or some meta file etc to fix it. But most times I am going back to my backup in my server. It turns my day into a nightmare when I have to read back from my backup which takes about an hour. The project source is around 200GB now and around 15GB when compiled as standalone, so the pain is real.

    But back to GI, we really need a new initiative from Unity. A direction of sort at least.
     
    chadfranklin47, AcidArrow and NotaNaN like this.
  19. mishakozlov74

    mishakozlov74

    Joined:
    Aug 8, 2018
    Posts:
    143
    So, am I correct that it's possible to avoid using light sources at all and just use emissive and GI to light?
    I mean, what's the point of using lights then?

    Unread graphics looks just stunning, that's true.
     
    Last edited: May 30, 2021
  20. Wawruch2

    Wawruch2

    Joined:
    Oct 6, 2016
    Posts:
    68
    Bove systems are extremely well thought and intersected, Nanite and Lumen. It's not just a Global Illumination solution. Lumen consists of SSGI, Signed Distance Field GI and huge voxels for VXGI in the distance. From what I understand Nanite generates simplified scene for offscreen information that Lumen uses for GI and Reflections. It's genius in a way cause you kill couple birds with one stone.

    In my opinion simple SSGI can't compete with that no matter how good it is.
     
    Ruchir likes this.
  21. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Wait, so its a blend of SSGI + SDF GI + VXGI? That is very interesting...wow.
     
  22. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
    Shadows, dude. Shadows.
     
    mishakozlov74 and Ruchir like this.
  23. mishakozlov74

    mishakozlov74

    Joined:
    Aug 8, 2018
    Posts:
    143
    Oh totally forgot about them
     
  24. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Can someone kindly explain how SDF GI works? I understand how SSGI and VXGI works but not SDF GI and I can't really find any material on this.
     
  25. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395
  26. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
    This is impressive, got to give credit where credits deserved
     
  27. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    granted unity does crash.
    though there's additive scene loading & unloading. (and subscenes)
    which is really powerful for managing assets in large games.
    i use it allot. works even with lightmaps
    afaik, there's nothing comparable in unreal.
     
  28. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Nope, check out the UE5 world partition streaming. It sort of makes scene loading and unloading outdated as the editor itself just allows streaming. So if it were in Unity, then instead of loading in and removing subscenes, the scene view camera does it automatically. No need to cut up, load and unload. Just one big scene that automatically manages itself. No lag thanks to Nanite...
     
  29. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    but can you load random scenes procedurally?
    you also can do it in editor to edit multiple scenes at once
    distance based unloading is fairly simple to implement, unity has a sample. but that can't be the default since unity has a more sandbox approach where this might not apply in non traditional fps games.
     
    Deleted User and Ruchir like this.
  30. Deleted User

    Deleted User

    Guest

    Unity really needs to add a complete realtime GI solution like Lumen... They said they have planned for in-house RTGI but it won't be released in 2021 cycle... Hope it comes in 2022 version...
    What is this?? I recently found this PDF but I am confused is it nvidia RTX based or probe volumes which unity is working on??!
    https://arxiv.org/pdf/2009.10796
     
    LooperVFX and Ruchir like this.
  31. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    ASAIK, I could be wrong, Async Level(Scene is called level in Unreal) load and unload was around for along time (I remember seeing it in UE4) So yeah.

    As for editing multiple scenes in Unity, it becomes a huge pain as the scene grows...I know this because I am busy with a 8x8km scene...

    Not to mention the need to divide a scene into multiple sub scenes is gone in UE5...
     
    NotaNaN and Ruchir like this.
  32. MichielVanOmmen

    MichielVanOmmen

    Joined:
    Feb 12, 2019
    Posts:
    6
    Plus the appeal of version controlling sub-parts of that one master scene can boost large production a lot.

    But yeah, back to Unity. It does look a bit shaky for them. A lot will depend on what will be said during GDC and whenever their next Unite will be. Unity still has many neat features and allows for rapid system prototyping. Unreal is handy for artists, but in the end, it's the systems that will determine what goes in or gets cut out. So yeah, high hopes Unity won't get abandoned by too many people.
     
    jjejj87, Deleted User and FernandoMK like this.
  33. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
  34. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    Well, Not directly related to this topic but considering that unity canceled their Unite 2021, should I expect any kind of big news coming from unity this year, or do we have to wait till 2022 now?:(
     
  35. Onigiri

    Onigiri

    Joined:
    Aug 10, 2014
    Posts:
    486
    What big news do you expect? New super cool global illumination technology? There won't be any. Maximum you could hope for is some sort of "realtime mode" for probe volumes
     
    Ruchir likes this.
  36. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Has anyone tried Probe volumes? I tried to enable it multiple times, but I couldn't get it to work. Also, it seems like it is meant to be used in conjunction with SSGI and immediately my hype went down the drain :)
     
    NotaNaN likes this.
  37. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    I guess I was expecting some kind of roadmap talk :p
     
  38. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,708
    I’m really hoping they demo an open world dots game.
     
    NotaNaN and Ruchir like this.
  39. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    They did say they were building the new "environment" system or something similar if I remember correctly for an open world DOTS game. This was supposed to be their new big showcase but I have no idea where this project is now. :(
     
    NotaNaN likes this.
  40. Onigiri

    Onigiri

    Joined:
    Aug 10, 2014
    Posts:
    486
    Maybe they bring some updates on GDC
     
  41. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    Yes but they will most likely have DOTS open world demo with:

    -terrain tessellation not supported.
    -terrain detail not supported.
    -floating point shifting not supported.
    -terrain raytracing not supported.
    -terrain grass supported but no interaction support.
    -terrain supports 4 layers only.

    This is more of a joke based on current situation but does it not sound like what they will do? Hahahahaha!
     
    Stardog, tng2903, florianBrn and 4 others like this.
  42. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    idk... i really love Unity for many things, but i have to admit that right now Unreal looks very sexy for me i'm facing troubles and bugs with Unity's global illumination and all that stuffs, and i'm thinking on make my next project on unreal with lumen. I have a laptop with a 1050 and i tried a couple of demos and i must say, is very nice and unbelievable for me and this laptop (is unreal)
    I really want to be surprised by Unity team with an alternative to those features but that is just a dream and i do not want to wait 2 or 3 years to start making that project
     
    Ruchir likes this.
  43. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395



    Some screen space issues of Lumen
     
  44. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    Well i've been playing with Unity's alternative and i'm having similar results and in some cases a little better with unity in some terms, but i'm having one annoying bug that makes everything useles
     
  45. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    You mean unity improved their SSGI algorithm?
    Because when they released it, it was basically useless
     
  46. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    I'm playing with unity 2021 right now, i made a simple object with some walls and i exported to unity and unreal 5, i'm just using a point light with similar values on both engines (very simple) and the results are kind of similar, of course, with unreal i just create a point light and set the basic values (first time using unreal) But with unity it was a little bit complicated because of elighten workflow (the precompute and all that stuffs) In some cases Unity have better results, but there is a bug, very dissapointed.
    This is a very basic test for now, i now Unreal's lumen is superior but maybe with some time we can make similar results (without any emissive map of course xD)
    Edited: ...And just static meshes of course
     

    Attached Files:

    Last edited: Jun 8, 2021
    Deleted User likes this.
  47. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    No one has said that buddy :) in fact i literally said "i know unreal's lumen is superior"
    Yes Enlighten only work with static meshes, everybody knows that, that is why i said "the precompute and all that stuffs" Read the post :)
     
  48. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    Dude xD read the post, also, you can see the screenshots xD the first screenshot says "Unity 2021 Enlighten" and i also said: "...because of elighten workflow"
    Anything else?
     
  49. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,668
    Ruchir likes this.
  50. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934