PhotoshopForums.com Home
Navigate Contact FAQ Search Members
Gradient following an objects path
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> General Photoshop and Design Discussion
 See a User Guidelines violation? Please contact us.
Author Message

Thresher

Joined: 10 Aug 2005
Posts: 3



PostPosted: Wed Aug 10, 2005 8:49 am    Post subject: Gradient following an objects path Reply with quote

I'm trying to get a gradient fade to follow an objects path. I would like the gradient on top to follow the curve of the object on the bottom, is there any way to do this in Photoshop? If not, I know it's a Photoshop forum, but does anyone know how to accomplish this in Illustrator?

View user's profile Send private message

lasa

Joined: 08 Aug 2005
Posts: 1090
Location: Florida
PS Version: CS
OS: MS XP

PostPosted: Wed Aug 10, 2005 11:05 am    Post subject: Reply with quote

The only way I have ever been able to do it is by making a horizontal tube like you first example then shift it 90 degrees and apply the distort / shear filter, then sending it back 90 degrees... It works, but you would think there would be a better way? have no idea in Illustrator.

If you figure something better in PS please tell us.

Lasa
View user's profile Send private message Send e-mail Visit poster's website

Tristan Gray

Joined: 05 Aug 2005
Posts: 47
Location: Halifax, Nova Scotia, Canada


PostPosted: Wed Aug 10, 2005 11:22 am    Post subject: Reply with quote

Apply the gradient to the object before it is bent. And then just bend it, there are several ways to bend it like you are doing and that will enable you to use the gradient properly.

That being said, you seem to be using the gradient to create a sort of depth appearance on metal rods. If the rod were truly bent like that the gradient would not follow the path like that in real life if there were a real light source illuminating an object with depth. So... just a thought that you may want to look at real world example of the effect you are trying to create and then rethink the approach.
View user's profile Send private message

Tristan Gray

Joined: 05 Aug 2005
Posts: 47
Location: Halifax, Nova Scotia, Canada


PostPosted: Wed Aug 10, 2005 11:41 am    Post subject: Reply with quote

Anyways, this is just an example of me messing around with a few different ways of doing this. But as I said, perspective is important.


pipesgradients.jpg
 Description:
 Filesize:  134.13 KB
 Viewed:  557 Time(s)

pipesgradients.jpg


View user's profile Send private message

Thresher

Joined: 10 Aug 2005
Posts: 3



PostPosted: Wed Aug 10, 2005 12:43 pm    Post subject: Reply with quote

Thanks for the replies, I got it to work using lasa's method of the shear after applying the gradient to the object. I wasn't really going for a lifelike pipe look, but more of a stylized background.

The shear is a good tool, but it seemed pretty hard to get it to line up correctly. I had to place the extra bending point I made almost all the way to the bottom in order to get the two sides even. Is there a better way to make the object curve like this? It still seems like the left side is curving more than the right.



View user's profile Send private message

SCync

Joined: 28 Jan 2005
Posts: 98
Location: Montreal


PostPosted: Wed Aug 10, 2005 1:00 pm    Post subject: Reply with quote

Good example, and insight Tristan. Here's another method to consider, as I find the distort filters will often pixelate the object.

1. Make sure your object on its own layer.
2. Click the Layer Style button and select Stroke.
3. When the dialog comes up change the position to Inside, and slide the size over until the object is filled with the stroke colour.
4. Change the fill type to Gradient, and now the magic, change the style to Shape Burst. You can change the gradient colours to your pleasing.

(note: in your case you will want to make this curved bar on a wider canvas, then create a layer from the Stroke Layer style [in the layers palette, right click the Stroke and select Create Layer], then highlite the new layer and hit Ctrl-E to merge down. This will allow you to crop out the bevels at each end. Then you can drag this layer into your working project)

The attached uses inside stroke method.



Shapeburst copy.jpg
 Description:
 Filesize:  26.35 KB
 Viewed:  550 Time(s)

Shapeburst copy.jpg


View user's profile Send private message

Thresher

Joined: 10 Aug 2005
Posts: 3



PostPosted: Wed Aug 10, 2005 1:09 pm    Post subject: Reply with quote

Really cool method SCync. That would give me complete control on the object. I read about this method on another site, but it was not explained quite as clearly.

Thanks again for the reply.
View user's profile Send private message

lasa

Joined: 08 Aug 2005
Posts: 1090
Location: Florida
PS Version: CS
OS: MS XP

PostPosted: Wed Aug 10, 2005 2:38 pm    Post subject: Reply with quote

SCync, Thanks alot for that one!!
I've been at PS for a good number of years now and I have never EVEN even seen the SHAPE BURST much less used it.
That is so so cool!

Thank you Thresher for asking the question and SCync for that pearl!

Lasa
View user's profile Send private message Send e-mail Visit poster's website

Gallo_Pinto

Joined: 15 Jul 2005
Posts: 785
Location: BC, Canada


PostPosted: Fri Aug 12, 2005 9:21 pm    Post subject: Reply with quote

This is done with inner shadow, then flattened and another darker smaller inner shadow and a drop shadow.


temp.gif
 Description:
 Filesize:  47.57 KB
 Viewed:  527 Time(s)

temp.gif



_________________
brush your hair and comb your teeth
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> General Photoshop and Design Discussion All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Contact - User Guidelines >

Copyright © 2003-2016. PhotoshopForums.com, iFroggy Network. All Rights Reserved.
Powered by phpBB © phpBB Group. phpBB SEO. Privacy Policy.
We are in no way affiliated with Adobe. Photoshop, Adobe and related marks are registered trademarks of Adobe.
PhotoshopForums.com