 Hello and welcome this video is part of a series. I recommend watching the previous videos There's a link in the description to the full playlist and so far. We've created this basic little dune level Let's go ahead and play with laying so far. We haven't changed the lighting I think on any of our sectors here I mentioned in one video that you can select sector and change the light setting here You can make it brighter all the up to 255 and you can make it darker all the way down to zero Which you won't be able to see anything by default when you start off the 176 is the default leg and that's kind of the brightest I really go and I would do that outside. Obviously if you're inside you might want the levels to be a little bit darker So let's let's look into that a little bit Doom doesn't have you know in Games nowadays you have dynamic lighting where you put a light source and it will fade the light out further You go from it. Doom doesn't have that So but you can fake it pretty good so for example I'm in here and If I was to lower it you can see that this room is getting darker Now if you if you make the lighting in a room real dark and you're editing it might make a little hard to Edit that room when you're in your 3d mode You can hit L to disable the light so it's still set to that We'll still be a dark room if you start the game, but it turns the lights all the way up and hit L again I'll turn it back down to what you want, but it's gonna look kind of weird. Look how bright the very next sector so it goes straight from being bright to being dark and That doesn't work in real life. This light would fade over to that But again lighting doesn't work like that in Doom so we have to fake it So let's go ahead and set this room back to 176 so it's same brightness as the other rooms Let's go back into our map view I'm gonna use and I unselect everything make sure I'm in sector mode and I'm gonna select all these sectors So all these steps all the way up and what I'm gonna do is I want it to be darker as I go up these stairs so what I'm going to do is I'm going to have these selected. I'm going to lower the light Unselect. I'll probably unselect to lower the light unselect to Lower the light and select to lower the light unselect to it's gonna get pretty dark once you start getting under Yeah, 96 or so it starts getting pretty dark So 64 that's probably as dark as I would go and you can see now that it has faded now You can also see if you want to get more of an idea of what that looks like I mentioned in previously if you go up to view Sector render you can say lighting and it shows you that we're starting off bright And it's getting darker as you're going. Let's go ahead and save and test so control s control t And look up our tests and look it gets darker as we go And now it is very very dark in here now So you need to think about that. Do you have light sources? I didn't you know right here all our ceilings actually have light textures on them They don't really do anything, but you might want to use that as light source or let's use another example I'm going to create Another room over here another sector and in that sector I'm going to zoom in I'm going to hit t to go to things mode and I'm going to place an object down and then I come here to light source And I am going to put this basic little light that does not actually emit any light If I come over here to my 3d view we can see it there And uh different sprites have different ways they illuminate in the game For example, if I come up in this dark room And I shoot the room kind of flickers, but you can see that this Uh light is actually you can see it where if I had added in something else Let's add in something else just as an example over in this corner um We'll add in the core Maybe this little stump. Let's see how that renders out This might be a bad example There you can see that's dark. It's hard to see it knows this is a light source So the sprite itself is lit up, but around it is still dark so if you are Starting out you probably don't do this much, but as you develop your skills as a level editor you're going to want to Um make your lighting look more dynamic So what we can do here Is create sectors around this light So what i'm going to do is i'm just going to go like this and there's different techniques depending on what you're trying to do here In fact, let me have another line here Another line here and so what I can do now is I can choose these sectors And what i'm going to do is i'm going to go up up up Up and as you see each sector as I get closer to the light source is a little brighter now You can see that it looks like there's dynamic lighting even though there really isn't let me go into the actual doing game Because it does render it a little bit different in the game And you can definitely see You know each sector now if you really you can make really small sectors and adjust the lighting a little bit more level But there you go. You have some more dynamic lighting another way to go about doing that and again, this is all Artistic and up to you Let's say I was to add in a little sector here and lower my grid and add oops Things add a light source there Light source I'll add this another way to do is something like this And i'm not saying I am the best at doing this Let's go Now this is kind of awkward because we have two sectors here, but I will just line up as best I can Like so I'll also See this is So what I can do here is like this is this is kind of sloppy But what i'm going to do is i'm going to select all this I think I have everything selected. This is this is a very bad example But what I can do here is I can go brighter Unselect this and this Oh, see that wraps all the way around that's this is going to look weird the way i'm doing this I could definitely do let's let's let's forget this one and Create a whole new room Because it will look better oops Again, too. This is getting into details on lighting that as a beginner you may not want to spend your time in as you might be concerned about other things But i'm just showing you you can go real there are some people who are really good at doing this Actually, let's put this right here. It'll be easier now I'm going to go here here here Probably here here And we'll put our light source right there Now i'm going to select all these sectors And I will Raise the lighting a little bit in here Unselect that Let me raise it too. Oh, I missed one go back I unselected that to and select those Those and I might even make that one a little brighter. So let's go ahead and look at what that looks like in the game So our first example I went out like that going across but here I have the lighting going like this so it's like the light is shining out of this corner here So those are two different techniques. I've seen used that I use and I'm definitely not the best at that now another thing we want to talk about is Different sector types, which we're going to go more to and more into on another video Um, but it does apply to lighting. So I guess I'll throw in a little bit here at the end Um, you can choose a sector such as this one And it has different types so choose and there's not a whole lot when it comes to sector types But you have options of lights blinking randomly Lights flashing at 2 hertz 1 hertz you can have the lights flashing and giving you 20 damage As it goes on Lights oscillating. So they're slowly fading on and off on and off You can have them flashing at 1 hertz or 2 hertz, but in sync with each other And you can also have lights flickering so let's go ahead and Make that room that sector flicker and we'll make this one oscillate And if we save that we will go up into here And you can see the lights flickering But the brightest they will get is what you have them set to Uh, the oscillating it might be too dark. So let's go ahead and Take both those sectors and move the lighting up a bit Which is going to look weird because the stairs are going to be really dark But again when it comes to lighting that's a lot of So yeah, so you can see the main room here is flickering If we come up here, this is oscillating you can see it fading on and off Instead of flickering. So those are things you can play with it does look kind of weird to have the stairs Primarily dark with the rest But again now we're getting into artistic aspects of stuff. I'm telling you the the Techniques and functionality you have to be artistic on how you use these tools So that's lighting in a nutshell Thank you for watching visit films by chris.com. That's chris the k there's a link in the description And as always I hope that you have a great day