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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Book of the dead re-bake Lighting!!!

Discussion in 'Graphics Experimental Previews' started by tinyant, Jul 3, 2018.

  1. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    Anyone try to re-bake Book of the dead's scene lighting?

    I tried to re-bake the lighting without changing the bake settings.
    It take so long time to get final result.it shows about 2h. I still waiting now.:eek::eek::eek::eek::eek:

    How long it takes you if you re-bake the scene's lighting?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,982
    2 hours is not that long.
     
  3. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    Hi AcidArrow how long it takes in your PC?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,982
    I did not try it. But I'm baking my own scenes right now and:
    Screen Shot 2018-07-03 at 13.49.20.png

    So, 2h hours to bake a scene is fine.
     
  5. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    :eek::eek:

    I am wait for the WORK DONE about 2h,Unity seems always re-bake lighting?I wonder if it is the tree's problem, the trees always change their shape with wind. Unity will re-bake Lighting when the tree's "shape" changed?

    Now, I think it's an endless work for waiting.(baking...tell us how long last ,baking... tell us how long will take, baking ... tell us how long will take ......)

    I need to re-import BOOK OF THE DEAD to get Unity3d's demo final result.:(
     
  6. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
  7. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    Here's some information if it will help: https://blogs.unity3d.com/2018/06/2...ene-building-and-content-optimization-tricks/

    Both the indirect lighting from the sun and direct plus indirect lighting from the sky is baked into lightmaps and light probes. Reflection probes, occlusion probes and other sources of occlusion are baked as well. Direct sun contribution, on the other hand, is real-time lighting. Shading in the HD Render Pipeline looks best when using real-time direct light, and it also gives us some freedom to animate the rotation, intensity and color temperature of the directional light at runtime.

    Gif link: https://blogs.unity3d.com/wp-content/uploads/2018/06/image9.gif

    Since the indirect lighting is baked, we cannot change too much the intensity and color of the directional light, or it won’t match anymore with the baked lighting. We wouldn’t be able to get away with a full day/night cycle in this setup, even though a forest is a quite forgiving environment in terms of obscuring mismatched indirect lighting.
    From what I know they kind of ignore moving objects and trees in the baking, and what you are baking is just the bounce lighting on static stuff like rocks and dirt. Then they use Occlusion Probes, a custom thing which is baked together with the lightmaps and light probes to fill in the shadows the moving trees might create.

    That's my understanding, anyway. Not sure if it's right. I'm not sure if 2 hours is considered long or short for a scene of that size, but rest assured that it wouldn't bake every time a tree changes.
     
    tinyant likes this.
  8. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    Thanks IgnisIncendio. I should deep more into the scene build of book of the dead.:);)
     
  9. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    after tweak light settings. get 45 minutes to get final result.

    origin settings:
    origin.png

    reduce samples, resolution and light bounces. after change.png

    compare to origin Scene,the final result not very impressive I can see some "fake" lighting result in the scene.

    Next. bake the real "Final" result for "Book of the dead".
     
    IgnisIncendio likes this.
  10. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    final.png
    About 3h. I get the final bake result.

    To avoid it's an endless work for waiting.(baking...tell us how long last ,baking... tell us how long will take, baking ... tell us how long will take ......)I don't know why.

    I close my scene and game view when make baking. Finally get the final bake result(nearly 3h later)
    result.png

    i7-6700K CPU 4.00GHz
    32GB
    GTX 1070
     
    IgnisIncendio likes this.
  11. kubacupisz

    kubacupisz

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    4
    There are two fixes that are needed to improve the speed of baking in this environment that are on their way. I'll post here once I know the exact build they will land in.
     
  12. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    119
    Thanks kubacupisz :)!
     
  13. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    Is this part of the "Large scale optimizations" that was advertised in the 2018.1 features video?
     
  14. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,105
    Sorry to hijack, but is there any news regarding GPU mapper? I know that I am putting you in a difficult position by asking, but I am dying to know. Any information would be really appreciated :D
     
  15. Flindt

    Flindt

    Joined:
    Dec 28, 2016
    Posts:
    78
    Hi there - anyone know if/how it is possible to add a simple spotlight/pointlight - with shadows to this scene?
    I tried but it seems to act bit strange = lights up everything - including trees far away etc.

    Another question - is there maybe a way to "fade" between OcclusionProbesData? and AmbientProbeData? - that would be really usefull - for the situaions - (like mine) where I try to do the night/day cycle - even though we are told not to :)

    Also - is the AmbientProbeData the one that you control strength of in the Post process - Ambient Occlusion settings?

    Thanks to all that have any input.

    Best regards
    Karsten
     
  16. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,874
    Have you ever baked a commercial quality and sized environment in a commercial dev environment? Our bakes are done overnight, 2h really is not that long at all for such a detailed scene.

    The GPU lightmapper will relieve this, but I do think a lot of this is you having too high expectations.