[ Monday, 9 July 2007, titter ]
Some time ago I saw a chocolate bar made with Adobe Photoshop somewhere on the Internet. I thought that Gimp can’t do worse than and I got myself to work. It seemed to be quite easy and here is the result in 28 steps.
- Create a transparent (advanced options > fill with: transparency) picture 120×80 pixels in size.
Pic.1 Creating new image
- Add two new layers and name them “projection” and “brick”.
Pic.2 Adding new layer with a name
- Select the whole layer “projection” by choosing All from the Select menu.
- Reduce the selection by about 10 pixels by using Select > Shrink
- Next, from the Select menu choose Rounded Rectangle and set the slider to 25%.
- Fill the selection with white, then select “None” and from the Filters menu choose Blur -> Gaussian blur. Set the blur radius to 10 pixels.
- Now fill the brick > layer with rgb(97,49,2).
Pic.7 Layers, as they should look
- From the Filters > Map menu choose Bump Map. In the mapping dialog set layer “projection” as bump map. Set the Depth slider to 5 and set X and Y offset to -1. Set Ambient to 100.
- From the Script-Fu menu choose Decor -> Add bevel, uncheck Work on copy, set Thickness to 5.
- Repeat Add bevel.
- Add your text, preferably in white. Rotate the text layer about an arbitrary angle if you feel like it.
- Blur the text with Gauss with a radius of 1.
- To end up with two types of pieces with different labels, duplicate the layer “brick”. It’s understood that you should have a second label too.
- Apply Bump Map to the layer “brick”. Set your label as the mapped object. It’s easier when you have previously reset the filters’ settings. In the Mapping dialog set Map Type to Spherical, check Invert bumpmap, set Depth to 1, set Ambient to 100.
- Render the second label onto the other copy of the layer “brick”, the same way as done before.
- Now set Text layers covering to 5%. Turning appropriates layers’ visibility on and off lets you see your bricks
- Create a new transparent picture 720×320 in size.
- Turn Snap to grid and Show grid on in the View menu.
- Create two new layers.
- Change your current view to that one with bricks.
- Copy one of the bricks with Edition menu -> Copy visible.
- Go to the new picture and paste into the one of new layers, Edit -> Paste into.
- You proceed simirarly with the second brick, except that you paste it on the second layer.
- Now crop both layers with bricks in them with Layer menu -> Autocrop layer.
- Subsequently duplicate layers to obtain 12 bricks.
- Place bricks with the help Layers’ movement and selection tool.
- If you want to, scale the bar down.
- Save once you’re done.
A chocolate bar with some text engraved looks much better, so move on.
Pic.12 Brick with label “Kifer71″
Pic.14 Linux is sweet!
Here comes a handy shortcut.
Starting from point 16 of this tutorial do the following:
- Before you create a new image, make a pattern from your bar of chocolate. Select the whole image, by selecting layer brick and by Selection -> All. Then from menu choose Script-Fu -> Selection -> To Pattern….
- Name your pattern “bar” for example.
- Create a new image as it was in the 17th step of this tutorial. The size can be different but still the best effect is when it is a multiplication of bar’s size. For example 600 x 240px
- Find the pattern and drag&drop it over the new image.
- And that’s it!!
This work is licensed under a Creative Commons License.
This text is based on the article by Kifer71 published in Dragonia Magazine nr 8 [in Polish]. Dragonia Magazine, a Polish online magazine about Free and Open-Source Software. You can download the latest Dragonia issue (first one in English from our mirror). The article has been slightly modified compared with the original version by the PolishLinux team.
proof read by trashcat