HIGH QUALITY LIGHTING using Light Probes - Unity Tutorial

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • High quality lighting is not performant... Until now! Let's have a look at Light Probes in Unity.
    ► Get the free ebook! (sponsored) create.unity3d...
    ● Simple Lighting in Unity: • LIGHTING in Unity
    ····················································································
    ❤️ Donate: www.paypal.com...
    ► Join Discord: / discord
    ● Website: brackeys.com/
    ● Twitter: / brackeystweet
    ● Instagram: / brackeysteam
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com...
    ········································­­·······································­·­····
    ♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

Komentáře • 403

  • @Danidev
    @Danidev Před 4 lety +681

    ooo that's awesome, gotta try that!

  • @noravanguard3993
    @noravanguard3993 Před 4 lety +233

    Baked lighting is one of the ways the first mirror's edge looks so good to this day

    • @KZ_Suntorn
      @KZ_Suntorn Před 4 lety +11

      this guy gets it

    • @magnusm4
      @magnusm4 Před 4 lety

      Graphically, meh.
      Style, kind of it's own thing but not fully realized.
      Visually appealing and beautiful, not really.
      It's like if cancer joined a chat and everyone grabbed a bathtub of bleach and started playing Splatoon

    • @icarusswitkes986
      @icarusswitkes986 Před 4 lety +3

      I love mirrors edge

    • @miltosser6799
      @miltosser6799 Před 4 lety +3

      half life alyx as well

    • @Skyflairl2p
      @Skyflairl2p Před 4 lety +34

      @@magnusm4 damn, the edge

  • @rorytait5640
    @rorytait5640 Před 4 lety +21

    Remember the old intro. I used to jam to it everytime. Great vids. Its because of you I got into programming and making games. thx and keep up the amazing work.

  • @MicMan2710
    @MicMan2710 Před 4 lety +4

    It seems like this is the only channel capable of teaching unity in a simple way. Other channels always over simplify or over complicate things. And so many of them have bad quality and bad accents. Awesome channel!

  • @natalyasparrow6748
    @natalyasparrow6748 Před 4 lety +7

    Thanks for the tip on the ebook! I really needed something like this.
    Your videos have really opened up the world for me, because I always wanted to do game development but didn't think I could ever grasp the skills needed to make anything more than mods. That all changed when I found your channel. So again, thank you so much for all that you do!

  • @sundarakrishnann8242
    @sundarakrishnann8242 Před 3 lety +4

    An awesome teacher, I just remember your last video right now while seeing this video, I really miss your videos Brackeys...Please comeback...

    • @c1oudsky
      @c1oudsky Před 3 lety

      missing someone could sound nuce, but why ask to come back
      imagine you said goodbye to some people and moved on through your life with a smile cause you had other things you felt excited to go towards, but then someone reaches you and asks you to comeback? I feel like that would feel a bit off to ya, like you know what makes you happy but someone asks you to come back to something you got over

  • @bunnyviking7008
    @bunnyviking7008 Před 4 lety +4

    Good video. I was literally trying to figure out light probes this week as i knew they made the lighting more performant but the unity docs tell you how to place them, but not really what they do in detail. I love that your videos explain _why_ you're doing something, not just _how_ to do something.

  • @MythicLegionDev
    @MythicLegionDev Před 4 lety +1

    Thanks for the great video Brackeys! I didn't even now about light probes before this.

  • @Whatsittoy
    @Whatsittoy Před rokem

    I was struggling with the Unity tutorial on lighting at the light probe section. They linked to this video for good reason- totally cleared up my misunderstanding of how light probes worked and how to set them up. Fixing my scene was cake after watching this, thanks! The bit about the light probes themselves showing the light at their position is very nice for debugging your light probe setup, and using a white ball or cube too.

  • @simulify8726
    @simulify8726 Před 4 lety +10

    I used Unity for a week and than switched to Unreal. Now before you read further, it's my opinion for the work I am doing. I have to say that even though unreal is a heavier engine than unity, the features it gaves you are more than that of Unity. I was able to prototype an FPS game in just 2 days with Blueprints. However, I liked Unity's coding system a bit more than Unreal's.
    Unity Pros:
    1)C# easy to learn
    2)Great for mobile game development
    3)Supports multiple platforms
    4)HUGE online community
    5)Ease of Use
    6)2d is supported and is very powerful
    7)Shaders,VFX, and animations are node based but VFX and Shader graph still under development
    8)Ray tracing support
    9)Assets Store
    Cons:
    1)Dark theme is only available for pro version
    2)UI is a bit old (fixed in 2019.3)
    3)Most new features incomplete or under experiment.
    4)No source code available
    5) Performance issues
    Unreal Pros:
    1) Blueprints scripting
    2) Graphical quality is very amazing
    3)Can develop games for multiple platforms
    4)Node based Materials
    5)Node based Animations
    6) Sample game Templates are available inside engine
    7)Ray tracing support
    8)QUIXEL'S MEGASCANS Library is free for all Unreal users giving you access to over 11200+ PBR with everyday new meshes and textures, photogrammetric meshes and textures. You can also use Textures.one as alternative.
    9)Good tutorials
    Cons:
    1)Project build files sizes are huge
    2) It can take a week or so to learn the UI but gives you flexibility
    3)Epic takes 5% of revenue if a game exceeds 3000$ USD
    4)Not suitable for running on low end machines
    5)2d support totally abandoned
    6) Tutorials not in abundance like unity

    • @desmondcayce
      @desmondcayce Před 4 lety +1

      I feel like this was a very balanced comment, and honestly, as someone who uses Unity you should use whatever engine you want that does the job

    • @lemax2980
      @lemax2980 Před 4 lety +1

      Btw, dark theme is free now🤓

  • @andr3wdr0n3
    @andr3wdr0n3 Před 4 lety +242

    Wait, that non static object casts shadow being in shadow!

    • @riccardomariotti3863
      @riccardomariotti3863 Před 4 lety +27

      I was going to comment the same thing. It really bugs me cause it's not realistic and if you notice it once you'll see it everywhere. Anyone got a solution?
      (Great video as always anyways)

    • @gower1973
      @gower1973 Před 4 lety +21

      @@riccardomariotti3863 Yeh its called raytracing, all this other stuff is just fake tricks

    • @andr3wdr0n3
      @andr3wdr0n3 Před 4 lety +24

      @@gower1973 realtime shadows solves that, but its "expensive calculations"

    • @profande
      @profande Před 4 lety +5

      @@andr3wdr0n3 yeah it's incredibly expensive cause it's raytraced
      edit: was mega wrong l0l. Read comment below

    • @GugureSux
      @GugureSux Před 4 lety +49

      No, this has nothing to do with raytracing. Simple Deferred-shading projection shadows are old tech, and quite "cheap" to run this day and age.
      Some professional games mix static shadow-maps and dynamic shadows, culling latter away at the distance. Some go a step beyond and use more complex algorithms to fade dynamic shadows in/out as they move within the static shadow-map, showing the projected shadows only when on a well-lit area.
      Obviously these can cause other issues if your scene has changing lighting conditions (ie. day/night cycle), so many games just cull out projected shadows and leave only the per-pixel shading on the 3D models intact.

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

    Oh wow, yeah, I expected to have to type settings into each individual probe. This seems like a super easy way to really improve the feel of my games! Thank you!

  • @JoshuaAnthonyYT
    @JoshuaAnthonyYT Před 4 lety +1

    Brackeys, I'm making a game in a duo team in which I do all of the programming for a national competition, and I just want you to know it would be impossible without your videos

  • @dremovremen1764
    @dremovremen1764 Před rokem +2

    I guess a lot of things have changed over these years? I didn't add any additional probes except for the basic 8, but my sphere still adequately reacted to shadow/light blue/red transitioning.

  • @shadmansudipto7287
    @shadmansudipto7287 Před 4 lety

    I just learned this yesterday and it was hard with not many good tutorials, and you come up with one today.

  • @123Billygoatman123
    @123Billygoatman123 Před 4 lety +1

    Super concise! Proper lighting has always intimidated me, but your lighting tutorials help a lot!

  • @ZOMBIEBUST3R
    @ZOMBIEBUST3R Před 4 lety +1

    I love the timing in your videos. I was just starting playing around with lighting since I've always done 2D or real time stuff. As soon as I opened youtube to find a video on how to mix baked lighting with dynamic objects you appear on my recommended hahahhaha. This has happened a couple times already XD
    10 out of 10, good mindreader.

  • @ThomasChen-ur2gt
    @ThomasChen-ur2gt Před 3 lety +3

    We miss you Brackeys

  • @emeraldmation7019
    @emeraldmation7019 Před 4 lety +44

    Can you do a grappling hook tutorial please

  • @DemersCreations
    @DemersCreations Před rokem +6

    If the probes don't show up in scene-view you need to increase the 3D icon scale in the Gizmo dropdown.

  • @aggressivemastery
    @aggressivemastery Před 4 lety

    THANK YOU BRACKEYS !!!
    I've been having a problem with Amplify Imposter Shader, throwing the most screwed up and flickering self shadows. I had no light probes, but had my material set to blend with light probes(lazy to keep deselected that.) So it was blending at random between black of no light probes and the albedo texture. This tied in that all together for me this morning, and now it looks to be gone.
    This is a huge relief.
    Thank you, LOL
    Micah

  • @eljerav6897
    @eljerav6897 Před 2 lety

    the ebook link is still working :D Great video and explanation, thank!

  • @benmeister
    @benmeister Před 4 lety

    I really needed this. You do such good work explaining all the features in short fun videos.

  • @techtycho4752
    @techtycho4752 Před 3 lety

    Thanks, I always wondered what is light probes until I watched this awesome video!

  • @brandonfarfan1978
    @brandonfarfan1978 Před 3 lety

    As I was enjoying the lesson, it ended so soon. Thanks for this light probes lesson brackeys.👍

  • @MrFunkaliciouss
    @MrFunkaliciouss Před 4 lety

    At first I didnt know how light probes worked but this helps, thanks brackeys

  • @raque5423
    @raque5423 Před 4 lety +1

    Cool and usefull. The quality of the video is high and very pleasant for eyes. Thanks to everyone in your team:)

  • @srmango1727
    @srmango1727 Před 4 lety +1

    Got the e-book. This is gonna be very usefil. Thanks for telling us

  • @damsen978
    @damsen978 Před 4 lety +1

    It would be absolutely fantastic if you make a video showing how to do a proper server browser, using filters and what not, all for online multiplayer games in Unity.

  • @____---__________--------_____

    Dude you're like a legend in my dev classes

  • @ethanrushbrook3314
    @ethanrushbrook3314 Před 4 lety

    Brackeys videos are literally perfect. Why do people dislike?

  • @blastoffproductionsgames9613

    Thank you so much, I was terrified to use lightprobes before, now I know what they actually are now lol!

  • @brandonhohn245
    @brandonhohn245 Před 4 lety

    THANK YOU, I was just getting into learning about lighting and was watching the older videos!

  • @justgamesin7281
    @justgamesin7281 Před 4 lety +90

    This seems realistic until you notice that the shadow fades onto the sphere. So standing on the shadow line, means you have a lighter shadow, not a half.

    • @primedialga
      @primedialga Před 4 lety +3

      or the light red taint is also on the upper half of the sphere...

    • @Icewind007
      @Icewind007 Před 4 lety +8

      It's a good compromise to real-time lighting.

    • @bunnyviking7008
      @bunnyviking7008 Před 4 lety +3

      I mean, do you care while you're moving around in a game ? If you're making a pure simulation for other purposes you can use straight realtime lighting and deal with the performance cost, it's not an either/or situation... you can even mix baked, mixed and realtime lighting in the same scene.

    • @clonkex
      @clonkex Před 4 lety

      Well of course. It's not magic. This is how lots of games handle lighting on dynamic objects and it's an excellent compromise that gives pretty nice results with extremely low run-time cost.

    • @justgamesin7281
      @justgamesin7281 Před 4 lety +4

      I think the best solution for this problem is rendering the light around you in real-time and in the distance baked. I think that that’s how lighting works in mirrors edge. Which is still looking great 12 years later.

  • @Oxmond
    @Oxmond Před 4 lety +1

    The ebook is AWESOME!!! 🤓❤️❤️❤️

    • @Oxmond
      @Oxmond Před 4 lety +1

      And great tutorial Brackeys! 👍

  • @werti4894
    @werti4894 Před 4 lety +38

    cool feature and all, but the tools for it are non-existent, which is a big problem for unity. The tools just aren't great. Try placing these light probes all over the place in a huge complex map with varying terrain. Thankfully the community has made tools to fix unity's problem. Hopefully unity actually adds a tool for light probe placement in the future.
    Also for anyone doing additive scene loading then currently light probes won't work with that setup. Only light probes from the latest loaded scene will be active.

    • @vystorm
      @vystorm Před 4 lety

      Which tools are you referring to? I want

    • @werti4894
      @werti4894 Před 4 lety +1

      @@vystorm it was on a forum post about light probes or workflow feedback, I can't find it currently but I will let you know if I do.
      it's a tool where you place a volume and it fills it with lightprobes, also allowing the check if each probe is on geometry and discard the ones inside geometry.

    • @Skyflairl2p
      @Skyflairl2p Před 4 lety +1

      @@vystorm Search up magic light probes on the asset store if you havent already found something, its really amazing!

  • @Wayloz
    @Wayloz Před rokem +2

    I miss you Brackey : (

  • @testonedev
    @testonedev Před 4 lety

    I feel like Brackeys is spying on me... whenever I stumble over a Unity issue, just one week later Brackeys makes a video about it. Happened already like 10 times... Just yesterday I was checking out those light probes and felt "ah, maybe another day"... Much appreciated.

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

    Please make a video about perfecting the baking. The sphere is casting shadows while in the shadow and the lighting transitions like a smooth gradient when going from shadow to light or vice-versa. At 7:59, the sharp line between shadow and light should be visible on the object too.

  • @sylvainatoz2045
    @sylvainatoz2045 Před 4 lety

    Thanks a lot. I really taught it was very complicated. Awesome.

  • @heyyounotyouyou3761
    @heyyounotyouyou3761 Před 4 lety +1

    Very close to a million subs

  • @PlayerOne360
    @PlayerOne360 Před 4 lety

    Another great tutorial. Thank you

  • @koyomojo
    @koyomojo Před 4 lety +3

    Thanks Brackeys ! 😌
    Could you make a tutorial on a rhythm based game and principles of beat detection in unity please? 🙏

    • @pxltr
      @pxltr Před 4 lety

      I need it so much ( > -

    • @gabrielcoleman3267
      @gabrielcoleman3267 Před 4 lety

      I recommend checking out this Tutorial series czcams.com/video/5pmoP1ZOoNs/video.html
      It starts with creating an audio visualizer, and later gets into syncing animations with Beats per minute. Probably will find what you need here.

  • @matrixcode2621
    @matrixcode2621 Před 9 měsíci

    miss u brackeys plz come back

  • @marcinziajkowski3870
    @marcinziajkowski3870 Před rokem +1

    Brackeys when will you be back?
    I still have hope for your glorious comeback,

  • @mitopaler5574
    @mitopaler5574 Před 4 lety

    very informative good starting point!!!!!

  • @gammingchampion5394
    @gammingchampion5394 Před 4 lety

    You are much experienced in this line

  • @siddharthtrivedi3322
    @siddharthtrivedi3322 Před 4 lety +3

    Amazing video and I really like this topic to cover :)
    One question - after implementing light probes, do we required Directional Light within the scene?
    I am asking this question because we baked light data.

  • @ondrejeder8816
    @ondrejeder8816 Před rokem

    Thanks for this, great short and simplem video explaining the concept :-)

  • @rajendraumrao9674
    @rajendraumrao9674 Před 4 lety +1

    Very close to 1million subs

  • @IsTheRealKaz
    @IsTheRealKaz Před 4 lety

    1M subs!! Congratulations!!!!!

  • @ThirteeNov
    @ThirteeNov Před 4 lety

    Very nice tutorial presentation

  • @DIGITALMEAT
    @DIGITALMEAT Před 2 lety

    Why did you checkmark your directional light as static? I thought that was only necessary for lightmapped objects no?

  • @Bruce.B
    @Bruce.B Před 4 lety +1

    Looks nice. But is it possible to avoid projecting object shadows on baked shadows? Maybe by disabling projection when shadow prop detected.

  • @songwengang755
    @songwengang755 Před 2 lety

    What a nice tutorial as always!

  • @Xgamesvidoes
    @Xgamesvidoes Před 3 lety +1

    Ow gosh!
    That is going to be a shit thon of work to polish my games when I am nearly done! XD
    Imagine making a games where every level got like 15-25 rooms that need to be baked and manually been probed! XD
    Great tutorial!

  • @huberthuppe6269
    @huberthuppe6269 Před 4 lety +3

    How can i make a dark basement? I make a house, and if go in the basement i need it complete dark, how can i do this?

  • @LittleMikeStarCraft
    @LittleMikeStarCraft Před 4 lety

    Glad you can do this; hope you making actual money, and not just selling out for no reason.

  • @lukass1604
    @lukass1604 Před 4 lety +1

    Can u please show how to build pre rendered games like clash of clans?^^
    Thanks

  • @magnusm4
    @magnusm4 Před 4 lety

    Light Probes, helps high quality visuals stay performant.
    Just another tool alongside Occlusion Culling and LoD to help hobbyists or average developers get more performance in larger games or more visually demanding games.

  • @Maxime66410
    @Maxime66410 Před rokem +1

    Unity 2019.4.31f1 you can't select point of light probes.
    Even if the option to modify and activate.

  • @thomaspasieka1311
    @thomaspasieka1311 Před 4 lety +1

    Unfortunately Unity's Light Probes are a pain to use if you have large scenes (no automatic placement). Also, they are fairly inaccurate (as they don't use masks) and not as cheap as you may think in larger scenes. Unity's Lightprobes are OK to use in smaller scenes and projects of course.

  • @khybot
    @khybot Před 3 lety

    good explanation. thank you.

  • @SorcererStudios
    @SorcererStudios Před 4 lety

    You came just at the right time!

  • @siddharthtrivedi3322
    @siddharthtrivedi3322 Před 4 lety

    Light probes only become useful when you bake the light? Not when we use only regular lights
    Please share your thought regarding this...

  • @Gnurklesquimp
    @Gnurklesquimp Před 4 lety +1

    Hey Brackeys, I may need to look through your videos better, but I've been thinking abouta top-down game with guns and jumps etc. that also interact on (Maybe pseudo-) vertical layers. I say pseudo cause old Zelda and Pokemon were 2d with (Sometimes one-way) collisions that create the illusion of verticality etc.
    I want it to be a very systemic game with blocks on grid (Think Axiom Verge) twin-stick game, but was wondering how ''vertical'' aim and arcing projectiles etc. would work. Even in the pseudo 3d Zelda's you could throw free-moving bombs over ledges that proportionately adjust range over +/- height, for example.

  • @houssam3009
    @houssam3009 Před 3 lety

    now that is what you call a true tutorial

  • @federickpabalate3606
    @federickpabalate3606 Před 4 lety

    Hey bro do a tutorial for asset bundle i hope you can make it. Thanks for having you bro stay healthy and keep motivate others about game development :)

  • @JoaoNeto-up8zi
    @JoaoNeto-up8zi Před 4 lety

    Finally new Brackeys!

  • @santiagobryan1
    @santiagobryan1 Před 4 lety

    I was thinking about lighting and light probes just before the video. The timing is scary.

    • @d.l.7416
      @d.l.7416 Před 4 lety

      well statistically . . .

  • @pissfiss
    @pissfiss Před 4 lety +1

    how to get white cubes like in the video
    it always turns grey even if the material is white

  • @ViralVibesReal
    @ViralVibesReal Před 4 lety +1

    Dani's favorite channel!

  • @biocronic2986
    @biocronic2986 Před 4 měsíci

    Very good video!

  • @mixture9445
    @mixture9445 Před 4 lety

    Hello Brackeys
    Love your videos

  • @ACAPULCO86
    @ACAPULCO86 Před 11 měsíci

    you ROCK thanks!

  • @bugcri4747
    @bugcri4747 Před 4 lety

    amazing!beautiful!

  • @santiagojuarez1289
    @santiagojuarez1289 Před 3 lety

    Nice vid, keep it up :)

  • @pccentre1702
    @pccentre1702 Před 4 lety

    Please make a video on postprocessing

  • @realkorgo
    @realkorgo Před 2 lety

    Great video!

  • @vicpitic2580
    @vicpitic2580 Před 4 lety +1

    Nice video

  • @grindyn
    @grindyn Před rokem

    4:00 That's such a nice loaf of bread!

  • @NifarisRed
    @NifarisRed Před 4 lety

    can you attach a probe to an object say a barrel save it as a prefab, then every time I place that barrel the probe will be there, instead of making each sean by hand?

  • @spaceyd4635
    @spaceyd4635 Před 2 lety

    nice portal reference

  • @itzmonstrosalt
    @itzmonstrosalt Před měsícem

    Will this work if I have it underground with lights spread out periodically around the cave system?

  • @pchris
    @pchris Před 4 lety

    you can actually open the lighting window faster by just clicking that percentage bar in the bottom right at the beginning of the video.

  • @Alex-mq7kt
    @Alex-mq7kt Před 4 lety

    This tutorial is LIT.
    I am sorry, but i needed to do that

  • @lejocarry
    @lejocarry Před 2 lety

    That's too powerful :D ♥

  • @hadi19851985
    @hadi19851985 Před 4 lety +1

    hey there brackeys,
    tnx for your great tuts
    can you make a video explaining "behaviour tree" and "vfxController" in 2DGameKit of Unity?
    really having a hard time figuring out them!(and i suppose nobody really haven't talked about it, at least in youtube and yes i googled a lot!!)

  • @tamassallay32
    @tamassallay32 Před 4 lety

    Is it possible to take the free book without company only to learn? (company is a required field)

  • @PRodi_
    @PRodi_ Před 4 lety +1

    How much performance this operation consume???

  • @ALIPAKKHOO
    @ALIPAKKHOO Před 4 lety

    Hi. Thank you for your tutorials.
    Please make tutorial about AssetBundle.

  • @mitrodex2
    @mitrodex2 Před 4 lety +1

    i have a problem that is not related to this Video. I need to pause my c# script in order to give an object enough time to rescale. But by using the System.Threading.Thread.Sleep() method all threads stop and therefor also the rescaling stops. Can anyone help me?

    • @JavaJack59
      @JavaJack59 Před 4 lety

      stackoverflow.com/questions/12932306/how-does-startcoroutine-yield-return-pattern-really-work-in-unity

  • @elgunlee
    @elgunlee Před 4 lety +1

    So light probes are lossy compression of real-time ray tracing?

  • @MadpolygonDEV
    @MadpolygonDEV Před 4 lety

    Ue4 does probes placement automatically and also adjusts shadows in shadowed areas

  • @dimitricalleau9754
    @dimitricalleau9754 Před 4 lety

    Thank you

  • @okie1630
    @okie1630 Před 3 lety

    When i bake lighting i lose my specular.
    As far as I got is - "Baked Indirect" is the only way to bake lighting AND get specular that realtime lighting gives - is this true?

  • @sumoru.sagiru
    @sumoru.sagiru Před 2 lety

    I tried to use light probe, but I can't even select the probes even with 'edit light probes' enable, it keep selecting objects from the background instead of the probes. Thus I was unable to edit it.

  • @oldmelancholic961
    @oldmelancholic961 Před rokem

    thank u bro!

  • @deliciousfewd
    @deliciousfewd Před 4 lety

    What was with the weird break on the shadow as it approached the blue side shadow?

  • @SincerestSawa
    @SincerestSawa Před rokem

    I have some point lights in my scene that seem to flicker when looking away or back at the light, wondering if light probe will fix this or if its something else, i tried soley baked and mixxed lighting