Lighting and rendering
With a character modeled, now we can work on setting up the lighting and outputting the scene to an image ("rendering").
The default Blender scene has a cube, a lamp, and a camera. In the first step of this tutorial, we deleted all of that so we had a fresh scene. Now we'll add a camera to the scene so we can render it, and lamps for lighting.
Add a camera
A camera is a special kind of object in Blender. The camera's view will determine the view of the final output, whether it's an image or an animation.
- Switch to Front View (1 NumPad).
- Add a camera with Space>>Camera. This will add a camera wherever the 3D Cursor is, but it doens't matter where that happens to be. We're going to move the camera. Note there's now another object in the scene (The camera). The square part is the front of the camera, and a black arrow points up so you know which direction the camera is facing.
- Switch to camera view with 0 NumPad. You know you're in camera view when you when you see the rectangular outlines near the center of the 3D Window (Camera view). The middle outline shows the boundary of the camera's view. The outer solid line is the camera object itself.
- To get out of camera view, use another view control (MMB or one of the NumPad keys). Do this now, and move the view in the 3D Window to a view you want the camera to point at (Moving to a new view).
- Snap the camera to this view with CtrlAlt0 NumPad. This automatically puts you in camera view (New camera view).
- Select the camera object if it isn't already selected (RMB on the outer solid line)
Sometimes when you're snapping the camera to the current view with CtrlAlt0 NumPad, it's easy to miss the Alt key. If that happens, you actually press Ctrl0 NumPad, which turns the selected object into a camera. This is possible because Blender is very flexible, and any object can act as a camera. When you do this by mistake, though, it can be very frustrating.
If it seems like your camera is not working as expected, it may be that you turned the selected object into a camera.
To fix this:
Add a Lamp
Now we will add a light to the scene. This will be a very simple lighting setup: a single lamp will be used.
- Switch out of camera view.
- Add a 'Hemi lamp at the 3D Cursor with Space>>Lamp>>Hemi (The new Hemi lamp). "Hemi" is short for "hemispherical", and simulates the uniform light of the sky. Since it simulates an infinitely large light source, the position of a Hemi lamp doesn't matter, only its rotation. You can read about this and other lamp types at Doc:Manual/Lighting/Lamps.
- With the Hemi lamp still selected, press AltR to clear rotation (Hemi lamp, rotation cleared). This resets the lamp to point straight downward. Its direction is indicated by the long dashed line: now it's pointing straight down.
- You can move the Hemi lamp anywhere you'd like, I ended up moving it upward and out of the way. Remember for a Hemi lamp, only the rotation matters.
With at least one light in the scene, we can now do a test render. Rendering is the process of calculating how light bounces off of each object and turning those calculations into an image on the screen. Depending on the complexity of your scene, rendering can take a long time. For now, we'll just use the default settings for rendering.
- Press F12 to render. A new window comes up, the render window, showing you what the final product looks like.
- If you'd like to save the image, press F3 for the save window.
- Press Esc or close the render window to return to the main Blender window.
Let's make the lamp a little brighter.
- Select the Hemi lamp.
- In the Lamp buttons (The Lamp buttons), look for the Lamp panel.
- Name the lamp ("Lamp" by default) to Hemi (Settings for the Hemi lamp).
- Change the Energy to 1.5 either by moving the slider or by clicking on the number and typing it in. This will make the Hemi lamp a little bit brighter. Feel free to play around with the Energy settings. Even a small change (like from 1.0 to 1.5) is noticeable.
- Try out your lighting by rendering with F12.
Blender:Render Window Info/Tips
Settings for rendering can be found in the Render buttons.
Of particular note are:
You can indicate where you want the renders to be saved in the top row of the Output panel, although this is more for animations than for stills. You can always use F3 in the render window to save the render to disk. A file browser window will open for you to choose where to save.
The OSA button stands for oversampling, also known as anti-ailiasing. Anti-ailiasing is a way of smoothing out edges and making the image look better at the expense of computation time. Disable this button to speed up rendering if you are just doing quick renders, but enable it for any image you want to look nice. The numbers below the OSA button indicate the number of samples: more samples results in a better image, but takes longer to render.
The Render button does the same thing as pressing F12.
In the Format panel you can set the size of the rendered image with the SizeX and SizeY number boxes.
You can also set the image type from the menu. This is the type of image that will be saved when you hit F3 after a render.
Instead of pressing F12 all the time while experimenting to find the right lighting setup or materials, try using the Render Preview:
- In the 3D Window, press ⇧ ShiftP.
- Wait a moment for the preview to update (depends on the speed of your computer)
- Move the view with MMB and watch the preview update.
We added a camera and some lights, and did some test renders to check the lighting. In the next section of the tutorial, we'll add materials to the skin and eyes to get rid of that ugly shiny gray look.
Previous: Torso, legs, and feet