Everything Photoshop Subscribe

How to Create a 3D Shelf Element Similar to Dragon Interactive

In Interface by Arik

In the reader suggestions recently, I found a request to see how to produce the shelf interface on the incredibly cool Web site for Dragon Interactive, a Los Angeles–based creative agency. So here's a method for producing the shelf effect.

Editor's Note: Dragon Interactive requested us to note that this tutorial is not actually written or supported by Dragon themselves.

Step 1

Using the Pen Tool (P), create a path as shown below. Don't worry about the background color. I chose this color so that you can see the path. Next, go to your Paths Palette and hit the Create New Path button. This will create a new Path Layer and save your existing path to the layer below it. I named mine "Separator."

Note: If at any point you lose the selection of your path, go to the paths tab and select the separator layer. This is important for the coming steps.

Step 2

Create a new layer, select the Brush Tool (B), and select a 1px, hard brush. Switch your foreground color to a black and then select the Pen Tool again. Now right-click on the path and choose Stroke Path. In the box that pops up, make sure the Brush Tool is selected and that Simulate Pressure is off. Call this layer "black separator." Hit Enter if the path is blocking your view of the black line. And don't worry, as I mentioned earlier, you can re-select this path in the Paths Palette.

Step 3

Duplicate the "black separator" layer, make sure the Move Tool (V) is selected, then hit the left arrow key once. This will nudge that line one pixel to the left, now hit Ctrl+I to invert the colors. Name this layer "white separator" and place them in a layer set called "separator." Note that the Create a New Group button is right next to the Create a New Layer button. For now, keep the mode of this layer set to Normal Although we will change it later on in the tutorial.

Step 4

Select the Paint Bucket Tool (G) and use the settings shown in the screenshot below. Then create a layer below the separator set and fill the left side of the separator with #3d3d3d.

Create a layer above that and do the same for the right side, except this time use #111111. Nudge the "dark grey" fill, one pixel to the left (using the arrow keys!) and the "light grey" fill, one to the right. You should be aware that if you are at 100% zoom view, then hitting the left/right arrow key will move 1px, if, however, you are zoomed out further, then it will move a different number of pixels. For example, if you are at 66% view, then hitting the arrow key once will move 2px, at 50% view it will move 3px, and so on. So make sure you are at 100% :-)

After this, using the Brush Tool or the Pencil Tool, brush along the sides of the canvas to fill that one transparent pixel back up with the correct color. Drop these two into a set called "background."

Step 5

We have our basic set-up ready. Now it's time to add the highlights and shadows. Create a gradient with the color #707070 as shown below and then gradient-fill a new layer with that gradient. Make sure the size of the gradient is about the same as mine. If you are having trouble with gradients, you can either expand them vertically by hitting Ctrl+T and dragging them out vertically or you can use the Filter > Blur > Motion Blur filter (I prefer the free transform).

On top of that, on a new layer, create a similar narrow gradient filled with white. Set that to Overlay and drop the Opacity to 40%. I put these two layers into a set called "highlights."

Step 6

The shadows were created in a similar way. First a "large shadow" gradient using black with the layer and set to Soft Light and 80% Opacity, a stretched out gradient was created. Then on top of that, a "small shadow" was added, again using black but this time the layer was set to Overlay and the Opacity dropped down to 40. These two layers were put in a set called "shadows."

Step 7

The highlights and shadows are way too defined on the dark grey area—time to fix that.

Put the "shadows" and "highlights" into a new set. I called mine S/H. Make sure the highlights set is below the shadows set. Add a layer mask to the S/H set.

Now Ctrl-click on your "dark grey" layer. This time, using a low opacity black brush go over the masked area within the selection. With each stroke, the shadows and highlights fade away. Regulate the opacity of your black brush in order to gain more control over the transparency.

The more opaque the brush, the more transparent the shadows and highlights will become. If you still feel you need even more control, you can add masks to the layers themselves. For instance, adding a mask to the "highlight large" layer will let you edit the opacity of that layer only. Use this to your advantage.

Step 8

Now comes the hard part. Depending on your taste and skill, you will now have to brush in additional shadows and highlights. I suggest you put all of the brushwork into a separate set called "Brush" at the top of the document. Use low opacity black brushes to add shadows. Patience is key here. There is no fixed way of doing it. I used a big (180px), soft, black brush set to 10% Opacity and tapped along the edges.

 

Step 9

Duplicate the "background" layer set and hit Ctrl+E. This will rasterize it into a single layer. Use the Dodge and Burn Tools to add additional highlights and shadows if necessary. Highlight mode works best here, with a low exposure (around 15-20%).

 

Step 10

Until now we've used the separator to help us in our process with the shadows/highlights etc. so that we have a clear division between the light and dark area. Now we are going to finalize this design. Set the "separator" set to Overlay. Wow, an indent appears! If you are not happy with it, duplicate both the "white separator" and "black separator" layers and nudge them one pixel to the right. It creates a less prominent appearance.

 

Conclusion

The effect isn't too hard to achieve. When I first analyzed the Web page, I understood that the shape could be created with the Path Tool and the rest were just a bunch of shadows and highlights that could be created thanks to a combination of brushing and gradients. The more work you put into those shadows, the better the end result.

But wait, this doesn't look anything like the Dragon Interactive Web page!

No it doesn't. This tutorial was written to show you how this 3D effect is created. The Dragon Interactive site has a lot more to it than this one interface element, and you can learn a lot by studying how they've placed, colored, and sized objects. In general it's not a bad idea to analyse any design you come across and think about why the designer has done what they've done, as well as how they did it.

If you enjoyed this post, your vote is always highly appreciated!! Delicious StumbleUpon Float Reddit Mixx

Comments

Leave a Comment
  1. Cool tutorial. I can see how this could be applied to many different shapes. Kind of a basic rundown of light/shadow.

  2. Great effect! Thanks alot :D

  3. This is a great little effect. I’m sure it will be useful somewhere!

  4. very nice 3d effect

  5. I love the Dragon Interactive design! Thanks for sharing Arik.

  6. Hey.
    I love your blog and all…
    *sigh*
    but, your RSS feed takes forever to load.
    You should consider not allowing images in the feed, or using partial feeds.

    it’s just really annoying to have my whole computer freeze up temporarily while trying to get your RSS feed to load (and my computer can handle quite a bit…)

  7. Simple tutorial. But still a good one.

  8. I really like this. Thanks a lot. :)

  9. Ha, I suggested this in one of the posts. Very cool, thanks

  10. Very cool effect! I was planning on using something similar to this on my new site and this will help for sure! Thank you!

  11. great work! thanks for sharing this.

  12. Great tutorial, but am I the only one who finds Dragon Interactive’s site kind of ugly ?
    It reminds me of websites from a few years back when the brushed-metal interface was all the rage.

  13. Nice one :) I’ve seen Dragon Interactive site few weeks ago and honesty I thought that is a nice “picture”, but poor website with lots of “wow! cool stuff”… But shelf effect is interesting :)

    Thanks for tutorial.

    BTW, in Dragon Interactive logo it’s not a dragon only griffin… ;-)

  14. That’s a great method of creating a simple 3D look - I like it very much, and may well put it to good use.

    Thanks for sharing!

  15. very nice 3d interface ! nice tutorial! thanx for sharing ;)

  16. wow really nice tut written. Great job

  17. Really well done!! Congrats!!

  18. goood

  19. This is cool, some good tips for 3d interfaces too

  20. Sacha you’re not, I agree with you. Well, let’s say, not ugly but nothing special.
    Moreover I’m sorry, but this tutorial is kinda useless, just a “rip” of a site background? How am I supposed to use it? The technique is very basic, too!

    Quote:
    “when I first analysed the web page I understood that the shape could be created with the path tool and the rest were just a bunch of shadows and highlights”

  21. Nice , but where can i use that ?
    It’s so alone in here …

    But very nice …

  22. Agree with Wouter !

    well done.

  23. High quality article. Love it!

  24. No Sacha, you are not. I agree with you. The Dragon Interactive site is pretty ugly. Bad choice of colors, bad use of JS, and nothing special at all. However, I appreciate this tutorial since it taught me a few things. Thanks guys!

  25. Beautiful website! And this tutorial, shows how to make some of the design! :D

  26. very detailed article and well thought through another good tutorial provieded by psd tuts..
    congrats

  27. FREE!

  28. Very interesting Design element for a website and maybe also for print..huummm?!?….Thanks for the tut!! :o)

  29. Thanks for helping me find a great site like Dragon Interactive witch (to my shame) I didn’t know about and also nice effect You can achieve a lot of interesting design elements from it
    10x mate

  30. Hmm.. learned some new stuff, but I really can’t say I like their website either. I looked at the two websites they did Bullspot.com and April Zero.com and I must say, while the websites look decent, they’re too over the top. What do I mean? Well first of all, the designers apparently love the Red/Blue/Yellow/Green color scheme. Second of all, check out bullspot.. they use Javascript in the most unnecessary places. The search button? If you move your mouse over and off it really fast, it will just keep highlighting itself over and over even if your mouse isn’t over it. Same with their navigation bar. They should just use CSS and keep it simpler.

    But I’m just nitpicking. Great tutorial.

  31. Gravatar

    Mike Wilson

    I’ve got to agree with Brian Purkiss… please fix the RSS feed so it only feeds the us a teaser… it takes FOREVER to load!

    Not too shabby a tutorial though! Keep up the good work

  32. Nice outcome. Thanks for the tut!

  33. Great Tutorial.

    I don’t know if there’s a CSSTUTS.com, but what I Really wanna know is how they made the buttons fade in and fade out.

  34. We all thank you for sharing.

    Off course this technique you just showed to us is one from the milions that the shadows and light can do.

  35. David, they certainly used Javascript for their buttons, CSS doesn’t have the power to do what their buttons did. This is just an example I quickly googled: Javascript Fading Button.

  36. awesome effect…but i failed to make the line with pen tool.
    i really want to make this effect

  37. David, get the “Web Developer” addon for firefox, it’s very useful to understand those kind of things. You can deactivate javascripts and you’ll notice that button rollovers will not fade any more.

    A common way to achieve that effect is use a code like:

    Services

    1) css part: you hide the span with visibility:hidden, give the outer div a background image and make a second image for the rollover status

    .hide{
    color:#FF0000;
    font-size:1px; /* if the img is smaller than the area that text would cover */
    visibility: hidden;
    }
    #menu2 a{
    position:absolute;
    width: 115px;
    height: 60px;

    background-image:url(images/menu_2.gif);
    background-repeat:no-repeat;
    }
    #menu2 a:hover{

    background-image:url(images/menu_2_hover.gif);
    background-repeat:no-repeat;
    }

    This way if the js is deactivated you’ll still see the rollover/rollout effect (but without fading)
    The visibility thing is for search engines indexing and/or screen readers purposes.

    2) js part: for the fading effect you can insert the over-status image inside the div, then you give it alpha=0 and make it fade in/out (increment/decrement alpha value) over the other image (background) calling a javascript function similar to the one posted by greg.

    Just the first thing that came in my mind. Hope it helps!

  38. Sorry, the code wasn’t written down, hope this time it works:

    <div id="menu2"><a href="services.html"><span class="hide">Services</span></a></div>

    btw it is a span with class “hide” inside an a href inside a div with id=”menu2″

    Sorry for the mess! :)

  39. Gravatar

    Gary Spedding

    I too could not get the path right with the pen tiol. Got half way down and the first (to the left) curve but could not get an approriate continuation thereafter. Tried even just drawing a straight line down at the end (after the half way point) - holding Shift - but that line was curving all over. Any thoughts for me and the other fellow having issues?

    Thanks for this and all the neat tuts though.

    Gary.

  40. @ Gary

    Here are a few pointers:

    1) I didn’t use the handles all that much, try to avoid stretching them too far
    2) make sure the handles follow the straight (angled) line in the middle.
    3) If you want smooth roundings, you need to drag handles into a 90 degree position

    x
    |
    |
    oo——-x

    X are the anchor points, while the dashes represent the handles and the ‘o’ are the handle ends. This will create a nice rounded corner from the top right to the bottom left. (Like a lower left corner on a rounded rectangle.)

    It took me a few tries to get it right myself.

  41. From the top left, to bottom right, my bad.

  42. @Greg & @Alberto:

    Ah! No wonder I can’t find an example then! Thank you guys so much!

  43. Perfect!!!!

  44. Nice to see you using Windows Classic.

    Thanks for the tut.!

  45. @ Johan.

    I disabled all of the fancy xp stuff because it gives me more RAM to work with.

  46. tut is ok, i dont know where i will use this, but… maybe… future shows ;p

  47. same here its ok but not very practical

  48. Hy,
    Can anyone explain me how to do to make the “path” as a “wall” for the gray & black backgrounds ? i tryed almost everything, but anyway, the when i apply a background color, all my area is filled… but the tuto is made so that the path stops as if it was 2 différents parts.

    (sorry for that approximative explanation, english is not my mother tongue …)

  49. Ok, i found it. Tolerance should be 1 … i was at max.
    ++

  50. finally……i’ve done it……but when i got to step 8 i use the same method step 5…..still the same effect…..anyway…..thanks for the tutorial…..keep it up.

  51. Nice tut and nice design.

  52. This Is super cool… super hot. Thank you.

Add a Comment

Note: We use Gravatars on PSDTUTS, they are little icons that appear next to your name on this site and on many others. You can get a Gravatar account for free and any other site that supports it will show your avatar too!

 

Trackbacks

Leave a Trackback