[LinuxFocus-icon]
<--  | Home  | Map  | Index  | Search

News | Archives | Links | About LF
This document is available in: English  Castellano  Deutsch  Francais  

[Photo of the Author]
by Katja Socher
<katja(at)linuxfocus.org>

About the author:

Katja is the German editor of LinuxFocus. She likes Tux, computer graphics, film & photography, travelling and the sea. Her homepage can be found here.


Content:

 

Going 3D with Blender: Modeling a clock

[face texture]

Abstract:

In this article we model a clock with Blender.

_________________ _________________ _________________

 

Modeling a clock

As always look at the image above and you get an impression of the clock we are going to create.
The current Blender version as of this writing is 2.32.
Open the default scene that we created in our very first Blender tutorial, Going 3D with Blender: Very first steps and change the colour of the wall to a lighter blue, e.g. R=0, G=0.628, B=1 (right click on the wall to select it, then go to the material button and move the colour sliders). We change the colour of the wall as the case of the clock will be blue and wouldn't be viewable otherwise.

 

The face

For the big circle of the clock add a Bezier circle in front view (press space, Add-->Curve-->Bezier Circle, convert it into a mesh (press tab, then alt +c).
We could also have added a normal mesh circle, pressed shift +f in edit mode to give it a face. It's up to you to decide which method is more convienient to you.
Give it a texture. For this go to the material buttons and press "add new", then go to the texture button, press "add new" again, then on "image", "load image" and load an image that you like. In the example above I gave it a texture of artistic riding dolphins that I created by using Blender and The Gimp. If you want you can download the picture below and use it for your clock.

[face texture]

If you want you can move the slider of the emit button in the material buttons menu a bit to make the image brighter and self-shining. You can do this with all colours we add in this tutorial.
Now we have the texture. Next we want to add the red frame around the texture. Click tab to get into edit mode, then a to select all points, next e to extrude and s to scale it a little bit in front view. Go to the edit button, press "new" and "select", then go to the material button, press "add new" and move the colour sliders to R=1, G=0,B=0, then go to the texture button, press "add new" and then "none". Then go back to the edit button and click "assign".
Next press e again and s to scale again, this time a bit more. Then go to the edit buttons, press "New" and "Select" and "assign". If you render your image (press F12) now you should have a circle with the dolphin picture and a red frame around it.
With the outer ring still selected go to side view and press e to extrude, then move (press g) everything a bit.

[flat face of clock]

Press tab to leave edit mode. If you add a new object while you are still in edit mode the new object will always move etc. with the old one which is certainly not what you intended if you didn't do it deliberately.

 

The little red circle

Next let's add the little red circle in the middle of the clock. For this add a Bezier Circle again like above (place the cursor in the middle of the other circle if it isn't there already, hit Space, add-->Curve--> Bezier Circle), then tab to leave edit mode and alt+c to convert it into a mesh. Then press tab again to get into edit mode again, followed by a to select all points, then in side view press e and extrude the circle a bit. Give it a red colour (go to the material button, click "add new" and move the colour sliders to R=1, G=0,B=0). Finally press tab to leave edit mode and scale it down (press s).

 

The minute lines

Next let's add the 60 lines that mark the minutes on the clock. Therefore add a plane (hit Space, Add-->Mesh-->Plane) in front view and scale it so (restrain the scaling to one side by pressing s while holding the middle mouse button down and move the mouse up) that it gives a rectangle. The rectangle should be rather thin. In side view extrude it a little bit (press e and then g and move it, then leave edit mode by pressing tab). Give it a white colour (go to the materials buttons, press "add new" and move the colour sliders to R=G=B=1). Scale it down now (press s) so that it has the size the white minute lines should have and place it (press g) exactly where you would place the line for the 12 of the hours. To make this rather exact you could move the clock to layer 2 (press m) and only select this layer. Now with the background grid you can place the white rectangle at its right place).

[clock with minute rectangle]

Next press tab to get into edit mode, click a twice to select all points of the rectangle and click on the edit button in the buttons window. We want 360 degrees (it should go around the whole clock) and 60 steps (60 lines for 60 minutes). Set the cursor in the middle of the circle. Now press Spin dup and click in the front view window. Press tab to leave edit mode.
We already used this function to create the tracks for our toy train in our kid room if you remember (in case you missed it you can find it here: Going 3D with Blender: A room with toys ). It's the same thing here.

 

The hour points

Now we want to emphasis the points that mark the hours and add a sphere at their places. Now add a sphere (press space, Add-->Mesh, UV-Sphere, leave the default values of 32 for the segments and rings), click "set smooth" in the edit buttons menu, press tab to leave edit mode and then give it a blue colour (R=0,G=0, B=1) and scale it down (press s) . Move it (press g) over the plane that you set over the 12 like you did before with the rectangle. If you placed it correctly as you want it press tab to get into edit mode and go to the edit buttons menu. Again we want 360 degrees but this time we only want 12 steps as we want to emphasis the hours this time. Set the cursor in the middle of the cirlce, press Spin dub and click in the front view window. Finally press tab to leave edit mode.

 

The numbers

Now you need to add the numbers. For that press space, Add -->Text, delete the default text (with backspace) and type in the number, then press tab to leave edit mode. Scale the number down (press s), give it a yellow colour (R=1,B=1.G=0) and move it (press g) to its place. You have to do this manually and it takes a little time. But after that the face of the clock is finished already.

[clock with minutes' lines. hours' spheres and numbers]

 

The hands

Add a plane (hit Space, then Add-->Mesh-->Plane) in front view and scale it so (press s for scaling and at the same time hold the middle mouse button down to restrain the scaling to one side ) that you get a rectangle. Select the two points at one of the smaller sides (press a to unselect all points, then press b and mark the two points with the mouse) and extrude (press e) them a bit. Then press s and move those two points together so that you get the peak. You can again use the background grid to place the peak exactly in the middle. Give it a yellow colour (go to the material buttons, press "add new" and move the colour sliders to R=1,B=1.G=0). Next select the whole object in edit mode (press a twice to select all points) and extrude (press e) the object in side view so that it gets some thickness. Press tab and then duplicate it (shift +d) and scale (press s) it a bit down and give it a blue colour (go to the material button, press "add new" (very important, otherwise the other rectangle changes its colour to blue as well) and move the colour sliders to R=0,G=0, B=1), then move (press g) it inside the bigger hand. Now you already have one hand. Place them on the face and scale them (press s) so that they fit well as hour hand.
Now with both parts of the hand selected duplicate them (shift +d). Scale the duplicate (press s) so that it gets longer without getting bigger/wider and place it so that it fits well as minute hand.

[clock with hands]

 

The case around the face

Add a new Bezier circle (hit Space, Add-->Curve-->Bezier Circle) in front view, it's center should be at the same place as the center of the circle of the face. (You can easily do it by moving the cursor over the center before adding the new circle). Press tab to leave edit mode and alt+c to convert it into a mesh circle. Scale it up (press s) so that it has the same size as the inner circle of the face circle. You can orient yourself on the rectangles of the minutes for that.
Then do as already with the other circle. Extrude (press e) and scale (press s) a little so that it is as big as the other circle. Then extrude (press e) and scale (press s) again, this time as much as you want the size of the clock to be. Then with the outmost circle still selected press e and g to give the circle some volume in side view. With the back circle still selected press shift+f to give the back a face.
Give the whole case a blue colour (go to the material button, press "add new" and move the colour sliders to R=0,G=0, B=1).
Then select the two inner circles in the front (press a to unselect the outer circle and then b and mark the inner circles with the mouse). Give them a transparent material: Go to the edit buttons and press "New" and "Select", then go to the material buttons and press "add new". Click the Mirror Transparency button (next to Shaders) and click on "Ztransp". Then go to the Alpha button (you find it in the A field in the column under the RGB buttons). Give Alpha a very low value, close to 0. Then go to the edits buttons again and press "assign", then tab to leave edit mode.

[clock with case]

 

The feet

For the feet you add again a Bezier circle (hit Space, Curve-->Bezier Circle) but this time in top view, then convert it into a mesh (tab to leave edit mode, then alt +c). Then you extrude it (press tab again to get into edit mode, then a to select all points and then press e) in front or side view so that it gives a tube (you could also have taken a tube and add the face by pressing shift +f). Then you select the end of the tube (press a to unselect all points and then press b and mark the lower end with the mouse) and extrude it (press e), then scale it (press s) so that it is wider than the tube. Extrude it (press e) and move it (press g) a little bit down as well. Place it under the case (press g) , give it its blue colour (R=0,G=0, B=1), duplicate it (shift +d) and move it (press g) to the side. The feet are ready too.

[clock with case]

The clock is ready. Here is a screenshot of the finished clock:
[finished clock]


I hope you have fun creating it and as always: Happy Blending! :)

 

References

 

Talkback form for this article

Every article has its own talkback page. On this page you can submit a comment or look at comments from other readers:
 talkback page 

<--, back to the index of this issue

Webpages maintained by the LinuxFocus Editor team
© Katja Socher, FDL
LinuxFocus.org
Translation information:
en --> -- : Katja Socher <katja(at)linuxfocus.org>

2004-04-25, generated by lfparser version 2.46