Home

Blender Materials: Introduction to Textures

Introduction

A texture is a design that influences how a color is applied to an object. Cycles Render supports two type of textures: design-based textures and images.

In this lesson, we will model a kapsiki house. The house is made of two parts: The bottom part is one cylindrical wall with one door and one window. The roof is a cone covered with straw.

Practical LearningPractical Learning: Setting Up the Scene

  1. Start Blender
  2. In the Properties window, click the Object button Objct
  3. In the work area, right-click the default cube to make sure it is selected. Press X
  4. In the menu that appears, click Delete to remove it

Practical Learning: Modeling the House

  1. To add a shape, in the Tools window, click the Create tab
  2. In the Mesh section, click Circle

  3. In the Add Circle section below the Tools window, change the Radius value to 2
  4. Position the mouse in the work area and press Tab to switch to Edit Mode

  5. Press E to extrude
  6. Press Z to extrude vertically
  7. Type 3.25 and press Enter:

    Modeling a Kapsiki House

  8. Press Ctrl + R to create a cut
  9. Move the mouse on the shape until a horizontal cut appears, then click
  10. Type -.75 and press Enter:

    Modeling a Kapsiki House

  11. On the menu bar below the work area, click the Edge Select button Edge Select
  12. On the cylinder, right-click any vertical line below the cut
  13. Press and hold Shift
  14. Right-click 2 other vertical lines close to the previously selected one to get 3 consecutively selected edges:

    Modeling a Kapsiki House - Selecting Edges for a Door

  15. Right-click each of the edges below those lines and right-click the edges on both sides
  16. Release Shift:

    Modeling a Kapsiki House - Selecting Edges for a Door

  17. Press X
  18. In the menu that appears, click Edges:

    Modeling a Kapsiki House

    :

    Modeling a Kapsiki House

  19. Press Ctrl + R to create a cut
  20. Move the mouse on the shape until a horizontal cut appears, then roll the middle mouse button to get 2 horizontal lines
  21. Click twice to accept the cuts
  22. Press and hold Alt
  23. Right-click the top one of the cuts that were just made
  24. Release Alt:

    Modeling a Kapsiki House

  25. Press G to move the cut
  26. Press Z to restrict the move vertically
  27. Type .5 and press Enter:

    Modeling a Kapsiki House

  28. Press and hold Alt
  29. Right-click the other cut that was just made
  30. Release Alt
  31. Press G to move the cut
  32. Press Z to restrict the move vertically
  33. Type .85 and press Enter:

    Modeling a Kapsiki House

  34. Move the view a little bit horizontally so you can see one of the sides of the door or the back of the house (it's up to you):
  35. Right-click a vertical edge between the horizontal lines:

    Modeling a Kapsiki House

  36. Press and hold Shift
  37. Right-click 1 other vertical line close to the previously selected one but not next to the door to get 2 consecutively selected edges
  38. Release Shift:

    Modeling a Kapsiki House

  39. Press X
  40. In the menu that appears, click Edges:

    Modeling a Kapsiki House - The edges are selected only to show you the window. You don't have to select anything

  41. Press Tab to display in the Object Mode
  42. In the Properties window, click the Object Modifier button
  43. Click Add Modifier and click Solidify
  44. Change the Thickness to .2
  45. Click Apply:

    Modeling a Kapsiki House

  46. Click Add Modify again and click Subdivision Surface

    In the Subdivisions section, set the View value to 2
  47. Move the house so the door is in front of you and zoom it to see it as much as possible

  48. Press Tab to switch to Edit Mode
  49. Position the mouse on the house. Press Ctrl + R to create a cut
  50. Move the mouse up above the door then click
  51. Move the mouse up to place the cut as close as possible to the top border (it doesn't matter if you touch the border or not):

    Modeling a Kapsiki House

  52. In the same way, create and position the cuts as follows:

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

    Modeling a Kapsiki House

  53. Press Tab to display the shape in Object Mode
  54. In the Properties window, click Apply
  55. In the Tools window, click the Tools tab and click Smooth

    Modeling a Kapsiki House

  56. In the Properties window, click the Object button
  57. In the Properties window, click Circle to select it, type Common Wall and press Enter

Practical LearningPractical Learning: Modeling the Roof

  1. Move the view so you can see the top of the cone
    On the menu bar of the 3D View, click Add -> Mesh -> Cone
  2. In the Add Cone section below the Tools window, change the following values:
    Radius 1:  2.75
    Radius 2:  1.55
    Depth:     1.125
    Location - Z: 3.75

    Modeling a Kapsiki House

  3. Press Tab to display the cone in Edit Mode
  4. On the menu bar of the 3D-View, click the Face Select button Face
  5. Right-click the top of the cone to select the top face:

    Modeling a Kapsiki House

  6. Press E to extrude
  7. Type .95 and press Enter:

    Modeling a Kapsiki House

  8. Press S to resize
  9. Type .525 and press Enter:

    Modeling a Kapsiki House

  10. Press E to extrude
  11. Type .75 and press Enter:

    Modeling a Kapsiki House

  12. Press S to resize
  13. Type .55 and press Enter:

    Modeling a Kapsiki House

  14. Press E to extrude
  15. Type 1.5 and press Enter
  16. Press S
  17. Type 0 and press Enter:

    Modeling a Kapsiki House

  18. Press Tab to display the cone in Object Mode

    Modeling an Empty Glass - Selecting the Undesired Vertices

  19. In the Tools window, click the Tools tab and click Smooth

    Modeling a Kapsiki House

Practical LearningPractical Learning: Putting the Scene Together

  1. In the top menu bar, change Blender Render to Cycles Render
  2. On the menu bar of the 3D View, click the Viewport Shading button and select Material:

    Menu Bar - Viewport Shading

  3. In the Properties window, click the Render button Render
  4. In the Properties window, in the Resolution section, change the resolution from 50% to 100
  5. Click Sampling to expand it

  6. Change the Render value from 128 to 500
  7. In the Properties window, click the World button
  8. In the Properties window, click Use Nodes
  9. Click the dark-gray button More Properties on the right side of Color
  10. In the menu that appears, click RGB
  11. Click the horizontal bar below the color wheel, click RGB, and set the color as follows:
    R: .658
    G: .886
    B: 1
  12. In the work area, right-click the available light to select it
  13. In the Properties window, click the Object Data button Objct Data
  14. In the Lamp section, click Sun
  15. Click Use Nodes
  16. Click the value of Strength to select it
  17. Type 10 and press Enter
  18. On the Tools window, click the Create tab
  19. Click Plane
  20. In the Add Plane section below the Tools window, change the following values:
    Radius:    40
    Location - Z: .01
  21. Right-click the left border of the Properties window and click Split Area
  22. Click somewhere in the middle of the half side of the screen
  23. Click the bottom in the bottom-left section of the new window and click Node Editor:

    Node Editor - Menu Selection

  24. In the Properties window, click the Material button Material
  25. In the Material section of the Properties window, click the New button
  26. Click the dark-gray button on the right side of Color and click RGB
  27. Click the horizontal bar below the color wheel and click Hex
  28. Set the color value as c0b19e
  29. In the 3D View, right-click the house (the cylinder) to select it
  30. On the menu bar of the Node Editor, click the New button
  31. On the menu bar of the Node Editor, click Add -> Input -> RGB
  32. Position the window on the left side of the Diffuse BSDF window and click
  33. Draw a line from the yellow button of RGB to the yellow button of Diffuse BSDF
  34. In the RGB window, click the horizontal bar below the color wheel and click Hex
  35. Set the color value as cd823e

    Menu Bar - Viewport Shading

  36. Right-click the bottom side of the border between the Node Editor and the 3D View
  37. Click Join Area
  38. Click inside the Node Editor to close it
  39. Position the mouse in the work area and, to display the camera view, in the Numeric Pad, press 0
  40. Press N to display the Properties Region
  41. In the Properties Region, click the Lock Camera to View check box
  42. Use the mouse to position the view so you can see the house and roof:

    Modeling a Kapsiki House

  43. In the Properties Region, click the Lock Camera to View to remove the check mark
  44. Press N to close the Properties Region
  45. To preview the result, on the top menu, click Render -> Render Image:

    Modeling a Kapsiki House

  46. After viewing the result, press Esc to return to the 3D View
  47. In the top menu bar, click the button on the left side of Default and click Compositing

An Image as Texture

Normally, when you model an object, you can paint it with a color of your choice. If you want an object to appear closer to real world, you can paint it with an actual picture. This is like gluing a picture on the surface of an object. To support this, Cycles Render provides a texture named Image Texture.

To apply a picture to an object in the Properties window, use the dark-gray button of the Color button and select Image Texture, and then select a picture.

To apply a picture to an object using the Node Editor, add an Image Texture window, specify its file using the Open button, then connect its yellow button (Color) to the yellow button of the Diffuse BSDF window.

In both cases, you should unwrap the object.

Practical LearningPractical Learning: Applying an Image as Texture

  1. Save the following pictures to your hard drive:

    Resources - Mud Wall

    Resources - Straw

  2. In the 3D View (in the bottom-right side, marked Camera Persp), right-click the roof of the house to select it:

    Modeling a Kapsiki House

  3. In the Properties window, click the Material button Material
  4. On the menu bar of the Node Editor, click Use Nodes:

    Starting a Node

  5. In the Properties window, click the New button
  6. In the Properties window, click the dark-gray button on the right side of the Color button
  7. On the menu that appears, click Image Texture

    Properties Window - Menu Selection - Image Texture

  8. In the Properties window, click the Open button
  9. Locate the Straw.png picture, select it, and click Open Image
  10. Position the mouse in the 3D View (in the bottom-right side, marked Camera Persp) and press Tab to work in Edit Mode
  11. Press A twice to select all edges
  12. Press U to display the UV Mapping menu
  13. In the menu that appears, click Unwrap

    Compositing Window - Menu Selection - Unwrap

  14. On the menu bar of the UV/Image Editor (in the bottom-left side of the screen), click the button on the left side of New and click Straw.png
  15. In the Top menu, click the button on the left side of Compositing and select Default
  16. On the main menu, click Render and click Renber image:

    Modeling a Kapsiki House

  17. After viewing the result, press Esc
  18. On the main menu, click the button on the left side of Default and click Compositing
  19. Position the mouse in the 3D View (in the bottom-right side, marked Camera Persp) and press Tab to display the roof in Object Mode

A Texture for a Design Mask

One of the ways you can use a texture is to apply its pattern to a color. In this case, you are not interested in the colors on a picture or the actual objects on that picture. Instead, what you want is the design pattern or patterns applied to the object(s). That design would be applied to the color of your object. For this reason, you should (must) use the Node Editor to apply the design.

To let you apply a (texture) design to the color of an object, Cycles Render provides a property named Displacement. This characteristic is used on the output window. The Displacement property is used to indicate that the color would be displaced on the surface of the object using the pattern of the designed texture.

Practical LearningPractical Learning: Introducing Textures

  1. In the 3D View (in the bottom-right side, marked Camera Persp), right-click the house to select it
  2. On the menu bar of the Node Editor, click the Shader Nodes button Shader Nodes (on the right side of the Node menu item)
  3. Position the mouse in the Node Editor and press Shift + A -> Texture -> Image Texture
  4. Position the window below the Diffuse BSDF window and click
  5. In the Image Texture window, click the Open button
  6. Locate the Mud.png picture, click it, and click Open Image
  7. Locate the Mud.png file, select it, and click Open Image
  8. In the Node Editor, drag the yellow button from the Image Texture window and drop it on the gray button of Displacement in Material Output:

    Menu Bar - Viewport Shading

  9. Position the mouse in the 3D View window in the bottom-right side (marked Camera Persp) and press Tab to display the house in Edit Mode
  10. Press A twice to select all faces of the house
  11. With the mouse still positioned in the 3D View (may be marked Camera Persp) window, press U to unwrap
  12. In the menu that appears, click Smart UV Project
  13. In the dialog box that displays, click OK
  14. On the menu bar of the UV/Image Editor, click the button on the left side of Straw.png and click the Mud.png file you had selected
  15. On the top menu bar, click the button on the left side of Compositing and and click Default
  16. Position the mouse in the work area and press Tab to display the house (cylinder) in Object Mode
  17. In the Properties window, click the Render tab Render
  18. In the Render section, click the Render button:

    Modeling a Kapsiki Housine

    Modeling a Kapsiki Housine

  19. After viewing the result, press Esc to return to the default view

Home Copyright © 2017, FunctionX Home