|
Ever wondered how those cool 3D wallpapers and animations were created? Here’s a chance to make a few yourself. In this article we concentrate on one 3D graphics rendering tool—Blender—that has arguably one of the fastest rendering engines. It is also extremely small in size—2.3 MB—unlike other commercial tools which occupy oodles of disk space. You can download Blender for free from www.blender.nl. Blender is not an open-source application, but the company that develops it, Not A Number, gives out the package for free. You can purchase a detailed printed manual from them. You’ll also find a lot of free manuals and excellent examples on the Web. The links are available at the above site.
You can install Blender from the August 2001 PCQuest CD. Mount the CD with
mount /mnt/cdrom
cd /mnt/cdrom/cdrom/linux
cp blender2.12-linux-glibc2.1.2-i386-static.tar.gz /home/
cd /home/
tar xvfz blender2.12-linux-glibc2.1.2-i386-static.tar.gz
cd blender2.12-linux-glibc2.1.2-i386-static
Start X-Window and type ./blender
In the above commands replace with your home directory.
Now we’ll use Blender to make a 3D image and animate it. You can use your imagination and creativity to scale the use of Blender to new heights. More manuals, examples, and illustrations can be obtained from
www.blendermania.com and www.blender.nl We’ve also provided a few examples and a manual for beginners in the PCQuest July 2001 CD (CD 1).
Creating a 3D image
Go to the Blender directory and type ./blender to start up Blender. What you see on your screen is the canvas of your 3D world. At the bottom is a panel with lots of buttons. These may seem confusing, but as you get used to Blender, you will feel that the positioning of the buttons is perfect for working unhindered. On the canvas, at the center, you’ll see a circle with red and white dashes. This is your 3D cursor. Click anywhere on the canvas and the cursor will get positioned there. Any new object placed will appear at the cursor position. You will also see a triangular object at the lower middle end of the canvas. This is the camera. When the image or animation is rendered, it appears as seen from the camera. Blender has different views like top (plan), front (elevation), the side (profile), perspective, and camera. You can access these by hitting the Numpad keys 7,1, 3, 5, and 0 respectively. You may also obtain views from the opposite direction of the above views by using the Shift key along with the above Numpad keys. You can also change your views by using the Numpad arrow keys. Click and hold your middle mouse button, and rotate your canvas in any direction to view from other angles.
Now you need to place something on the canvas to create anything. Place your 3D cursor at the required position and press the spacebar to get a menu. Here, you see options like Add, File, Edit, Object, and Mesh. Go to the Add menu to add an object. You can add meshes, curves, surfaces, text, etc. Press Numpad-7 for coming to top view. Press the spacebar and go to Add>Surface>Tube. You’ll see a circle on your canvas—this is a tube as seen from the top. The circle will have a yellow-colored rectangle around it. This means the object is in Edit mode as opposed to the Normal mode. To switch between modes use the Key. Press ‘a’ to select the entire object in Edit mode or use the right mouse button. You can perform three basic operations on the object that you’ve placed:
- Move the object: Select the object and press the ‘g’ key. Now move your mouse and the object will move along with the mouse cursor. Click the left mouse button to place the object. Press Esc before clicking the mouse to undo the
action.
- Resize the object: Select the object, press the ‘s’ key and move your mouse to resize the object. This may take a little practice.
- Rotate the object: Select the object and press the ‘r’ key to rotate it.
We will create a cool hammer now.
-
|
Step
6 |
|

|
Select the tube you placed and press ‘x’ to delete it. From the menu which appears, choose ‘All’.
-
Press Numpad-7 for coming to top view. Press the spacebar and go to Add>Surface>Tube.
-
Press ‘s’ and resize it to make it smaller than the original size.
-
Press Numpad-3 and come to the side view.
-
Press the ‘a’ key.
-
You can see four vertices of the tube in side view(the pink dots). Press the ‘b’ key. Now hold the left mouse-button down and drag the cursor to select the two top vertices of the tube.
-
|
Step
10 |
|

|
Now press ‘g’ and drag the mouse button to elongate the cylinder. Press the Ctrl key and drag for dragging in a straight line.
-
Press the ‘a’ key twice to select the entire tube.
-
Press the ‘g’ key and drag the entire object below (to the center).
-
Press the spacebar and add another tube. Make it larger by using the ‘s’ key and place it as shown using the ‘g’ key.
-
Press ‘a’ and press Numpad-1 to come to front view.
-
Press ‘b’ and select the vertices on one edge of the head of the hammer.
-
Press ‘g’ and elongate the head.
-
Similarly, elongate the other end.
-
Now our hammer is ready. Press Numpad-0 for viewing the hammer through the camera.
-
You need to get the hammer appear fully inside the camera, that is, inside the inner rectangle in the camera view. Press Numpad-7 to get to top view. Right click on the camera to select it and move it away from or towards the hammer so that the hammer appears inside the camera. (You can zoom out of the canvas by pressing the Numpad ‘-’ key multiple times.)
-
|
Step
14 |
|

|
Place the camera at some other angle and rotate the camera so that you can obtain an angle view of the hammer.
-
Press Numpad-0 to see the hammer through the camera. It should appear like this.
-
Press ‘z’ for a preview of the hammer before rendering.
-
The hammer is hollow, so we need to make it solid. To do that, press till you enter Edit mode (you should be able to see the vertices as pink dots). Select the vertices on the right side using the ‘b’ key. Press Shift+D to duplicate the selected vertices and press Enter. Press ‘Numpad-3’ for profile view and press ‘s’ to resize the duplicate vertices. Resize to a very minute size (see the yellow dot in the center) as shown.
-
Press Numpad-1 to go to front view. Using the ‘b’ key select all the vertices on the right side of the hammer head. To create a face press the ‘f’ key.
-
|
Step
15 |
|

|
Press Numpad-0 and ‘z’ for a preview of the hammer.
-
Press F12 to render the image. A black blank window should appear. You won’t be able to see the hammer because you haven’t added any lights to the scene.
-
Press Numpad-7, press Spacebar and Add Lamp. Make sure that the lamp and camera are on the same side of the object.
-
Press F4 to invoke the Lamp menu in the lower section of the Blender window.
-
Choose Spotlight from the Lamp type menu. You should see a dotted circle around the lamp.
-
Press Numpad-3 to see the lamp. Select, Move, Rotate and scale the Lamp such that the light beam falls on the hammer in all the three views. The light beam should cover the object in all three views.
-
|
Step
18 |
|

|
Now press F12 to render the image.
-
The rendered image may not be clear. Increase the energy of the light by dragging on the energy bar in the Lamp menu.
-
Now press F12 to see something like the accompanying figure.
-
Press F2 to save the Blender file. Blender saves the image in .blend format. These files are amazingly small in size, and even huge animations occupy a few 100 kB.
-
For saving the rendered image, press F10. From the image options, click on the JPEG button in the lower panel. Press F3, type in the image name and press Enter twice to save the
image.
-
|
Step
20 |
|

|
You can change the size of the rendered image by clicking and dragging on the Size X and Size Y buttons in the same panel. Try these out (change it to 640x480).
-
Now let us add some color to the hammer.
-
Press Numpad-1 and zoom in closer to the image.
-
Choose the handle of the image by pressing ‘b; and selecting the handle only.
-
Press F5 to activate the Material options.
-
Click on the button with a white dash on it to define a new material. Select “Add New”.
-
|
Step
30 |
|

|
From the new menu on the bottom panel, vary the values of Red, Green and Blue to change the color of the material. Try to give it a brown color. You will see one more RGB combination tool nearby. Change it to make it black. The default color for this is pink. If you don’t change this to black, you will get a wooden hammer with pink stripes.
-
Press F6 to activate texture options. Add a new texture by clicking on the same button with a white dash that you clicked to define a new material.
-
Choose wooden texture, by clicking on the Wood button.
-
Now render the image by pressing F12 and you should get something like what’s in the accompanying figure. You can add a few more lights to make the hammer more visible.
Animation in Blender
|