It is currently Fri Apr 19, 2024 6:54 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Sun Jun 03, 2012 7:21 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
How to Make 3D Push Buttons



In this segment, I’m going to show you how to make a small panel with four raised push buttons for a Control Panel. You will need quite a few things in order to complete this tutorial which are listed below. Get everything installed before you begin the tutorial.

Python - http://www.python.org/ftp/python/2.6/python-2.6.msi.
Selection Bevel script - http://gimpscripts.com/2011/10/selection-bevel
Layer Effects - http://gimpscripts.com/2011/10/gimp-layer-effects/ (Python version)
Drawable Multiplication - http://registry.gimp.org/node/22383
Glossy Stroke script - http://gimpscripts.com/2011/10/glossy-stroke-3d/
The two images and the brush from the attached Resources zip file.

Step 1.
Open a new layer 800 x 600 pixels and set your resolution at 1200 ppi.

Step 2.
Create a new transparent layer and call it “Buttons”, then duplicate it and rename it Metal. Place a vertical guide at 400 pixels and a horizontal guide at 300 pixels using the rulers at the top and left of your image window. Zoom in to 200% if you need to.

Step 3.
Click on the Rectangle Select tool and in the tool dialog check the box for Expand from center. Place your mouse cursor in the exact center and create a selection 500 x 200. Set your FG color to C3C3C3, and drag the color over to the selection to fill it.

Image

Step 4.
Take a minute or two and make yourself some brushed metal with Noise and Motion Blur. Adjust your Curve settings to darken it a bit, then add a new layer, apply a metallic gradient and set the layer Mode to Overlay. If you are not familiar with this process you can review my first Metal Wurx segment here viewtopic.php?f=23&t=3750

or

Skip Steps 3 & 4, and simply go to File>Open as Layers and select a brushed metal image like the one I provided in the attached zip folder, or just copy this one.

Image

If you’re using a brushed metal image, be sure to right click to Add Alpha Channel.

Step 5.
Select the Buttons layer to make it active again, and move it to the top of the layer stack. Click on the box for Rounded Corners in the Rectangle Select tool dialog and set the Radius to 10. Check the box for Fixed (Aspect ratio) as well. Change your view setting to about 200% and use the guides to make a selection 80 pixels x 80 pixels. Change the FG color to red (FF0000) and drag it over to the selection to fill it with the red color and turn off the selection.

Image

Step 6.
Duplicate the Button layer, then go to Filters>Blur>Gaussian Blur and use 15 for both amounts then click OK.

Image

Here’s what your layers should look like so far.

Image

Step 7.
Turn off the visibility for the blurred Buttons copy layer and select the original Buttons layer to make it active again. Go to Filters>Map>Bump Map and enter these settings, then click OK.

Image

Change your view settings to 400% and you will see some lines or distortions resulting
from the bump map process.

Image

To fix this and smooth it out, check the little box at the top of the layers dialog (Lock) to lock the alpha channel. Now, repeat the blur process but only use 7 for the amount and click OK. When you are finished, tick the little box again unlock the alpha channel.

Step 8.
Now, delete the blurred Buttons copy layer at the top and right click on the Buttons layer to select Drawable Multiplication and use the following settings. Once you have all the settings entered, make sure you have the box checked to Merge layer copies together, then, click OK

Image

The script will generate the selected number of copies, offset each one incrementally and merge them all into one layer called Buttons copy #1. This creates the 3D effect for our button. Here is what our button looks like so far.

Image

Right click on the Buttons copy #1 layer and select Merge Down so that we have a single Buttons layer again.

Step 9.
Right click on the original Buttons layer to make it active again and select Alpha to Selection. Go to Filters>Light and Shadow>Glossy Stroke 3D. When the dialog pops up the first thing we need to do is click on the band of color at the top and change the Color to FF0000 (red). Set the Selection to Fill, the 3D amount to 3 and the Light height to 0.7 then, click OK.

Image

This gives our image even more depth with the lighting effects of the Glossy Stroke, but if you look over in the layers dialog, we have a lot of layers that have been added.

Turn off the selection and delete the Drop Shadow layer, the Stroke layer and both Volume layers so that the only layer leftover from the filter operation is the Glossy layer. Your image and layers should now look like this.

Image

Step 10.
The glossy layer should still be selected and active so go to Filters>Blur>Gaussian blur and enter 3 for both settings and click OK. Select the Move tool and click on your image to activate the tool. Use the arrow buttons on your keyboard to move the Gloss layer closer to the top left corner. Hit the Up arrow button 4 times and the Left arrow button 3 times.

mg]http://www.gimpchat.com/files/1428_buttons_11.jpg[/img]

Step 11.
We need to reposition our button on the canvas so first, right click on the Gloss layer and Merge down so that we are back to a single Buttons layer again. The Move tool should still be selected but we still need to click on the image again to activate it for that layer. Now use your left arrow button on your keyboard to move the Buttons layer to the left until the far right edge is on our vertical guide like so.

Image

Now, duplicate the Buttons layer three times.

Step 12.
Select the top layer (Buttons copy #2) and click on it in the image window to activate the Move tool for that layer and move it to the left using the left arrow button again until there is only one pixel between the two buttons at the top and bottom like this.

Image

Now use the left arrow button and move it 14 more spaces for a total of 15 spaces.

Image

Rename this layer Button 1 and move it to the bottom of the button layers in the layer stack.

Step 13.
Rename the original Buttons layer to Button 2 and change your view setting to 200%. Repeat the procedure with the other two duplicate layers, moving and arranging in the layers stack so that you have four buttons all aligned and spaced equally and the layers renamed 1 thru 4.

Image

Step 14.
Turn off the visibility to the Background and Metal image layers and right click anywhere in the layers dialog to select Merge Visible Layers. When the dialog pops up, click on the Merge button. Now we are back to a single Buttons layer so rename it “Buttons” again. Now turn the visibility back on for the other two layers.

Step 15.
Select the Metal layer to make it active, and grab the Rectangle Select tool again. Be sure to uncheck all the boxes in the tool dialog. We’re going to make the slot that the buttons will be sitting in so make a selection until it is just above the bottom of the buttons and just inside the right side but just below the top and just inside the left. The top right and bottom left corners need to be equal distance from both edges.

Positioning this selection is easier to show than it is to explain so here’s what it should look like. Zoom in your view to check and make sure the positioning is correct. Remember the buttons will be sticking up and covering the top part while the bottom of the buttons will be sitting down inside the slot appearing to be hidden under metal panel. You’ll see what I’m talking about in just a minute.

Image


When you are satisfied, hit the delete key to cut out the selection from the Metal layer. Look over at your layers in the layers dialog to make sure you see the slot in the metal layer or turn off the visibility of the Buttons layer temporarily if you want to see it better.

Step 16.
Select the Eraser tool and pick a fairly large circle brush. With the selection still active, go to Select>Invert then click on the Buttons layer to make it the active layer. Carefully erase the outside edges of the buttons, at the bottom and right hand sides of the selection only where the slot will be covering up the buttons. Be careful not to go past the bottom left or top right corners of the selection.

Image

Change your view settings back to 400% for a moment and you will see that when we “cut out” the area from the center of the Metal layer, and erased the “hidden” parts of our buttons, we ended up with some small areas of the white background showing through the layers between the corners of our buttons. This is quick and easy to correct.

Image

Step 17.
Create a new transparent layer below the Buttons layer, and since our selection is still active, go to Select>Invert. Now reset your FG/BG colors to the default black and white, and drag the black FG color over to the selection to fill it. This will give us a false background behind the buttons to get rid of the white areas.

Image

Turn off the selection then, right click on the Buttons layer and Merge down the Buttons layer with the New Layer. We can also get rid of the guides now.

Step 18.
Go to View and select Zoom in to get to 150% then, right click the Metal layer in the layers dialog to choose Alpha to Selection. Go to Filters>Distorts>Bevel and enter the following settings shown below.

Image

It will take a few seconds for the filter to run its course, but when it does, turn off the selection and here is what it should look like afterward.

Image

Step 19.
Delete the Background layer then right click on the Inner Bevel: Metal layer created by the Bevel filter, and select Merge Down. Click on the Buttons layer to make it active and go to Filters>Light and Shadow>Drop Shadow and enter the following values.

Image

Once you have your Drop Shadow layer, right click anywhere in the layers dialog and select Merge Visible Layers then click on the Merge button in the filter dialog.

Image

Now, that’s better. Our buttons look even more like they are raised up out of the panel, but we still need to give our buttons a purpose.

Step 20.
Go to File>Open as Layers and navigate to wherever you saved the “Arrow_Solid.png” image, from the Resources zip file, to open it as a new layer. It will be too large so we need to go to Layer>Scale Layer and click on the drop down box to select “percent”. Enter 25 for the amount (25%) and click on the “Scale” button. (it won’t stay at exactly 25 %)

Image

Once the Arrow image has been resized, change your view setting to 400%, select the Move tool, click on the Arrow image and position it in the center of the red part or “top face” of the second button from the left. Use the keyboard arrows to get it just right, if you need to, so that it looks like the screenshot below.

Image

Step 21.
Duplicate the Arrow image layer 3 times and rename them “Left”, “UP”, “Down” and “Right”. Use the Move tool/keyboard arrows to reposition the arrows to the appropriate button then change your view setting to 200%.

Image

Step 22.
Select the top layer, “Left” and go to Layer>Transform>Rotate 90 degrees counter-clockwise. Now adjust the Down Arrow layer using Layer>Transform>Flip Vertically and the Right Arrow layer using Layer>Transform>Rotate 90 degrees clockwise, until they are all positioned correctly like so.

Image

I guess we should have renamed our layer that still says “Brushed Metal.png” back to “Buttons” after Step 17 so there’s no confusion, so let’s go ahead and do that now.

Next, turn off the visibility for the Buttons layer and right click in the layers dialog and use Merge Visible Layers again to make one layer with all four arrows. Rename this layer Arrows then, turn the visibility of the Buttons layer back on and we’re ready for the next step.

Image

Step 23.
Right click on the Arrows layer and select Layer to Image Size. Now right click again and chose Alpha to Selection. Go to Layer>Layer Effects>Bevel and Emboss and enter the following settings. (This is the Python version of Layer Effects not Script-fu.)

Image

This filter will also create additional layers for the highlight and the shadow.

Image

Turn off the selection and reduce the Opacity of the Arrows layer to around 25%.
I purposefully used the default settings of 75% in the Bevel and Emboss dialog so you could see the results. I prefer to crank them up to 100%. I also applied a Gaussian Blur using a value of 1 for both the Shadow and the Highlight layers to smooth out some of the pixelization.

Image

Here’s another variation. In the Bevel and Emboss dialog, set the Size to 3 and the Angle to 120 degrees. Set the Opacity for the Highlight and Shadow layers to 70%. Apply the same Gaussian Blur to the Highlight layer but use a setting of 2 for blurring the Shadow layer.

Image

You can see that by making subtle changes in the filter dialog you can adjust the final appearance of the arrows to your liking. You may even want to delete the original Arrows layer, but I much prefer a little shadow effect for the bottom portion of the arrows.

OK, we’re almost done. Our buttons look pretty good and our panel is good but there is one thing missing.

Step 24.
Right click in the layers dialog and Merge Visible Layers to get to one Buttons layer again. Duplicate the Buttons layer and turn off the visibility for the duplicate. Create a new transparent layer between the two layers and name it Bolts. Select the Brush tool and in the dialog choose the Bolt Head Spaced brush that was included in the attached zip file. Place a couple of vertical and horizontal guides near the corners of the panels. If you are at 200% view setting, place them 5 marks in each direction from the corners.

Image

Set the brush size to about 0.7 and zoom in to 400% so you can place your bolts accurately using the guides.

Image


Step 25.
Once you have all your bolts in place, and more than 4 if you like, right click on the bolts layer in the layers dialog and select Alpha to Selection, then Select>Invert. Select the top layer, the Buttons copy, and hit the delete key to remove everything except the areas where the bolts are. Now, set the layer mode for the Buttons copy layer to Overlay, the Opacity to 50%, and turn the visibility back on.

Image

I set the view at 150% for the screenshot above. If you set it at 400% you will see that very little detail of the bolt head is going to be seen even without the Overlay, so just know that we used the other layer to get the bolt head to look more like the metal panel.

Step 26.
If you’ve made it this far you already know that this is not the shortest or easiest tutorial, but there’s only one last thing to do. First, Merge down the Buttons copy layer with the Bolts layer. Turn off the guides, and go to Filters>Light and Shadow>Drop shadow. We need very little shadow to accomplish this step since our bolts aren’t that large, and don’t stick up that much. Enter the following settings and then click OK.

Image

Right click and select Merge Visible Layers, click the Merge button and our image is complete!

Image

You can of course create any kind of buttons or use different colors or perhaps numbers to make a number key pad, or use any kind of metal for the panel. The steps are basically the same.

I hope you found this tutorial helpful. Next in our Metal Wurx series is how to make some indicator lights for something like the simple control panel below. The control panel may be simple but the tutorial for the lights is not, so be warned, it’s a long one!

Image


Attachments:
Push Button Resources.7z [266.63 KiB]
Downloaded 579 times

_________________
Image


Last edited by Draconian on Thu Jun 07, 2012 6:01 pm, edited 1 time in total.
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Sun Jun 03, 2012 7:30 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
Looks like fun. When I've got all your knobs, buttons etc sorted, you just might be seeing a playable Minimoog emulation from me. Just got to re-install Synthedit and get to grips with how a Minimoog is wired.


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Sun Jun 03, 2012 7:34 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Minimoog? Synthedit? It's cyberspeak, right?

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Sun Jun 03, 2012 7:35 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
:rofl That's right Drac. :rofl


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Sun Jun 03, 2012 7:55 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Cool tutorial, and thanks for sharing.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Mon Jun 04, 2012 6:46 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Thanks Rod, you're welcome.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Mon Jun 04, 2012 7:47 am  (#7) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Great one Drac, got it converted into a PDF. I will try it some time this week.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Mon Jun 04, 2012 9:24 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Thanks Molly, have fun.

(I like your sig)

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Mon Jun 04, 2012 1:49 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2011
Posts: 395
Location: Indianapolis, IN
Drac,

Do you have all these on pdf files?? I think I've missed some and have down time to play at work but I have to watch how much outside content I d/l at work.

It's easier to have that pdf then looking at my mobile phone. I have two 22" screens at work be a shame not to use them! ;)

_________________
"That which does not kill us makes us stronger." ~ Friedrich Nietzsche


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Mon Jun 04, 2012 3:02 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
I don't but Molly does. Most of them I think. I won't covert & compile into an ebook until I'm finished and had a chance to make all my tweaks.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 6:13 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jun 24, 2010
Posts: 504
Location: Western Vic Australia
Hi Drac , a very good tutorial. It is not easy but well written. I guess once you know what the end result is and if you have followed the other tuts it really is not that hard for someone with medium skills in Gimp. I deviated a tiny bit in the end I added a single pixel line at the right hand of the rightmost button to show clearance between the button and the face plate. I also chipped away a few pixels at the bottom of the buttons to give it a rounded appearance and the last thing I did was a
made an extra layer , and did a very , very slight spherical blend in the arrow selection. Magnify my image to see these alterations.
Were these add-ons necessary? No, definitely not, but I just could not help myself after I completed it your way. Thank You
Here is my tryout. Image

_________________
Image


Last edited by wbool63 on Wed Jun 06, 2012 2:02 am, edited 1 time in total.

Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 6:37 am  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Excellent wbool, you did a fantastic job. KUDO's

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 6:58 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jun 24, 2010
Posts: 504
Location: Western Vic Australia
molly wrote:
Excellent wbool, you did a fantastic job. KUDO's

Thank You Molly , I want to be sure that Drac sees that people are interested in his tuts and that his efforts are appreciated!


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 7:05 am  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Yes I agree. I don't think some people realize just how much work is involved in putting together a tutorial with all the screen shots and links etc...especially when they are as long and involved as his.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 9:32 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Wow! Those changes you made were spot on. Great job wbool63. Yes they are a lot of work but it is a labor of love. Besides, I get to Gimp a bit more this way. I learned so much from this community and it's my way of giving back.

If you thought this one was long, wait until you try the Indicator Lights tut. I'm really hoping someone will come up with an easier solution to creating the lense pattern so I can incorporate it and shorten the final product for the ebook. I have it finished but I need to go over it and make sure there are no typos or errors. I'll get it posted in the next few days.

Thanks again for taking the time to do the tutorial. You really did make some good improvements.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Tue Jun 05, 2012 10:41 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
Beautiful work Wbool. I hope I can do half as good as that when I try it.


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Wed Jun 06, 2012 4:53 pm  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I am on step 21 of this tutorial. I have had a problem with this before. My Bevel and Emboss is Script-Fu and the one in this tutorial is under layers. I don't have that one or do I know where to get it. But I tried to fudge it but I just can't get it to come out right. I want it to have that etched look the way it is in the tutorial but with my bevel and emboss I cant get it to do that. Mine raises the arrow up and in the tute the arrows look like they are indented.
Does anyone know where I can get the other script or help me figure out a solution to this one.
Mine is the Script-Fu one on the right. Thanks in advance :oops:
Image


This is how mine came out on the right, notice it doesn't have that bevel around the arrow. I matched it up as best as I could but it doesn't have the up and down feature.

Image

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Wed Jun 06, 2012 5:04 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
It's in layer effects. I thought you had that. You should be able to find it by right clicking on the layer. Do you not have the PY version?


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Wed Jun 06, 2012 5:17 pm  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I have the layer effects and they are under script-fu. I have had the same ones forever. But, the one Drac has is different. His is under Layers and it is just called layer effects, mine is called Script-fu Layer effects, I can't get the same bevel with mine as it shows on the two screen shots.

_________________
Image


Top
 Post subject: Re: How to Make 3D Push Buttons - Metal Wurx XVIII
PostPosted: Wed Jun 06, 2012 5:19 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
Try downloading the python version - it's much better than the script-fu version.


Top
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Make people metal with GEGL

27

No new posts Attachment(s) 3D Push Pin plugin version 2

3

No new posts Push the blue text out

2

No new posts Assign tablet stylus buttons

0

No new posts Attachment(s) Alignment tool movement buttons are greyed out and do nothing

1



* Login  



Powered by phpBB3 © phpBB Group