Lighting tutorial: 4 techniques to light environments in Unity | Unite 2022

  Рет қаралды 106,436

Unity

Unity

Күн бұрын

Step into the famous Sponza Atrium to see how to beautifully light an environment from scratch using a mix of baked and real-time techniques. Pierre Yves will showcase the GPU Lightmapper, the new Probe Volume system, ray tracing, and path tracing.
00:06 Introduction
01:18 Speaker
01:40 Volume system
02:47 HDRI sky setup
04:16 Direct lighting & shadowing
06:38 Lightmaps
08:33 Reflection probes
10:41 Camera exposure
13:57 Light probes
15:35 Probe volumes
17:50 Lightmaps vs Probe volumes
20:51 Ray tracing
22:05 Ray traced reflections
24:54 Ray traced global illumination
26:38 Path tracing
28:24 Summary & comparison
#tutorial #lightingtutorial

Пікірлер: 129
@MadpolygonDEV
@MadpolygonDEV 4 ай бұрын
Unity needs more videos like these. Pleasent structure, no unnecessary group chat talk, just 30 minutes of full knowledge and reference for future projects…
@ian_snyder
@ian_snyder Жыл бұрын
Pierre is so insanely knowledgable and presents information so clearly -- we need more from Pierre on here, Unity! 💪
@ZiFX
@ZiFX Жыл бұрын
Pierre is my favorite person in the Unity dev team.
@myelinsheathxd
@myelinsheathxd Жыл бұрын
mixing baked lighitng, automatic probes and RTX is awesome! This is what I have been waiting for!
@sherazAsghar
@sherazAsghar Жыл бұрын
I am a TA working at Unity ... I never miss Pierre's presentation ... keep up the good work!!!!
@TReXxYT
@TReXxYT Жыл бұрын
i could watch this man talk lighting for days. what a fantastic presenter!
@erz3030
@erz3030 10 ай бұрын
This was excellent!! We need much more presentations like this, very well done
@peterquill726
@peterquill726 Жыл бұрын
I always love content from Pierre 👌👌👌
@krishnansubramoni7801
@krishnansubramoni7801 Жыл бұрын
This is one of the best Unity tutorial videos I've seen ❤
@MatheusLB2009
@MatheusLB2009 Жыл бұрын
1:27 Casually mentions he worked in the Crysis trilogy, GTA V and RDR2. I'm speechless
@eaglenebula2172
@eaglenebula2172 Жыл бұрын
Great stuff. The way this guy presented all this stuff is the definition of professionalism.
@slick3d392
@slick3d392 Жыл бұрын
Excellent presentation. Thank you.
@jonathanbisher
@jonathanbisher Жыл бұрын
Your presentations are the best Pierre, please keep doing them.
@LtdJorge
@LtdJorge Жыл бұрын
Another Lighting banger from Pierre. Nice!
@MrBurnss1
@MrBurnss1 Жыл бұрын
Amazing tutorial, concise and clear.
@GameDev1
@GameDev1 Жыл бұрын
Excellent tutorial, thank you very much!
@SeedMesh
@SeedMesh Жыл бұрын
Amazing content! Really thanks 👍
@KaanErayAKAY
@KaanErayAKAY Жыл бұрын
Great presentation. Thank you!
@KarlooAudi
@KarlooAudi Жыл бұрын
Nice tutorial, learned few things after using unity for more than 5 years.
@antonkobziev405
@antonkobziev405 Жыл бұрын
Thanks for this video!
@AmitGinniPatpatia
@AmitGinniPatpatia Жыл бұрын
Great video. Thanks for sharing.
@R4v3nB14ck
@R4v3nB14ck 7 ай бұрын
I'm in love with this guy
@AlqueMeteor
@AlqueMeteor Ай бұрын
Thank you Master Pierre!
@The96th
@The96th Жыл бұрын
fantastic presentation, thank you
@asntech4014
@asntech4014 Жыл бұрын
great presentation!
@thFaust
@thFaust Жыл бұрын
Great presentation. Even though I knew most of those things, it is nice to see them presented in such a clear and elegant manner!
@gakebagiannama4401
@gakebagiannama4401 Жыл бұрын
its so clear to follow the presentation. even I am not a lighting artist. great tutor!
@Tymon0000
@Tymon0000 Жыл бұрын
Great presentation. :)
@marct9221
@marct9221 2 ай бұрын
Thanks Pierre, great intro to unity lighting for me
@bearPig9195
@bearPig9195 Жыл бұрын
Good job and nice presentation, thanks you
@jumpjumpdiegaming
@jumpjumpdiegaming Жыл бұрын
Great video. make more walkthroughs like this.
@N0nManfiold99
@N0nManfiold99 Жыл бұрын
Even though Pierre is so concise with teaching me this, it's still a lot to take in with all the terminology. Great tutorial! Will have to rewatch a few times and refer back to this.
@jazunmunro8106
@jazunmunro8106 10 ай бұрын
Thank you for the education
@erikals
@erikals Жыл бұрын
Mighty Nice ❤️
@KRGraphicsCG
@KRGraphicsCG Жыл бұрын
It would be nice to have crisp shadows on directional lights, but yes, we need more quality videos from you guys more often
@pierre-unity
@pierre-unity Жыл бұрын
You can get crisp shadows in HDRP if you wish to, by reducing the angular diameter on the sunlight, and increasing the shadow resolution (while using either high quality filtering, or ray traced shadows). However, "crisp" shadows are usually not realistic at all. Shadow blurriness increases with the distance to the shadow caster, so be careful what you wish for...
@KRGraphicsCG
@KRGraphicsCG Жыл бұрын
@@pierre-unity after thinking it over, I think the shadow map is fine. I currently keep the resolution at about 2k just for performance
@igorthelight
@igorthelight Жыл бұрын
@@KRGraphicsCG Look at "PCSS" technique from Nvidia ;-)
@fauziahurahman
@fauziahurahman Жыл бұрын
Good Tutorial 👍
@JonelKingas
@JonelKingas 8 ай бұрын
I was actually wondering for while how to make rooms dark while outside bright basically how real life or games work, now i know, thanks.
@Jake-hn8hl
@Jake-hn8hl Жыл бұрын
This is an incredible tutorial, thank you Pierre! Is there any possibility you wuold consider doing the same tutorial with URP? There are so many layers to unpack here, and even after watching multiple other URP lighting tutorials I still have so many questions.
@mohamedhamed3572
@mohamedhamed3572 Жыл бұрын
thank you
@UTFapollomarine7409
@UTFapollomarine7409 Жыл бұрын
thanks boss
@TanukiDigital
@TanukiDigital Жыл бұрын
That path-tracing is such a tease. :D I can't wait for it to be actual realtime.
@Thomason1005
@Thomason1005 Жыл бұрын
very nice roundup of the different options! weve currently used lightmaps, but the automatic light probes seem to be a viable alternative, with the better reflections. will be interesting to see them in urp
@spacekusa
@spacekusa Ай бұрын
More videos like these!
@vokardarangerl9840
@vokardarangerl9840 Жыл бұрын
Noice !
@siavashaliyari8567
@siavashaliyari8567 Жыл бұрын
the probe volume is such a leap !!!!
@kamranzaheer8026
@kamranzaheer8026 Жыл бұрын
Its Really Good We need More Videos So Kindly Make Playlist On Photorealisam We Will be very Thanks Full to You
@MrDanko90
@MrDanko90 Жыл бұрын
Спасибо
@vokardarangerl9840
@vokardarangerl9840 Жыл бұрын
Now I can create my water yayyy
@oguzkaancomoglu
@oguzkaancomoglu Жыл бұрын
It was really nice and descriptive, I hope you will make videos like this again. By the way, will the next nexgen be "path tracing"?
@igorthelight
@igorthelight Жыл бұрын
"By the way, will the next nexgen be "path tracing"?" - absolutely!
@unitydeveloper8703
@unitydeveloper8703 Жыл бұрын
It's great when all this functionality can be used in unity. However, I would like to hear a solution to all lighting problems for large worlds, and not a separate location.
@bitmammothOG
@bitmammothOG Жыл бұрын
Can we please get one on a fully enclosed indoor env?
@pierre-unity
@pierre-unity Жыл бұрын
You can use the HDRP Scene Sample that you will find in the Unity Hub. It's an environment that contains multiple rooms, from fully affected by the sun to fully enclosed. The concepts are exactly the same though.
@XRelabs
@XRelabs Жыл бұрын
This video is amazingly informative, right to the point and precise, thank you Pierre, thank you UNITY 🥰🫡
@rafarodriguez4765
@rafarodriguez4765 Жыл бұрын
High level Master Class. This guy could also be the next Terminator
@user-qy6im1lm6n
@user-qy6im1lm6n Жыл бұрын
Maybe Agent Smith in Matrix
@igorthelight
@igorthelight Жыл бұрын
@@user-qy6im1lm6n True! xD
@Hazen_Muhammad
@Hazen_Muhammad Жыл бұрын
How to tag the corresponden meshes to be lit by lightmaps or with adaptive probe volume? 18:46
@Hazen_Muhammad
@Hazen_Muhammad Жыл бұрын
I try to do this but find out my scene always baking the lightmpat, even when i press the bake button in the probe volume menu.. that's why mine took very long time to bake, didn't find the tutorial how to bake with probe volume only. And after the bake complete, i try to add sphere mesh with hdrp/lit material, then try to moving it around to try if the APV working, but the sphere still look flat all over the room not affected with all the probes, or simply it's just my wrong step.
@mikhailreshetnikov3236
@mikhailreshetnikov3236 7 ай бұрын
How can someone deliver such vast ammounts of useful information while looking exactly like a movie villain who was behind the scenes all along and now you've walked right into his trap
@divyansh2890
@divyansh2890 Жыл бұрын
So for 3D mobile games, Would Baked lightmaps be a good choice?
@Inferryu
@Inferryu Жыл бұрын
Since they are pre-computed, backed lightmaps are less resource intensive than any other option, except for maybe vertex colors, but if you don't need something more complex, lightmaps would be the better choice, regardless of the platform your game is gonna be on.
@igorthelight
@igorthelight Жыл бұрын
@@Inferryu Yep! Just don't change your lights during the gameplay ;-)
@fabioxperuggia
@fabioxperuggia 8 ай бұрын
"leak reduction mode" is not showing for me. any help?
@nobody_there_
@nobody_there_ 3 ай бұрын
You even dont explain how you put the "scene settings" in the scene. There's no in mine, because i'm under URP ?
@arravolleyball
@arravolleyball Жыл бұрын
Does anyone know why my bakes look flat with no specularity?
@DaManLebbi
@DaManLebbi Жыл бұрын
Do I have to bake a scene before adding the adaptive probes or does it render realtime?
@pierre-unity
@pierre-unity Жыл бұрын
The irradiance is captured in editor, not at runtime. First you place a Probe Volume object in the scene around your objects, and then bake it. See 18:19.
@DaManLebbi
@DaManLebbi Жыл бұрын
@@pierre-unity Alright, Thanks. I followed your instructions for the probe volumes, but every time I bake my scene I get an error message saying; "Assertion failed on expression: 'm_PendingLightmapHashes.size() == m_LightmapCompositeHashes.size()'". How do I fix this?
@white_cloth
@white_cloth 10 ай бұрын
1:40 Volume system: Post-processing volumes 3:00 Volume system: Sky 4:48 Volume system: Shadows 6:03 Volume system: Indirect lighting control 6:38 Global illumination: baked lightmaps and reflection probes 8:31 Reflection probes 10:40 Camera exposure
@mone9366
@mone9366 Жыл бұрын
Thank you for the tutorial. I read many of your posts on the Unity forum, giving useful tips and explanations. I tried many of them, unfortunately I could not achieve an acceptable transition between a bright exterior with dynamic directional light and a very dark interior lit with a dynamic point light. There is always an issue, either with the blending of indirect lighting, or that of the exposure, if the exposure blending is fixed, then interior light is too weak... Also the interior that look bright for the outside... I would love to see a tutorial on the subject in Unity, but I could not find any. Strangely, exterior/interior transition with dynamic lighting is a common use case in video games and achieved using other game engines. Is it something that can be achieved in Unity? Thanks
@containedhurricane
@containedhurricane Жыл бұрын
Could you please share the project files, so we can follow the tutorial from scratch?
@impheris
@impheris Жыл бұрын
i have the feeling that you wanted to use Sponza inspired by my recent attempt! jajaja Thanks Pierre, you are very helpful as always
@forasago
@forasago Жыл бұрын
"Probe volumes; HDRP (URP soon)" Will URP probe volumes come to Unity 2021 (LTS)?
@igorthelight
@igorthelight Жыл бұрын
LTS releases DO NOT get any new features. That's the while point of being an LTS version - only bugfixes...
@vast634
@vast634 2 ай бұрын
Using this building is fine for simulating interior levels, but not covering the different requirements for large open spaces that can appear in the same game world.
@leftyfourguns
@leftyfourguns Жыл бұрын
Is any of this applicable to URP?
@igorthelight
@igorthelight Жыл бұрын
Most of that - no.
@shikhermyv
@shikhermyv Жыл бұрын
URP will get probe volume in 2023.1
@kirillaguren4312
@kirillaguren4312 Жыл бұрын
Hello. Who can explain why a probe has a round shape?
@pierre-unity
@pierre-unity Жыл бұрын
You're probably referring to the gizmo itself (the probe itself has no concept of shape, except for its area of influence, such as "box" or "sphere"). You can test it for yourself in any game engine: it's much easier to have an idea of a surface's indirect diffuse and specular lighting with a sphere, because each point on the sphere points in a different direction, in theory, an infinite amount; whereas with a 6-faces cube, you only get 6 directions. Therefore, a well-tesselated sphere is a perfect object to visualize indirect lighting.
@kirillaguren4312
@kirillaguren4312 Жыл бұрын
@@pierre-unity thank you very much. It was very important for me =)
@daydreamer7571
@daydreamer7571 Жыл бұрын
Please make more videos for hdrp lighting
@zORg_alex
@zORg_alex Жыл бұрын
He'll yeah. Rendering in Unity.
@mikegoesnike
@mikegoesnike Жыл бұрын
is there somewhere to get the project?
@Grumbledookvid
@Grumbledookvid Жыл бұрын
OK... but how do I have a cave and an outdoor region operating at the same time with different lighting? The cave gets messed up with ambient light
@pierre-unity
@pierre-unity Жыл бұрын
The process is exactly the same as shown in the video. A cave simply requires its own reflection probes, and the lightmap or lightprobes will work fine as long as the caves are shadowed properly.
@ak-gi3eu
@ak-gi3eu Жыл бұрын
come on unity u can do it
@huajieyu9678
@huajieyu9678 Жыл бұрын
Hi If you would attach the model resources for downloading could be really really appreciated😍 I've tried the other resouces of Sponza but they are so diffrent from yours. Pls help
@pierre-unity
@pierre-unity Жыл бұрын
Hey, the Sponza assets are available on the last slide of the presentation.
@MinhNguyen-vl7jj
@MinhNguyen-vl7jj Жыл бұрын
Can some how Unity use ray traycing on APV and we got some Lumen alternative?
@maya_gameworks
@maya_gameworks Жыл бұрын
Where can I find the other 3 tutorials?
@irtezarahman5370
@irtezarahman5370 Жыл бұрын
However you have to bake lightmap then place adaptive probe volume. Not a fully dynamic system
@pierre-unity
@pierre-unity 11 ай бұрын
That's not correct, you do not require lightmaps to use the Probe Volume system.
@SkyIsTumbling
@SkyIsTumbling Жыл бұрын
now we just need real-time reflections that use the lighting probes, we've spent too long with dealing with reflection probes
@igorthelight
@igorthelight Жыл бұрын
RT reflections? ;-)
@Jsfilmz
@Jsfilmz Жыл бұрын
LMK if you need content creator for Unity. I want to explore unity for filmmaking
@irtezamasud1079
@irtezamasud1079 Жыл бұрын
you are using unity 2023 alpha. hope for the few upcoming feature
@trolledyou7032
@trolledyou7032 Жыл бұрын
Raytracing works only on NVidia, I assume.
@pierre-unity
@pierre-unity Жыл бұрын
No, it works with any GPU that supports ray tracing and DXR. This includes the latest AMD GPUs too.
@Joooooooooooosh
@Joooooooooooosh Жыл бұрын
I really wish VR could handle HDRP.
@dalienware668
@dalienware668 9 ай бұрын
I shouldve just skipped to the Pathtracing.
@windwalkerrangerdm
@windwalkerrangerdm 7 ай бұрын
You know what would be great? Artists using all real-time path-traced lights to achieve whatever visuals they want, and then an AI takes over and creates all the reflection probes so that the results are almost identical in terms of lighting, and game performance is rasterization level.
@makulVR
@makulVR Жыл бұрын
Since the release of Unity 5, it appears that little has changed in terms of lighting. Whether you have a Geforce 1070 or an RTX 4090, the best quality is still lightmapping.
@nobody_there_
@nobody_there_ 3 ай бұрын
Generate Lightmap UV's takes lot of time and no time bar is there:: feeling irritated here...
@crazyperson123
@crazyperson123 Жыл бұрын
alright
@hamidzamiri938
@hamidzamiri938 Жыл бұрын
i don't know! unreal engine 5 is open source but why unity isn't taking a look at the code of lumen and nanite? maybe they can come up with ideas and make some of there own systems.
@igorthelight
@igorthelight Жыл бұрын
That's a lot of code rewriting ;-)
@leonardoraele
@leonardoraele Жыл бұрын
I hate dealing with light in Unity, it's so complicated
@SnakeEngine
@SnakeEngine Жыл бұрын
Then switch to UE5 and have fun burning your pc :)
@Inferryu
@Inferryu Жыл бұрын
To think I would be getting tips for lithing a virtual environment from Agent Smith.
@anytorp
@anytorp Жыл бұрын
You look like the guy from matrix
@forasago
@forasago Жыл бұрын
Agent Smith / Huge Weaving, yes.
@stephenkentperez7705
@stephenkentperez7705 Жыл бұрын
Omg thought I was the only one who noticed
@user-hl4en3rb5i
@user-hl4en3rb5i 4 ай бұрын
Интересно, как это получается так, что на видео у них у всех выходит красивая картинка, а как сам открываешь проект и делаешь абсолютно тоже самое, копируя буквально каждый параметр, получается лютое говно?
@TheUncutAngel
@TheUncutAngel Жыл бұрын
meanwhile in unreal they use a light. I understand the importance of control, but this is....... beyond.
@henriquekuchiki9187
@henriquekuchiki9187 Жыл бұрын
Unity....evolve HDRP rendering...for PBR textures to use/max Real Time...they are still The Herct Human Digital quality...evolve to Archiviz Level
@xxAsad
@xxAsad Жыл бұрын
Still unity is far behind Unreal in terms of Realistic lightings
@altongames1787
@altongames1787 Жыл бұрын
ok...
@Andrew-tl9gk
@Andrew-tl9gk Жыл бұрын
What features does Unreal have that Unity doesnt? IMO the baked lighting looks fantastic. If you talk about Lumen: This is only available on highend machines with Raytracing cards, not available on Macs or any mobile and no one will ever release a game with that in the next 5-10 years due to hardware limitations.
@Azrael_Bathory
@Azrael_Bathory Жыл бұрын
It doesn't matter if unreal has better light rendering as of now.. Unreal doesn't make better games.. Competent game devs do. Doesn't need to be made in unreal to be good. I think most people that blow hot air up unreals ass, in most cases, don't have any real knowledge of game developing and just jump on the band wagon of an over-hyped system.
@novagames5719
@novagames5719 Жыл бұрын
Sigh 😓 don't think normal PC can take this
@igorthelight
@igorthelight Жыл бұрын
Lightmaps - easily! xD
@henriquekuchiki9187
@henriquekuchiki9187 Жыл бұрын
Unit support... hand-stomped XYZ skin textures... not everyone can afford... Fotogramteria... how you go about doing photogrammetry from an Ultra Realistic ORC
@raymk
@raymk Жыл бұрын
He starts with 0 in his presentation. Such a programmer move
Lighting & rendering tutorial for HDRP | Unite Now 2020
1:08:32
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 4,6 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 90 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 65 МЛН
How to use RAY TRACING in Unity 2021
15:35
UGuruz
Рет қаралды 50 М.
Echoes of the Deep - an Unreal Fish film
3:15
Anna Breakwell
Рет қаралды 16 М.
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 1,1 МЛН
7 Ways to Optimize your Unity Project with URP
11:18
Unity
Рет қаралды 203 М.
Unity Performance Tips: Draw Calls
4:24
Lofi Dev
Рет қаралды 182 М.
LIGHTING in Unity
16:13
Brackeys
Рет қаралды 1,2 МЛН
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 274 М.
Best 3D Terrain Generation Software
10:55
InspirationTuts
Рет қаралды 58 М.
Я ПОПАЛ В ЛОВУШКУ BRAWL STARS
31:34
Поззи
Рет қаралды 650 М.