Linux.com

Feature

Making a plastic texture with The GIMP

By Jozsef Mak on April 11, 2005 (8:00:00 AM)

Share    Print    Comments   

I got the idea for this project during a visit to a jewelry art exhibition. The artwork on display incorporated an amazing range of unconventional media, including rusted iron, precious stones and metals, wood, plastic, and the like. One of the most interesting creations among the "wearable art pieces" was a plastic object with a satin finish. I liked this satin effect so much that I decided to re-create it as a graphic material using the GIMP.

As soon as I got home, I fired up the GIMP and started experimenting. It took some time to come up with the effect, but eventually the design started resembling the actual plastic piece:

Final result

Below, I cover the main steps of the design process. I have broken down the creation process into six steps:

1. Start up the GIMP and create a new file by choosing File>New from the Window menu. The file size is unimportant since here we are developing a technique that, once mastered, can be applied to any shape. Add a new layer by clicking on the New Layer icon at the bottom of the layer palette and draw or import a shape on it. Mine is shown in the image below. When it's done fill it with light gray.

Figure 1

2. Duplicate the shape layer by right-clicking on its name in the layer palette and choosing the Duplicate Layer from the menu options; then fill the shape with white. Blur the white shape layer by choosing Filters>Blur>Gaussian Blur. When it is done, duplicate the blurred layer once again using the same technique. Move the second duplicate underneath the gray layer and turn its visibility off; this is going to be the shadow that we will add to the finished piece later. Now load the gray shape as a selection by right-clicking on its name in the layer palette and choosing the Alpha to Selection option from the menu. Then invert it by choosing Select>Invert. Next, change to the top white layer and delete the inverted selection by choosing the Clear option from the Edit menu. This trims the blurred shape. Now you should have three layers, similar to the illustration below:

Figure 2

3. In the next step, create a beveled object. Select the gray shape layer and in the filter menu chose Map>Bump Map. From the dialog box of the Bump Map drop-down menu choose the trimmed layer and adjust the Azimuth, Elevation, and Depth sliders to get a smooth beveled object, similar to the image below:

Figure 3

4. Now you can delete the trimmed layer if you want, or just turn its visibility off and drag it out of view. Next we create the actual plastic effect. This is the most important step and the one it took me the longest to figure out, though the process looks simple in retrospect. Create a new layer by clicking on the New Layer icon at the bottom of the Layer palette and move it above the beveled object layer. Fill the new layer with white. From the Filters menu chose Noise>Hurl and fill the entire white layer with noise. The amount of noise depends on the dimensions of the image, but as a starting point use the default value and adjust according to taste. Once the layer is filled with noise, choose Layer>Colours>Desaturate to remove the color values from the noise. Load the beveled object as a selection as you did before and choose Select>Shrink. In the dialog box enter a value of 5 to 8 pixels (jot this value down because you will use it later), then invert and clear the selection by following the steps described when you trimmed the blurred shape. You should have a slightly smaller noise shape above the beveled object. Next, choose Filters>Distorts>Emboss and apply some emboss effect to the noise shape. At this point, you should have a design similar to the following image:

Figure 4

5. Finally, duplicate the beveled layer by right-clicking on its name and choosing the Duplicate Layer option from the menu. Fill the duplicate object with white; this removes the beveled effect. Load the duplicate object as a selection one more time and shrink it as you did earlier by using the same values you applied when trimming the noise texture. Delete the selection by choosing Edit>Clear. This creates a white frame around the edge of the final work. Drag this layer beneath the beveled layer. At this point, the plastic material is basically done; we only have to set the transparency of the various layers. But before do this, create a circle on a new layer by using the elliptical selection tool in the tool box, fill it with black, and make this as the bottom layer. If you want to make the black object look fancier, stroke it with some color, as I did. This black object helps to adjust the proper opacity settings.

6. Now select the beveled layer and set its opacity in the layer palette somewhere between 75 to 80 percent. Next, select the noise layer and set its opacity anywhere between 10 and 15%. At this point you should have a plastic material similar to mine. To make your object look more professional, select the blurred layer you created earlier, turn on its visibility, invert its color to black by choosing Layer>Colours>Invert, then chose Layer>Transform>Offset. In the offset dialog box, set the x and y axis values to about 5 pixels and its layer opacity to 50%. I have placed white text on the top of the artwork just to make it look more complete, but this is not necessary. You can also create a background for the artwork if you want. I have used a standard gradient from the GIMP's gradient library.

That's it -- you're finished. Once you know how to create the plastic effect you can apply it to as many objects as you want, which can include buttons, logos, text, and the like. In the image below, I have created some variations of the plastic material just to give you an idea of the different ways the material can be used.

Demo

Share    Print    Comments   

Comments

on Making a plastic texture with The GIMP

Note: Comments are owned by the poster. We are not responsible for their content.

ugly

Posted by: Anonymous Coward on April 11, 2005 07:12 PM
that is very ugly

#

Re:ugly

Posted by: Anonymous Coward on April 11, 2005 08:52 PM
I'll bet this grade school dropout could do a lot better huh! mommy!

#

Re:ugly

Posted by: Anonymous Coward on April 11, 2005 08:55 PM
well, IMHO this is quite nice.

#

Re:ugly

Posted by: Anonymous Coward on April 12, 2005 04:52 AM
I like it.. and I'm gratefull for the howto.. it have me great insight.

#

Re:ugly

Posted by: Anonymous Coward on April 12, 2005 02:37 PM
who are you trying to kid? the original poster was right, this is the lamest article ever posted on newsforge.

#

Re:ugly

Posted by: Anonymous Coward on April 12, 2005 07:04 PM
this is the lamest article ever posted on newsforge

Obviously you haven't been reading Newsforge for very long.


But, seriously, this article taught me how to do something. I actually learned something from it. That puts it in the top 10% of Newsforge articles by my reckoning. YMMV of course.

#

Re:ugly

Posted by: Anonymous Coward on April 12, 2005 07:09 PM
No, this is the lamest article ever posted on Newsforge:

<a href="http://business.newsforge.com/" title="newsforge.com">http://business.newsforge.com/</a newsforge.com>

article.pl?sid=03/09/12/2211215&tid=111&tid=3&tid<nobr>=<wbr></nobr> 31

You'll have to reconstruct the URL, for some reason newsforge doesn't like linking to itself.

#

Wrong site

Posted by: Anonymous Coward on April 11, 2005 11:31 PM
Why you posted a GIMP tutorial here, and not on a GIMP-related site?
I don't think people would search newsforge for GIMP tutorials...

However, thanks for your work.

#

Article is wrong - so it's crap

Posted by: Anonymous Coward on April 13, 2005 04:26 AM

My first reaction was that this is a useful article because it purports to actually teach you something.
Then I tried to follow its instructions:


"Add a new layer by clicking on the New Layer icon at the bottom of the layer palette"

Huh? What layer palette? My version of Gimp (2.2.4) doesn't have any 'layer palette' when you start it. If the instructions are version-dependent, they should say so.


You can create a new layer my right-mouse-click, Layer, New layer. Maybe that's the equivalent for 2.2.4? Who knows. Try it and proceed<nobr> <wbr></nobr>...



and draw or import a shape on it. Mine is shown in the image below.

The illustration shows an image on a checkerboard background (meaning no background color in Gimp). My screen doesn't look like that. There is a white background.


Yup, this article is crap. Gave up.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 13, 2005 09:04 PM
Come on, if you have a complaint, try and make it a little more than "Your program is configured differently to mine." The GIMP still has a layer palette, if you don't know how to open it, maybe an interface tutorial is more what you need.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 04:13 AM
The GIMP still has a layer palette, if you don't know how to open it, maybe an interface tutorial is more what you need.

The article is supposed to be a tutorial! It certainly is not obvious how to get to the "layer palette". It's not accessible from any of the menus, nor from right-mouse-click. At least, not in Gimp 2.2.4, and if the tutorial article was version-specific, it should have said so.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 05:09 AM
What kind of tutorial is this? It tells me to open the GIMP, but I don't have the button on my computer that opens programs!

If you don't know how to do fundamental things like opening the layer palette you should either complain to the GIMP's interface designers or learn how to use an interface.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 11:08 AM
If you aren't capable of finding how to manage layers, what makes you think you're qualified to operate Gimp without a tutorial? Finding the layers dialog is about on par with tying your own shoes as far as difficulty goes.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 07:25 PM
Of course there it's in the menus - it's Dialogs -> Layers. Maybe you should bother checking these things before whining about how the article does not assume that you never used GIMP before.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 09:48 PM
THE LAYER PALETTE IS OPENED BY DEFAULT IN ANY NEW INSTALL OF A GIMP VERSION.

sorry to shout, but you are such a stupid arsehole I guess there is no way to reach your brain.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 15, 2005 06:22 AM
The original comment, that the article appears to be version-dependent, seems accurate. The statement that this tutorial should be teaching the basics of GIMP, such as how to find the Layers Palette is whining -- browse around the menus a bit and one will find the Layers menu.

Complaining about the GIMP interface here is useless. Or worse than useless. Everyone already knows that the GIMP interface isn't like any other graphics manipulation tool. But comments here should be about the article, not about GIMP.

In summary, I agree that the article should state which version of GIMP is being used. And it might be nice if the author gave a hint on how to find those various pieces of the application (such as Layers Palette), but that's not his focus.

#

Re:Article is wrong - so it's crap

Posted by: Anonymous Coward on April 16, 2005 01:38 AM
If you can't imagine what layers palette is your problem, not problem of the tutorial. The "Layer palette" is shown on the image and every GIMP version has it since the times GIMP supports layers. Press Ctrl+L and you'll get it, it's Layers, channels and paths dialog.
Over.
cornelius

#

My goodness

Posted by: Anonymous Coward on April 15, 2005 05:09 PM
Some people do seem to feel that they have a duty to be rude...

This was a very nice, informative article that showed me something I didn't know how to do before, something quite original.

#

Nice!

Posted by: Anonymous Coward on April 15, 2005 07:28 PM
Very nice, thanks for posting this. ^^

#

Great work!

Posted by: Anonymous Coward on April 15, 2005 09:57 PM
This is a very nice walk-through for folks who are used to doing simple work in the Gimp and interested in developing their skills. Simple techniques like this are widely used to come up with some of the most striking effects that you see on a regular basis.
-ajs

#

Please don't listen to the assholes!

Posted by: Anonymous Coward on April 16, 2005 05:45 AM
Thanks for sharing your contribution with us, its fun to try something new every day.

Assholes: get a life!!<nobr> <wbr></nobr>:-)

#

Great. Tnx for sharing your knowledge

Posted by: Anonymous Coward on April 16, 2005 08:46 AM
I enjoyed a lot practising with your tutorial. It's great to learn from who knows<nobr> <wbr></nobr>:D

I learned a lot of concepts about Gimp I didn't know.

Thank you so much

#

Thanks

Posted by: vhi on April 17, 2005 06:17 PM
I never realized that noise can be used to benefit. I guess it is one of those mental blocks that your article just cleared. Now I have some more techniques at my disposal!

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya