In this lesson video, we are going to add light sources to our robot scene and then render it. This is what we have so far after the modeling process and adding the materials. To preview the lighting in our scene, we should be in the rendered view mode. But before we add any light sources into our scene, we need to make sure that all of our reference objects, which are these objects do not show up when we do the final rendering. To do this easily, we can do it with the rendering checkbox of the collection. By default, the rendering check boxes are not visible.
To show them, we can click this button up here, and then turn this option that looks like a camera on we can see that by default, the ref collection has the rendered option turned on just like this to turn it off. And now the whole ref collection will not be visible in a final rendering. Next, let's focus on environment light. We can see that the universe human life is to do this because if we go to the world Properties panel, it only uses this solid gray color as the light source, we want to use an hdri file for the environment light. We've discussed this many times before, so you should already be familiar with the process. Click this small button, use the environment texture node.
It looks big. Now because we haven't assigned any hdri file, click the Open button. I have a special folder where I put all of the hdri files that I downloaded from hdri heaven.com. Let's pick this one because I kind of like the threes here which gives a nice variation of specular on the reflections. If you want to use the same hdri file that I use here, you can download it from hdri heaven.com. The file name is Bethnal Green entrance.
Okay, now we have a nice environment light but we actually Don't need to see the background. So go to the renderer Properties panel. In the film section, turn on the transparent option here. Next, we want to have subtle shadows on crevices or on surface intersections. For these, we can turn on the ambient occlusion option here. Next, turn on the screen space reflection.
Then we can use the bloom effects here to add glowing residual effects automatically on light emitting materials or on reflections where strong lights appear. Next, we want to add two lights. First is the key light and second is the backlight. Press Shift a and then to slide and then to area here. Basically, area light is a type of light source in Blender that emits lights from a defined area. Not from a single point.
It can be from a square, rectangle, circle, etc. Let's rename the light object to like the key Just to make things more organized in your outliner for the light settings, let's change the color to a bright yellow color. For the power. Let's crank this up to 100 watts. For the size, let's make it two meters. As you can see the light is currently facing down.
Let's rotate this on the x axis, press R, then x and then type 90. Then enter. Go to the front view, G and then z and then move this up like so. Go to the top view and move the light to about this location rotated and try to make it facing the robot. Next, we want to add a backlight at the side. We can just duplicate the existing key light, so shift D and move it to about this location.
Then rotate this so it is roughly facing the robot. For the backlight, we don't want have the same yellow color. Let's pick a bluish color. Next, we want to make this slide not square, but more like a strip of vertical light. To do this, we need to change the shape from square to rectangle. Due to this, we can now set the x and y values separately.
For the x, let's input one meter. And for the Y, let's make it two meters. Feel free to experiment with the light settings. For me, I consider this good enough. So I'll move on with this one. Next, to be able to final render of this robot.
We need a camera shift a and then to camera here, then try to find the best viewport angle for the final rendering. I think I like this one, maybe zoom out a little. I want to show this area and also the like curve clearly After you like the view, press Ctrl Alt zero to align the camera to the current view, we can see some clipping occurs in the camera view. To move the camera back a little, we can press G, then z twice to activate the local Z axis constrain, then move this back so that the whole robot is in frame, you can press G to pan the camera. Next, we want to achieve more realism by adding global illumination or indirect lighting to the scene. As we discussed before, Evie is a real time renderer unlike cycles, which is a full path tracer in Eevee, indirect lighting does not available out of the box, we need to make it first or for better terms, we need to calculate it and save it in a memory before we do any rendering.
If you use game engines like unity, unreal or Godot before, you should already be familiar with this process. Okay, so Through this press shift a light probe, and then choose irradiance volume. Next, we need to make this irradiance volume object to cover the entire robot, go to from view. move this up and then scale it until the Skinner box covers the whole robot. The claws are still perfectly outside the inner box, we can scale this only on the x axis to fix it. If you are wondering what this irradiance volume does, actually, well, the most important part of this object is this little dots here are also known as probes.
When later we do the backing. Each of these probes will store the lighting information based on the surrounding surfaces and their colors. Essentially, the more dots we have, the more precise the result will be. But at the cost of longer making time, currently we have four by four by four probes inside the volume. Let's increase this value, but not too much. We can click drag like so, and then type in eight, then enter.
Now we have eight by eight by eight probes inside the irradiance volume object. Next, to actually make use of these probes we need to bake the indirect lighting. To do this, we need to go to the rendering panel, open the indirect lighting section, and then click this button bake indirect lighting. Now blender is calculating the indirect lighting information and store them to each of the light probes. We can see the baking progress down here, depending on how fast your computer is and how many light probes need to be calculated. This can take a while and we are done.
It looks good. So let's just do the final rendering. Press F 12. And it is done. The cool thing about Evie is that because we already made the global illumination before, it will perform the rendering almost instantly. To save the image, just as we discussed before, we can go to the Image menu, then Save As, you can name this to any name you like.
I'll name mine with the lesson code so later, you can find the file easier. Make sure you have the default setting which is PNG format with RGBA mode. This way you can store the transparency information and use the image for later compositing in any 2d graphic application way easier. And yeah, I think we are done. Oh, sorry, I forgot to rename the backlight object. Let's rename this to light dot back and Alhamdulillah we are now done.