Basic textures in GIMP: Denim

From Nexus Mods Wiki
Jump to: navigation, search

Overview

This mini guide shows how to create a basic denim texture in GIMP from scratch.


Required tools

Creating a basic denim texture

Create a diagonal line pattern

Adding a transparent 6x6 image
Pencil settings
Diagonal line pattern
Adding the pattern to GIMP
Patterns dialog

First of all we are going to create a new pattern that consists of a diagonal line.

  1. Create a new square transparent image of 6x6 pixels:
    1. Choose the menu option File -> New and a window will pop-up.
    2. Set Width and Height to 6 and select pixels as the measurement unit
    3. Expand the Advanced Options part and select Transparency from the "Fill with" drop down list, as shown in picture Adding a transparent 6x6 image.
  2. Press the + key several times to zoom the image you've just created until it is big enough for you to work in it.
  3. We are going to paint now one pixel at a time. For doing this:
    1. Select the pencil tool from the toolbox
    2. Keep the opacity at 100%
    3. Select the Circle (01) brush, and keep its scale at 1.00, as shown in picture Pencil settings
  4. Set the foreground colour to black and paint the pixels in the diagonal of the image, from top left to bottom right as shown in picture Diagonal line pattern.

Now we are going to save the image as a pattern:

  • Select the menu option File -> Save as
  • Enter a name for the file with extension .pat (for example, DiagonalLine.pat)
  • Save it to the folder \Program Files\GIMP-2.0\share\gimp\2.0\patterns\
  • After pressing the Save button a window will pop up asking for a description. Enter a suitable one like Diagonal Line (this desription is what you will see in GIMP when browsing your installed patterns, so enter something meaningful).

Next step is to make GIMP to load the new pattern we've just created:

  • Select the Bucket Fill tool from the Toolbox as shown in picture Adding the pattern to GIMP.
  • Select the Pattern Fill option
  • Click on the pattern little square image and a window will be displayed showing all installed patterns.
  • Click on the little bucket icon at the bottom right corner of the available patterns window and this will open the Patterns dialog as shown in picture Patterns dialog.
  • Click on the Refresh patterns button (the two circular arrows icon) and wait while GIMP adds all the new patterns it finds to the list.
  • Close the Patterns dialog and now the Diagonal Line pattern will be available.

Create the basic texture

RGB noise window
Fill top layer with diagonal line pattern
Bump map window
Basic Denim texture
  1. Create a new square image. For this tutorial I've created a 512x512 image, but you can use any size you want.
  2. Fill the image completely with a dark blue colour. For this tutorial I've used the 3b3b85 color.
  3. Add noise to the image:
    1. Select the menu option Filters -> Noise -> RGB Noise.
    2. A window will pop-up like the one in picture RGB noise window. Uncheck the Independent RGB flag and set a high value in the noise boxes (I've left it to the edfault value of 0.20 but you can try different values)
    3. Press OK to close the window and wait until GIMP has finished adding the noise to your image.

Now add a new transparent layer on top of the blue one:

  1. Select the menu option Layer -> New Layer
  2. Add a name for the new layer, select Transparency on the pop-up window and click OK
    Note: To see and work with the different layers that you have in your image:
    • Select the menu option Windows -> Dockable Dialogs -> Layers '
    • This will open a window with the layers stack for your image as the one shown in picture Layers stack'
      • To work on one of the layers, select the corresponding layer in the stak and then work in GIMP main edition window: all you do (painting, erasing, resizing, etc) will be done on the selected layer.
      • To hide/show one of the layers, click on the eye icon at the left of each of the layers in the layer stack.
  3. Fill the new layer with the Diagonal Line pattern we created before:
    1. Select the Bucket Fill tool from the Toolbox as shown in picture Adding the pattern to GIMP.
    2. Select the Pattern Fill option
    3. Click on the pattern little square image and a window will be displayed showing all installed patterns.
    4. Select the Diagonal Line pattern you've just created from the list.
    5. Fill the transparent layer with the pattern and your image will now look like the one in picture Fill top layer with diagonal line pattern.

The next step is to use the bump map filter that was explained in the tutorial Giving sense of volume to textures using GIMP.

  1. Select the bottom layer (the one we painted in blue)
  2. Select the menu option Filters -> Map -> Bump Map.
  3. A window like the one shown in picture Bump map window wil pop up:
    1. In the Bump map box, at the top, select the layer that you've filled with the Diagonal Line pattern.
    2. Check the Invert bumpmap checkbox.
    3. You can change the values of the properties, and see how if affects the original texture in the Preview window (check the Preview box to see this changes). In this case I find that the Sinusoidal map type gives better results, but you can try the other values and see which one looks best for you.
    4. Once you've got the results you want, click OK.
  4. Delete the top layer that you filled with the Diagonal Line pattern as we only needed it to use it with the bump map filter.

Now your image looks like the one shown in picture Basic Denim texture.

Note: If you want the diagonal lines to be more deeply marked in your texture:
  • Don't delete the layer that you filled with the Diagonal Line pattern. Select this layer in the layer stack and change its layer mode from Normal to Burn and the Opacity value from 100 to 20 (you can play with other blend modes and values to see which ones fulfill your needs)''
  • In the main edition window, select the menu option Layer -> Merge Down'