Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Progressive Lightmapper vs Enlighten vs Lightmass

Discussion in 'Graphics Experimental Previews' started by UnityLighting, Feb 1, 2017.

  1. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
  2. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
    I have fixed this issue, should have landed already in 5.6/2017.1.
     
  3. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
  4. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
    In 2017.2 we added a double sided GI flag on the material. This is being backported to 2017.1/5.6 as well. The backfaces won't have lightmaps, but they will bounce light correctly. I defaults to 'off'.
     
  5. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
    We added seam stitching for the progressive lightmapper in 2017.2.
     
    buttmatrix likes this.
  6. Jesper-Mortensen

    Jesper-Mortensen

    Unity Technologies

    Joined:
    Mar 15, 2013
    Posts:
    232
    In Unreal lightmass will not bounce emission, this is a known limitation - its there to avoid issues with noise and to bring down baking times. Lightmass, Beast and Progressive Lightmapper use a comparable light transport algorithms, just different tradeoffs are chosen.
     
  7. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    I already compared Beast and Enlighten in the past with all different settings possible. But Unity 5 always has better Indirect lighting that's possible only with VRay

    Untitled.jpg View attachment 238086

    Untitled.jpg
     
    Last edited: Jul 10, 2017
  8. KRGraphics

    KRGraphics

    Joined:
    Jan 5, 2010
    Posts:
    4,467
    Beautiful... can't wait to try this out
     
  9. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    How could i missed this thread.
    Now we just need a proper shadow receiver for dynamic object with mixed lighting
     
    Ruslank100 and KRGraphics like this.
  10. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
  11. AFrisby

    AFrisby

    Joined:
    Apr 14, 2010
    Posts:
    223
    It's probably a) unhelpful, and b) way too late, but could we get some of those tradeoffs configurable? I'd kill for render times on par with what Beast could achieve.
     
  12. scvnathan

    scvnathan

    Joined:
    Apr 29, 2016
    Posts:
    75
    I think our hopes for fast render times will come with GPU and distributed LAN lightmapping . Although who knows if the LAN baking is still even being worked on - imo, GPU acceleration might make that not as useful in comparison, but we can always use more speed.
     
  13. DominoOne

    DominoOne

    Joined:
    Apr 22, 2010
    Posts:
    433
    Does anyone know if these features can be achieved in 5.6 with PL?

    1. Baking lighting for Skinned Mesh Renderers (not 100% sure about Enlighten, but it definitely used to work in Beast, when you marked the object "Static" during the baking process). Is that somehow possible with Progressive Lightmapping?
    2. Objects that don't cast shadows, but receive them. It seems that with Progressive Lightmapping this setting is ignored. I've also tried making separate settings for these objects and mark "Is Transparent" for them, but that didn't do anything, as well. Am I doing something wrong?
    3. Objects with transparency. Again, "Is Transparent" in the baking settings doesn't seem to do anything. Is there a way to tell PL to not drop shadows from transparent parts of the objects?

    Thanks for any input :)
     
  14. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    No. Maybe in the future (but don't count on it for any time soon)
    This works in 2017, not sure if it was backported to 5.6.
    "Is transparent" is only relevant to Enlighten. Otherwise transparency works for direct light, it doesn't work for indirect light. Not sure when it's going to be fixed/added.
     
  15. DominoOne

    DominoOne

    Joined:
    Apr 22, 2010
    Posts:
    433
    Thanks for the info!
     
  16. tyrot

    tyrot

    Joined:
    Aug 18, 2013
    Posts:
    36
    this thread is a gem .. i tell ya. Thanks Ali for all these tests and amazing visuals!
     
    UnityLighting likes this.
  17. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,517
    @aliyeredon2

    In your tree baking scene, did speed tree get lightmapping? I tried to lightmap speed trees but they won't work! (neither did the unity tree)

    If so , how did you managed to bake lightmap for the trees? Or trees just uses the light probes?
     
  18. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    You must export tree's 3d model for baking purpose (using exporters)
    Then generating lightmape UV for tree model

    After that you can bake tree models like other geometries. But when you are using too many trees, you must use very low resolution for trees and needs much RAM for baking.

    So the better way is using light probes for too many tree models
     
  19. CGBull

    CGBull

    Joined:
    Feb 12, 2017
    Posts:
    82
    I use real time gi , but i get a very bad image . if i use bake gi and enable finalgather , this problem will disappear . i try change realtime uv option , still nothing to do . have you ever met?
     

    Attached Files:

    • 01.png
      01.png
      File size:
      383.6 KB
      Views:
      948
    • 02.png
      02.png
      File size:
      345.4 KB
      Views:
      983
  20. srmojuze

    srmojuze

    Joined:
    Mar 18, 2013
    Posts:
    127
    By Realtime GI you mean Enlighten?
     
  21. CGBull

    CGBull

    Joined:
    Feb 12, 2017
    Posts:
    82
    yes,Enlighten
     
  22. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Last edited: Mar 4, 2018
  23. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    hippocoder likes this.
  24. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    When progressive lightmapper bakes, can volumetric lighting be rendered in the scene ?
     
    Last edited: Mar 4, 2018
  25. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    Sure? I am not sure what you're asking.
     
  26. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995

    For example, if we have object with emission material (say cube), and we set up volumetric lighting,
    how does baked progressive lightmapper interact with volumetric ?

    If we have some moving object through the scene, does it get affected by baked emissive light ?
     
  27. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It has nothing to do with volumetric. It is a lightmapper.
     
  28. CGBull

    CGBull

    Joined:
    Feb 12, 2017
    Posts:
    82
    yes enlighten
     
  29. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789

    I think I know what he's trying to say but this only makes sense if the scene uses only baked lighting as if it was mixed this wouldn't be an issue.

    So when you have a scene with only baked lighting the lights you used to bake are off/don't affect the scene anymore, and volumetric lighting usually comes from a light source. With baked lighting, there is no light source so he's asking if the lightmaps would interact with volumetric lighting to produce the same effect.

    I don't think this is possible by default may be a custom solution sampling light probes then doing something with that might create a similar effect. (Not a graphics programmer just a thought/idea)
     
    KarlKarl2000 and konsic like this.
  30. TokyoWarfareProject

    TokyoWarfareProject

    Joined:
    Jun 20, 2018
    Posts:
    814
    they have FINALLY fixed PLM for outdoor medium/large urban scapes like environments. Prior releases it would simply stall. This time soon after bake start it was showing progress and after 3p mins I gst a clear idea on bow the bake would end up. Stimated 3 4hours for full bake. Sure there is room for optimization but at least Im getting a bake.