PhotoshopForums.com Home
Navigate Contact FAQ Search Members
Repeating An Image Along a Path Based on Path Angle?
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> General Photoshop and Design Discussion
Goto page 1, 2  Next
 See a User Guidelines violation? Please contact us.
Author Message

Dalal

Joined: 01 Mar 2006
Posts: 33



PostPosted: Tue Jul 11, 2006 1:37 am    Post subject: Repeating An Image Along a Path Based on Path Angle? Reply with quote

I'm making a game in which I need curved hill-like platforms. I want those platforms to be based on an image. I was hoping there was a way in Photoshop to repeat an image along a path based on the angle of the path. That way, I can draw the hills using the pen tool in Photoshop, and repeat the platform image along the path. It's hard for me to explain what I'm trying to do with only words, so here's a picture that kind of gets the general idea across.



The first part of the picture is the image I want to use. The next part shows the path that I use. The last part shows the result I get from repeating the image along the path based on the angle of a point along the path, see what I mean? So if I drew curved paths then it would create a hilly platform. Is there a way to do anything similar to this in Adobe Photoshop CS-2? I hope someone here can help or maybe tell me another way to achieve a similar result. I hope I was able to explain this clearly enough.

Hope someone can help!

Thanks,
Dalal
View user's profile Send private message

Gallo_Pinto

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


PostPosted: Wed Jul 12, 2006 2:01 pm    Post subject: Reply with quote

I can't say right offhand how I would get it exactly as you want it. However, I think you could get fairly close if you wer to stroke the path, move it down, stroke it again, then move it down more and stroke a third time. Then, fill between the first two strokes with your darker colour and then fill between you last two trokes with the other colour. the only thing is, on an extreme incline, the difference between this and what you actually wanted will become apparent.

One other thing you could do would be to stroke the path very wide, the width of the entire platform. then apply an inner shadow layer style to get the darker green on top. That also will show itslef on an extreme angle ans the thickness of the darker green will change.

Now here's what i think is the best way. Stroke very thick, full width of paltform. Then on a enw layer, stroke a buit thinner. Now use the magic wand to select everything above the stroke on the top layer. Make a third layer and delete the second layer. Fil the selection on the third layer, and then ctrl-click (in the layer palette) on the line between the two layers. This will group the layers and ensure that only the part of the top layer thta is overlapping the lower layer will be visible. That should work pretty much perfectly. the onl;y thing that I'm not sure about is whether or not the corners on your patform will be sharp, like your image, or rounded. You may want to play around with brush and stroke options.

I hope the explanation is okey. Just tell me if it's not, I'll try to explain better.

_________________
brush your hair and comb your teeth
View user's profile Send private message

Dalal

Joined: 01 Mar 2006
Posts: 33



PostPosted: Wed Jul 12, 2006 6:14 pm    Post subject: Reply with quote

Thanks for the reply! What you said might have worked for me if I wanted to create the image of the platforms on Photoshop itself, but the 'pattern image' that I mentioned is actually very detailed (PhotoBucket resized the image so it lost detail), so I need THAT specific image to be repeated and distorted to match the angle of the path. I can't just recreate the platform on Photoshop using Stroke Path, because then it wouldn't be the same platform. I was hoping there was a way to somehow repeat the image and rotate it based on the angle of the path. I need it for curved hill-like paths.

Or maybe there is a way to make an image somehow WRAP around another image? That might work for me too. There must be something out there. I wish I could just figure it out.
View user's profile Send private message

Haunus

Joined: 24 Nov 2004
Posts: 740



PostPosted: Wed Jul 12, 2006 8:23 pm    Post subject: Reply with quote

well there may be a way with actions, but I dont know them too well.
View user's profile Send private message

Gallo_Pinto

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


PostPosted: Wed Jul 12, 2006 11:54 pm    Post subject: Reply with quote

yeah, I couldn't see nay patterning or detail in there so I assumed it was just a flat colour. But in that case, I might try just creating a lenghty staright section of hte image by duplicating the layer multiple time, moving it into palce and then merging those layers. Then you could duplicate that layer and tilt it to the right angle. You'd still have to do some blending to get to look proper.

if you want it texturezec, I think yuo'd be just as well to do it my way from my first post, and appluy the texture after.

_________________
brush your hair and comb your teeth
View user's profile Send private message

Dalal

Joined: 01 Mar 2006
Posts: 33



PostPosted: Thu Jul 13, 2006 12:52 pm    Post subject: Reply with quote

Thanks for all your help,

But with that technique, I'll only be able to create straight platforms. The main reason I want to be able to do this is so I can make curved platforms. In the screenshot I posted, I only show straight lines, but I NEED curved platforms, which is why I need a program to do the trick. Otherwise I would just rotate the platforms in Photoshop and blend them together like I did in the screenshot. But curved platforms, that's my goal. Is there a way to do this?

You know how you can stroke path and "simulate pen pressure". Isn't there a way to "simulate pattern angle" or something similar to that. In other words, can I stroke the path with a pattern, and rotate the pattern based on the angle of the path? I need a way to do something like that. I just need curved platforms, that's all.
View user's profile Send private message

Buskey

Joined: 11 Jul 2006
Posts: 25



PostPosted: Thu Jul 13, 2006 10:26 pm    Post subject: Reply with quote

Try clone tool...
View user's profile Send private message

Gallo_Pinto

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


PostPosted: Fri Jul 14, 2006 1:24 am    Post subject: Reply with quote

yeah, man if you do my first idea nd add the texture after with the texturizer or layer style, you can achieve curved platforms. I'd really like to demonstrate, but my photoshop is on the fritz right now. if I manage to ifx it before you find an answer I'll post an image of what i could do..
_________________
brush your hair and comb your teeth
View user's profile Send private message

Dalal

Joined: 01 Mar 2006
Posts: 33



PostPosted: Fri Jul 14, 2006 11:55 am    Post subject: Reply with quote

I've already made my platform image, so I don't want to remake it on Photoshop using the texturizer. It won't look the same. Let me show you a more detailed version of the picture.



This picture isn't very accurate because I made it myself on Photoshop by rotating the image, but you still get the general idea of what I'm doing. I want to do the same thing, except with curves.
View user's profile Send private message

qubert

Joined: 24 Jul 2004
Posts: 253



PostPosted: Fri Jul 14, 2006 7:56 pm    Post subject: Re: Repeating An Image Along a Path Based on Path Angle? Reply with quote

Dalal wrote:
I'm making a game in which I need curved hill-like platforms. I want those platforms to be based on an image. I was hoping there was a way in Photoshop to repeat an image along a path based on the angle of the path. That way, I can draw the hills using the pen tool in Photoshop, and repeat the platform image along the path. It's hard for me to explain what I'm trying to do with only words, so here's a picture that kind of gets the general idea across.



The first part of the picture is the image I want to use. The next part shows the path that I use. The last part shows the result I get from repeating the image along the path based on the angle of a point along the path, see what I mean? So if I drew curved paths then it would create a hilly platform. Is there a way to do anything similar to this in Adobe Photoshop CS-2? I hope someone here can help or maybe tell me another way to achieve a similar result. I hope I was able to explain this clearly enough.

Hope someone can help!

Thanks,
Dalal


Here is one way to do it... have you checked out the brushes pallte at all? There are some cool stuff in there. just press F5 on the keybaord for PS CS 2 and that will bring up the brushes pallte.

Have fun!!!!!!

Pretend the blades of grass in my demo photo, is the patteren you are trying to acheive. You will get it once you try some different things with the brushes pallete.



ScreenShot060.jpg
 Description:
 Filesize:  97.62 KB
 Viewed:  3239 Time(s)

ScreenShot060.jpg



_________________
Qubert
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
Goto page 1, 2  Next
Page 1 of 2
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