Search Unity

SEGI (Fully Dynamic Global Illumination)

Discussion in 'Assets and Asset Store' started by sonicether, Jun 10, 2016.

  1. scheichs

    scheichs

    Joined:
    Sep 7, 2013
    Posts:
    77
    AFAIK Unity only works with OpenES 3.0 on NVidia Shield. That will not be enough for SEGI.
    As for emissive materials: Check the demos in the start post of this thread. They use emissive materials quite a lot.
     
    neoshaman, buttmatrix and RB_lashman like this.
  2. Yuki-Taiyo

    Yuki-Taiyo

    Joined:
    Jun 7, 2016
    Posts:
    72
    @scheichs : I was talking about the downloadable demos, with emissive materials only. There is none.
     
    RB_lashman likes this.
  3. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,664
    Have you tried the low poly one? You can shoot glowing orbs and there's even a cave with glowing crystals in it... Both things are just emissive materials.
     
    buttmatrix likes this.
  4. Yuki-Taiyo

    Yuki-Taiyo

    Joined:
    Jun 7, 2016
    Posts:
    72
    I know about the light spheres you can shoot. I was talking about a specific interior scene with only emission materials. It lacks a demo to show what it looks like.

    What about some archviz type interior with switchable lights for the future ?
     
    Last edited: Jul 28, 2017
    RB_lashman likes this.
  5. buttmatrix

    buttmatrix

    Joined:
    Mar 23, 2015
    Posts:
    609
    I think the archviz screenshot on SEGI website is using emissive materials on the windows. I remember asking about the lighting setup *way* back in this thread.
     
    RB_lashman likes this.
  6. yohami

    yohami

    Joined:
    Apr 19, 2009
    Posts:
    124
    Update of my game using SEGI

     
    Baldinoboy, eDmitriy, pcg and 8 others like this.
  7. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Really nice colors :)
     
    RB_lashman likes this.
  8. gmatthews

    gmatthews

    Joined:
    Jan 13, 2016
    Posts:
    16
    Anyone tried SEGI with 2017.1 yet? Does it work?
     
    RB_lashman likes this.
  9. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,664
    It does work, but it looks a bit broken to me at some points compared to older Unity versions. Could be just false imagination from my side, though... But yeah, it works.
     
    Last edited: Jul 29, 2017
  10. AlteredPlanets

    AlteredPlanets

    Joined:
    Aug 12, 2013
    Posts:
    455
    ok , I know Cascades and performance were the two big things everyone wanted , you have shown improvements in those areas .....

    now where is the release man? is that hard to package it up and send it to the store front?

    can we pm with invoice and get the whatever you have now?
     
  11. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    The hype has moved to HxGI now
     
    buttmatrix and RB_lashman like this.
  12. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    505
    I really want both... Just segi is a bit quiet lately. I have a bad feeling about SE's family health situation...

    Hope he's ok.

    But yeah I agree hxgi has some movement for sure. Man I'd love to get my hands on this cascades update though!
     
    amasinton and RB_lashman like this.
  13. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    SEGI for Unity 2017.1 please !? Any chance ?
     
    RB_lashman likes this.
  14. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    I think I am done being remorseful and apologetic when I complain on this thread.

    More fool me for expecting better from an asset store dev who rarely updates his other assets either. Why did I think it would be different with his product that is still in beta and development? A couple of updates in over a year, the last of which was to fix 5.5 compatibility. No, not on, and I'm done with SEGI because even if a newer, better version appeared now I would not be able to trust that future updates to deal with unity version compatibility would arrive in a timely fashion.

    He even posted in a thread for one of his other assets earlier this week, but nothing here. Goodbye bad buy.

    edited to add: I mean I thought I had sensibly adjusted my general expectations to deal with the era we are living in now having widely misused the term beta. But no updates in the entire calendar year to date seems to me to rather stretch even the modern loose meaning of the word beta.
     
    Last edited: Aug 4, 2017
    arnoob, Mauri, Vinterdo and 7 others like this.
  15. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    Just a few last thoughts before I likely fall silent on this thread.

    I think it gets to me because of how much I appreciated the large amount of effort that sonicether put into explaining the current state of the beta SEGI when first released, some potential future risks, a roadmap that was very informative, etc. Because of that good stuff my expectations were certainly met when I first purchased SEGI, but tragically it has not been possible to sustain this stuff for reasons unknown.

    For example:

    Surely you should realise that you should only tell the world this stuff if you actually plan to then put the new version in the hands of your customers within a reasonable period of time? Because without a timely release following such positive and useful info, its a terrible tease and it turns sour.

    To respond in the same way that that sonicether put it in the quote above: The change has been gradual from your perspective. It should have been gradual from your customers perspective too! Because you should have put way more effort into turning your continually evolving development version into fairly frequent releases for your numerous customers.
     
    Last edited: Aug 4, 2017
  16. sonicether

    sonicether

    Joined:
    Jan 12, 2013
    Posts:
    265
    SEGI works just fine for Unity 2017.1.

    I'd like to say right now that the next update with blue noise and cascades (and other optimizations) is nearly done now, but as you fellow developers know, the last 10% is really just another 90%, and even though I know this, it still takes me by surprise time and time again. I haven't been too vocal about this huge update's progression because I don't want you all to be so disappointed because I've been saying "soon" for so long. But, if I just leave it at, "I'm working on it," people still end up being upset. So, either I'm teasing releases, or I'm "disappearing". I feel like I'm being pulled in different directions here.

    The nature of this project makes it difficult to make steady progress because so much trial and error and experimentation is required. Not to mention, refactoring the entire structure of the algorithm for cascades has been no easy task (once again, the last 10% is another 90%). It's been so long since the last update because even though this is a beta, I still have to treat it like a product in that I can't release any updates if they're unstable/buggy or otherwise unfinished in a way that makes it seem sloppy. I don't know, maybe people are more forgiving of things like that than I anticipate, but all you need to do is scroll through this thread to see how critical people have been of this project so far.

    So is the update with cascades coming soon? I'd like to say so, but I've really grown to hate that word, and I get the feeling a lot of you have as well. So, I don't know what else to say other than I'm still working on it and I'll submit the update when it's done.
     
    yohami, arnoob, TooManySugar and 8 others like this.
  17. buttmatrix

    buttmatrix

    Joined:
    Mar 23, 2015
    Posts:
    609
    ^you have been available via email to be sure, which most people probably forgot was even an option
     
    arnoob and RB_lashman like this.
  18. BruceBarratt

    BruceBarratt

    Joined:
    Jun 20, 2015
    Posts:
    57
    Well said Sonic. Every release you've done so far has been very clean and I can appreciate wanting to keep it that way.
     
    RB_lashman likes this.
  19. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    Believe it or not I do have some sympathy with some, but not all, of the dilemmas your describe.

    Personally I expected lots of bugs and rough edges, and lots of updates. Thats what I assumed I was getting with the beta and what most other assets that I've bought 'in beta' have delivered over the years.

    Even if I water down my own position slightly, I think the right balance has not been struck to date. I know how hard the last 10% can be and how hard it can be to release code without it having reached a level of polish and stability that the developer is really happy with. But I think once you start to sell something (and despite the fact I know you were pressured into releasing originally), you have to be more prepared to keep pushing updates into your customers hands rather than wait for stuff to feel more finished.

    Since it is quite possible to put unity packages inside unity packages, it seems like it would be possible to have both the current release that also contained a package of more recent experimental version available via the asset store without having to offer the latest experimental version via an alternative download mechanism that would be much more work for you to maintain.
     
  20. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    At the risk of me harping on too much like a broken record, I have a thought about this one. More communication and detail is always better than less, and I have no problem at all with a bunch of other assets where futuristic features are sometimes teased a long time before they are available. So its probably up to me to explain this contradiction. I havent quite come up with a full explanation I am happy with yet. But I think its probably got something to do with general update frequency and authors ability to granularise their development with frequent releases in mind, not getting stuck in the trap of having loads of refactored stuff earmarked for some huge new major version that never quite seems to boil over into a release.
     
    arnoob and RB_lashman like this.
  21. BruceBarratt

    BruceBarratt

    Joined:
    Jun 20, 2015
    Posts:
    57
  22. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    838
    Hey @sonicether, my team has purchased SEGI to try it out for our project and I was wondering if it was possible to optimize it's performance by only having it calculate GI at specific intervals (as opposed to each frame). We're doing an architectural modelling tool, so the actual geometry of the scene changes at fairly low frequencies.

    Thanks for any help and great work on the tool!
     
    RB_lashman likes this.
  23. TooManySugar

    TooManySugar

    Joined:
    Aug 2, 2015
    Posts:
    864
    This script already exists, read the forum
     
    arnoob and RB_lashman like this.
  24. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    505
    You can get a long way there already. I can't remember if you can get all the way there though. There are a couple of inspector exposed variables they prevent recalculation (or maybe just one). Turn it off and frame rate increases but the light stops updating. Use a script to toggle it when you like, such as when your geometry changes.

    Not sure if there's more that can be done. Sonic will have to answer.
     
    Iron-Warrior and RB_lashman like this.
  25. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    838
    Found it in "Update GI", not sure how I missed it initially (played around with some of the internal variables in the class :S).

    Thanks for the answers guys!
     
    RB_lashman likes this.
  26. Lex4art

    Lex4art

    Joined:
    Nov 17, 2012
    Posts:
    445
    This script will only reduce voxelisation part (10-20% performance gain, though. Maybe with performance spikes...), main calc-heavy part is ray tracing light propagation - and it is done in screen space and this can't be stretched between frames by design...
     
    arnoob and RB_lashman like this.
  27. Thomas-Pasieka

    Thomas-Pasieka

    Joined:
    Sep 19, 2005
    Posts:
    2,174
    Currently looking for other GI solutions. How good/bad does this work in VR (Oculus Rift) currently?
     
    RB_lashman likes this.
  28. SteveB

    SteveB

    Joined:
    Jan 17, 2009
    Posts:
    1,451
    Well it needs Single-Pass Stereo implemented, so right now SEGI is being calculated for each eye.

    I'm eager for this too...
     
    RB_lashman likes this.
  29. buttmatrix

    buttmatrix

    Joined:
    Mar 23, 2015
    Posts:
    609
    I contacted Cody about this via email in mid-July. He indicated that the core algorithm for SEGI was his highest priority for right now and that he would start working on single-pass stereo rendering after he's happy with the functionality.
     
    RB_lashman likes this.
  30. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Hi, yes it works in the Editor only, but you couldn't build a scene as it throws some errors !

    Assets/SEGI/SEGI.cs(384,22): error CS1061: Type `UnityEngine.RenderTexture' does not contain a definition for `generateMips' and no extension method `generateMips' of type `UnityEngine.RenderTexture' could be found. Are you missing an assembly reference?

    Error appears at:
    - SEGI.cs(384,18)
    - SEGI.cs(401,18)
    - SEGI.cs(417,18)
    - SEGI.cs(668,18)

    This happened with just created brand new project. This error shows when i just started to build the low poly scene!

    Thanks !

    UPDATE:
    For all of you guys just to know the issue is related to the "generateMips" option of the RenderTexture which is actually deprecared now in 2017.1 As soon as these four lines are commented, you will be able to build a scene with SEGI working well !
     
    Last edited: Aug 11, 2017
    RB_lashman likes this.
  31. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    One more thing...

    if you put SEGI in another folder the presets are not loaded... If this could be addressed as well will be great !

    Thank You!
     
    RB_lashman likes this.
  32. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,664
    That happens because the path to the presets is hard-coded. In SEGIEditor.cs, there's this line:
    Code (CSharp):
    1. const string presetPath = "Assets/SEGI/Resources/Presets";
     
    RB_lashman likes this.
  33. OnlyVR

    OnlyVR

    Joined:
    Oct 5, 2015
    Posts:
    55
    Bad, unfortunately. I mean it looks very nice, but FPS around 50.
     
    RB_lashman likes this.
  34. yohami

    yohami

    Joined:
    Apr 19, 2009
    Posts:
    124
    And... the update is coming... anytime
     
    RB_lashman likes this.
  35. OnlyVR

    OnlyVR

    Joined:
    Oct 5, 2015
    Posts:
    55
    I afraid we will never see the production version. OTOY has added the path tracing plugin to Unity 2017. It works amazing and it fast but not in real time of cause. Next year OTOY promised the physically correct path tracing in REAL TIME! So, Sonic has just a year. I appreciate his hard work, by I don't think it will be completed in time.

    P.S. Somebody was interested in the fast baking. OTOY has the "baking" camera (I didn't get how to use the baked texture though)
    -Added texture and lighting baking by introducing a new baking camera.
     
    arnoob, RB_lashman and buttmatrix like this.
  36. buttmatrix

    buttmatrix

    Joined:
    Mar 23, 2015
    Posts:
    609
    link?
     
    RB_lashman likes this.
  37. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,664
    Well, there's still hope for HXGI... Not sure what to think of OTOY, to be honest. I mean, Path tracing always has noise (in the beginning)?
     
  38. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    I'm not going to make any assumptions about what OTOY will achieve in the years ahead. There is potential with some of their stuff for sure but lots of devilish detail and I'm certainly not going to start thinking about it as an alternative realtime GI solution at this stage. And I certainly dont think its started a countdown to a time when all other solutions will surely be obsolete.
     
    arnoob and RB_lashman like this.
  39. OnlyVR

    OnlyVR

    Joined:
    Oct 5, 2015
    Posts:
    55
    buttmatrix and RB_lashman like this.
  40. OnlyVR

    OnlyVR

    Joined:
    Oct 5, 2015
    Posts:
    55
    RB_lashman likes this.
  41. scheichs

    scheichs

    Joined:
    Sep 7, 2013
    Posts:
    77
    OTOY will only be realtime in some very special/tuned/optimized cases. In general it is meant to produce high quality cinematic videos. You can see this in "OTOY Unity preview"-page where one image needs more than 5 mins to be generated.


    SEGI and HXGI are in the 1-5ms ballpark for GI, without having to be demonstrated in artifical scenes.
    So please stop the OTOY discussion.
     
  42. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    Yeah there is realtime (editing) and real time (playable framerate)
     
    RB_lashman likes this.
  43. Lex4art

    Lex4art

    Joined:
    Nov 17, 2012
    Posts:
    445
    Wow! Feels like something huge happened in realtime path-tracing - 1 sample per pixel per frame + set of temporal/edge detect filters = this:

    Guess animated objects will have huuuuge trails of artifacts, though...
     
    Last edited: Aug 22, 2017
  44. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    This is all about post processing a rendered texture with a lot of noise. VRay supports that feature as well as Blender...
    Could be the key to real time path tracing in games.... it is interesting if such techniques can be applied to voxel based renderers like SEGI !

    This shouldn't be happening imo
     
    RB_lashman likes this.
  45. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    I wonder if retroprojection can help, as this is above my skill level
     
    RB_lashman likes this.
  46. Baldinoboy

    Baldinoboy

    Joined:
    Apr 14, 2012
    Posts:
    1,526
    Hey guys,

    It would definitely help to get an update with SEGI to help on performance and cascading on larger scenes. Though I did get pretty good performance with some optimizations on a scene for my tropical pack update. It is a smaller terrain but with pretty dense foliage. Using low voxel resolution with infinite bounces. Was getting 36-50 FPS in editor at 1080*910 resolution on my new Ryzen 1700, GTX 1050 Ti build. The 1050 is a good card but nothing compared to the 1070, which I would love to test in this scene. Here are a few shots-




    (birds being used are from the Bird Flock Bundle by Unluck Software)





    What I did to optimize the scene was I duplicated the terrain data and added the copy to the scene. Then I deleted all the tree prefabs from that copied GI terrain. Using the layers I set my base terrain to terrain and the GI copy to GI. So hid the GI copy from my camera of course and hid the base terrain from the SEGI layers. All the trees in this scene are gameobjects so are still being used by SEGI but the ground cover LOD trees using the terrain system are not being voxelized by SEGI. This helped a lot on perfromance. Also set all the gameobject cover on the rocks and ground to a layer not being voxelized by SEGI but seen by the camera.

    Was very happy with the results from this. I tested the scene with Enlighten with just the rocks and terrain static. It looked pretty good but then there was the issue with the trees not contributing and the rocks LODs. Lightprobes and the new Proxy Volume just did not help with the popping. Also performance was not that much different. Could be even worse with Enlighten if the sun is moving.

    So having dynamic real-time GI on a nature environment in Unity with usable framerates on a mid grade GPU is nice. With a few needed updates on SEGI do not see how it would not be production ready for most well optimized projects.
     
    Last edited: Aug 23, 2017
  47. nbac

    nbac

    Joined:
    Jul 7, 2015
    Posts:
    267
    very nice scene you got there. what volumetric light solution do you use?
     
    Baldinoboy and RB_lashman like this.
  48. Baldinoboy

    Baldinoboy

    Joined:
    Apr 14, 2012
    Posts:
    1,526
    Thank you. It is using @Michal_ 's Open Soruce True Volumetric Lights. I know I can get more realistic settings with it but just like the classic sun rays going all the way to the ground.
     
    RB_lashman likes this.
  49. olix4242

    olix4242

    Joined:
    Jul 21, 2013
    Posts:
    1,962
    Main problem with Otoy is that it can't use custom shaders (it supports only standard unity shader). So this is a great deal breaker ofr any future Otoy implementation.
     
    RB_lashman likes this.
  50. mrbdrm

    mrbdrm

    Joined:
    Mar 22, 2009
    Posts:
    510
    is anyone having performance changes after updating unity?
    i used to have 40-50 fps but now 12 fps on the lowest setting of SEGI
     
    RB_lashman likes this.