Lighting in Unity HDRP with Bakery Lightmaps, Proper UVs, Light Probes and Reflection Probes

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • In this video I will be taking you over the baked lighting process in Unity HDRP from start to finish. We'll set up a scene, add light sources, bake lightmaps, diagnose and resolve issues amongst other things like baking reflection probes and light probes. We'll also look at using automated batch UV unwrappers, as well as finding the occasions where we'd want to create custom unwraps instead.
    Another thing we'll be making use of is Bakery Sectors and Bakery Lightmap Groups, which allow us to bake the lighting of small sections of our scene (fast) instead of baking the whole scene for each iteration we make (slow).
    In this tutorial I use the following software:
    - Unity 2019.3.15
    - 3ds Max
    - Bakery Lightmapper: assetstore.uni...
    - TexTools for 3ds: www.scriptspot....
    - Autounwrapper for 3ds: forums.chaos.c... (I made some modifications to this script to only unwrap the lightmap UV channel, drop a comment if you'd like the script)

Komentáře • 29

  • @attentiondeficitdisorder

    Really helpful. Thanks for making this. My scenes went from looking scuff to buff.

    • @Havii
      @Havii Před rokem

      Haha I like this saying, looking scuff to buff 😎

  • @blindlight
    @blindlight Před 2 lety +4

    excellent narration and explanation of your thought process, really made the subject a lot less intimidating

  • @officialdevel
    @officialdevel Před 2 lety +3

    Thanks for the guide!

  • @validustm
    @validustm Před 2 lety +3

    Well done bud!

  • @ghostaspirine9784
    @ghostaspirine9784 Před 2 lety +5

    Insane guide thanks you

  • @Ingsoc75
    @Ingsoc75 Před rokem +1

    Nice to see a tutorial using Bakery. Too bad it hasn’t been updated in over a year.

    • @TC-xk5rm
      @TC-xk5rm Před rokem +1

      You need to download the updates from the patcher, not through unity package manager.

    • @angiemon897
      @angiemon897 Před rokem

      @@TC-xk5rm and how would I do that? 🤔

    • @TC-xk5rm
      @TC-xk5rm Před rokem +1

      @@angiemon897 bakery menu > check for patches then you must enter your invoice # to proceed

    • @angiemon897
      @angiemon897 Před rokem

      @@TC-xk5rm hey, thanks! Will try that later :))

    • @arunachalpradesh399
      @arunachalpradesh399 Před rokem

      @@TC-xk5rm hi, there is place for github link, so what i have to put. i did what you said.

  • @snufkrill
    @snufkrill Před rokem +1

    Great Vid where did you get the train asset? Is there a way to get the model in order to replicate this tutorial/practice lighting?

  • @carlogiovanni
    @carlogiovanni Před rokem

    nice, thanks!

  • @lemmysnickers
    @lemmysnickers Před rokem

    Great tutorial. Learned alot even though I'm not using HDRP.
    Quick question, is the option "use influence volume a" only available in HDRP? I'm using URP and can't find this option anywhere....

  • @lcvaq2488
    @lcvaq2488 Před rokem +1

    Nice toturial! How can we have real-time shadows? please!

  • @hatrer2244
    @hatrer2244 Před rokem

    amazing

  • @bharatsharma6908
    @bharatsharma6908 Před 2 lety +2

    can we have real-time shadows for players and ai?

    • @roartex4249
      @roartex4249  Před 2 lety +3

      The lighting is fully baked in this example, with ambient occlusion being the only way shadows appear around dynamic objects, which can be fine. Soon I will do a part 2 tutorial with how to do baked + realtime shadows based on distance with shadowmask.

    • @bharatsharma6908
      @bharatsharma6908 Před 2 lety

      @@roartex4249 thanks 🥳

    • @attentiondeficitdisorder
      @attentiondeficitdisorder Před rokem +1

      @@roartex4249 If we just add in a few realtime lights does it work "properly". It looks fine to me when I try it but maybe there is a better way?

    • @andaoking
      @andaoking Před rokem

      @@roartex4249 can i ask when part 2 wil be out,really looking forward to it

  • @angiemon897
    @angiemon897 Před rokem

    Does anyone know a UV Script like that for Maya?

  • @michaorzechowski4948
    @michaorzechowski4948 Před 2 lety +1

    is there a repo for it?

  • @dragonlevel
    @dragonlevel Před rokem

    I hope light baking becomes a thing of the past. What a nightmare.

    • @roartex4249
      @roartex4249  Před rokem

      agreed, it's a pain. things like lumen and offline renderers like vray, corona, fstorm are so much nicer to work with

    • @dragonlevel
      @dragonlevel Před rokem

      ​@@roartex4249 Can I something that I've been researching for a few days an no 1 answering? Why does baked lighting look sooo terrible. It is missing specularity and my character and scene looks so flat. The shine is just gone. I've tried adding reflection probes and lighting probes all over before I bake. Still, looks horrible. Is baking even worth it if you are making a "nice" looking game?
      Also, the baking files are so large that it seems like it isn't worth it. I'm not going to be able to ship my game when the product us 20gb larger due to tons of lightmaps