Lighting in Unreal Engine 5 for Beginners
0:00
今天我们要讨论3D中最被低估的一个方面,那就是光照。
Today we're talking about one of the most underrated aspects of 3D, and that is lighting.
0:05
熟悉我频道的朋友们知道,我的大多数虚幻引擎视频针对的是更高级的用户,所以我想稍微改变一下,讨论一下绝对初学者的光照。
Those of you familiar with my channel know that most of my Unreal Engine videos target the more advanced users, so I figured I would change it up a bit and talk about lighting for the absolute beginner.
0:16
如果你对光照或其工作原理一无所知,更不用说如何在虚幻引擎中让东西看起来好,这就是适合你的影片。
If you don't know anything about lighting or how it works, let alone how to get things looking good in Unreal Engine, this is the video for you.
0:25
为了明确,在本教程中,我们将使用UE5中的Lumen,采用完全动态的光照方法。
And just to be clear, in this tutorial we'll be using Lumen in UE5 with a fully dynamic lighting approach.
0:32
我们不会学习烘焙光照。所以我不打算再浪费时间在介绍上。
We will not be learning about baked lighting. So I'm not going to waste any more time with the intro.
0:37
让我们直接进入光照部分,在我告诉你我的赞助商之前。非常感谢CG Spectrum赞助这段视频。
Let's jump straight into lighting right after I tell you about my sponsor. So a big thank you to CG Spectrum for sponsoring this video.
0:43
CG Spectrum是一家全球排名靠前的培训提供商,提供实时3D、游戏开发、动画、视觉特效和数字绘画的专业在线课程。
CG Spectrum is a global top ranked training provider offering specialized online courses in real time 3D, game development, animation, VFX, and digital painting.
0:54
他们是虚幻授权培训中心和虚幻学术合作伙伴,他们的课程包括来自行业专业人士的个性化指导。
They're an Unreal Authorized Training Center and Unreal Academic Partner, and their courses include personalized mentorship from industry professionals.
1:01
我帮助开发了他们的实时3D技术和虚拟制作课程,我自己也兼职指导他们,这里有一些我自己学生的例子。
I helped develop their real-time 3D technical and virtual production course, I mentor their part-time myself, and here are a few examples from some of my own students.
1:10
所以如果你有兴趣在行业导师的帮助下学习虚幻引擎,请查看下面的链接或访问cgspectrum.com获取更多信息。
So if learning Unreal Engine with the help of an industry mentor is something you're interested in, do check out the link down below or visit cgspectrum.com for more info.
1:20
你将获得最实用和最新的知识、联系、技能和行业意识,游戏和电影行业的工作室都在招聘这些。
You'll get the most practical and up-to-date knowledge, connections, skills, and industry awareness that studios in both the games and film industry are hiring for.
1:30
再次感谢CG Spectrum赞助这段视频。现在让我们直接进入光照。
So thanks again to CG Spectrum for sponsoring this video. And now let's jump straight into lighting.
1:34
好吧,现在我们进入虚幻引擎,我们需要确保我们的项目设置正确,以确保一切按预期运行,获得最佳结果,并充分利用Lumen提供的功能。
Alright, so now that we're in Unreal, we need to make sure that our project settings are set up correctly to make sure that everything behaves as expected, to get the best possible results, and make the most of what Lumen has to offer.
1:48
所以我们要去上面的设置选项卡,点击项目设置,在搜索详细信息面板中,我们将搜索DirectX。
So we're going to go to the Settings tab up top here, click on Project Settings, and in the Search Details panel, we're going to search for DirectX.
1:57
我们需要确保我们的默认RHI设置为DirectX 12,并且DirectX 11和12 SM5已开启。
And we need to make sure that our default RHI is set to DirectX 12, and DirectX 11 and 12 SM5 is turned on.
2:06
接下来我们将向下滚动到这里的渲染选项卡,并在这里的Lumen部分向下滚动,我们需要确保我们有以下项目设置。
Next we're going to scroll down to the Rendering tab right here, and by scrolling down to the Lumen section right here, we need to make sure that we have the following project settings
2:17
正确设置。动态全局光照设置为Lumen。数组光照模式设置为表面缓存。
set up correctly. Dynamic global illumination set to lumen. Array lighting mode set to surface cache.
2:24
软件光线追踪模式设置为细节追踪。阴影图方法设置为虚拟阴影图beta。
Software ray tracing mode set to detail tracing. Shadow map method set to virtual shadow maps beta.
2:30
还有一件我喜欢开启的事情是支持硬件光线追踪。
And one more thing that I like to have turned on is support hardware ray tracing.
2:35
开启这个选项,并在可用时使用硬件光线追踪。
Turn this on and use hardware ray tracing when available.
2:39
请记住,硬件光线追踪设置只有在你有能力的GPU时才会有效。
Now keep in mind the hardware ray tracing settings are only going to work if you have a GPU that is capable
2:46
支持硬件光线追踪。所以任何Nvidia RTX显卡都可以正常工作。
of hardware ray tracing. So any of the Nvidia RTX cards will work just fine.
2:51
如果你没有能够进行光线追踪的GPU,不用担心。这不是世界末日。
If you don't have a GPU that can do ray tracing, don't worry. It's not the end of the world.
2:57
你仍然可以获得良好的结果,但我喜欢使用它,因为在许多情况下,光线追踪阴影看起来会好得多,稍后你会看到。
You're still going to be able to get good results, but I like to use it because in many cases, ray traced shadows will look much better as you're going to see a little bit later.
3:07
所以在这些项目设置更改后,你需要重启引擎,并且它将重新编译所有着色器。
So with these project settings changed, you're going to have to restart the engine and it's going to have to recompile all the shaders.
3:14
那么去给自己泡一杯咖啡,然后我们就准备开始了。所以我将把这个关闭。现在我们这里有一个空白场景。
So go make yourself a cup of coffee and then And we'll be ready to get started. So I'm going to X this out. And now we have a blank scene here.
3:20
我将向您展示在虚幻引擎5中可用的每种光源的所有信息。
And I'm going to show you everything you need to know about every light that is available in Unreal Engine 5.
3:26
为了创建我们的第一盏灯,我们需要去放置演员选项卡。
And in order to create our first light, we need to go to the place actors tab.
3:30
在这里的小灯图标中,您将看到所有可用灯光的列表。
And in the little lights icon here, you'll have a list of all the available lights.
3:35
如果您的用户界面看起来与我的有些不同,不用担心。您可以去窗口选项卡,加载布局。
If your UI looks a little bit different than mine, don't worry. You can go to the windows tab, load layout.
3:43
我使用的是UE4经典布局,因为我喜欢它的设置方式。对我来说,它工作得更好。
And I'm using the UE4 Classic layout just because I like the way that it is set up. To me, it works a little bit better.
3:50
如果您想跟着做,这是我使用的布局。
So if you want to follow along, this is the layout that I am using.
3:55
让我们从第一盏灯开始,那就是方向光。我将把它拖放到我的场景中。
So let's start off with the first light here, and that is the directional light. I'm going to drag and drop this into my scene here.
4:01
正如您所看到的,当我在这里旋转时,方向光确实如其名所示。
And as you can see, as I rotate around here, the directional light does what the name implies.
4:07
它的行为很像阳光、月光或任何一种非常定向的光源。
It behaves a lot like a sun or moonlight or any kind of light that is very directional in nature.
4:13
方向光通常用于外部环境,或者当您想让阳光透过窗户照射到内部环境时。
So directional lights are usually used for exterior environments or when you want to have sunlight shining through a window for interior environments.
4:22
现在,Lumen的一个很酷的地方是它开箱即用。
Now what's really cool about Lumen is that it just works out of the box.
4:26
正如您在这里看到的,我们有一些很好的间接光照亮了我们的角色,因为如果禁用Lumen,它实际上会变得完全黑暗。
And as you can see here, we've got some nice indirect lighting lighting up our character here because if Lumen was disabled, it would actually just be pure black like this.
4:36
多亏了Lumen,我们确实得到了些许美好的反射光。
thanks to Lumen we do get a little bit of that nice bounce
4:39
光线在地面上反弹,现在您可以选择。
lighting bouncing off the ground here now you can choose
4:42
每个光源的设置在右侧的详细信息面板中。
the settings of every single light in the details
4:46
右侧面板,这里我们有变换
panel on the right hand side here so here we've got the transform
4:49
选项卡,我们有移动性和光照设置
tab we've got the mobility and the light setting so
4:52
我们可以选择光的颜色,或者另外。
we can choose the intensity of the light like this we
4:56
您可以通过点击这个按钮选择颜色温度,并进行调整。
can choose the color of the light like so or alternatively
Only the first 5 minutes are free. Install the app or extension to keep watching.
DownloadRequest another language





