It is currently Fri Mar 29, 2024 4:01 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Warped text
PostPosted: Mon Jul 05, 2010 2:10 pm  (#21) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
saulgoode wrote:
That looks great, Oregonian!

Thanks. It's a very interesting technique.
saulgoode wrote:
Going off topic a bit, I've been to about a dozen Grateful Dead shows and the ones in Eugene were by far my favorites. What a scene!
Lucky you! My youngest daughter and her husband live in Eugene. Do you live in the Northwest?

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Warped text
PostPosted: Mon Jul 05, 2010 6:08 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I love the script, however I tried following your steps and am totally lost on your selections. After you do the alpha to select and click on the rectangular select tool, Clicking the selection and draging to the center top, just creates a box where dragged. No luck following the instructions.

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Warped text
PostPosted: Mon Jul 05, 2010 7:17 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Nevermind! I got it!

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Warped text
PostPosted: Mon Jul 05, 2010 8:03 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
I've updated the "mini-tut" so that hopefully it is a little more clear.

Basically, steps 1 through 3 aren't absolutely necessary. Steps 4 through 8 describe using the Grid filter and Rotation Tool to render diagonal stripes -- the only thing atypical about this is that they are rendered on the Quickmask channel (to produce a selection, and ultimately a path).

Since the rotated diagonal strips selection has its corners missing, we need to select a rectangular region that is completely covered by the strips. Steps 9 and 10 (in addition to steps 1-3) use the original text region that was previously warped. If you just used the Rectangle Select Tool to reduce the size of the selection (holding down SHIFT+CTRL while making a rectangular selection within the stripes selection), this would still work to produce warped stripes. However, if the rectangle is a different size than the original text region then the warped stripes would be a different size (relative to the size of the original warped text). If the aspect ratio (width:height) is different from the aspect ratio of the original text region then the angle and width of the warped stripes (relative to the original warped text) would be different.

By making the size of the original stripes rectangle the same as the size of the rectangle of the original text, the result of warping the stripes will match the result of warping the text*. This is probably not that important in most cases.


* If the accuracy of my warping algorithm was more precise, the stripes selection (after step 8) could just be intersected with the original text layer ("Layer->Transparency->Intersect With Selection"), and the resulting path warped to produce a perfect overlay. However, the warping produced by the script is not precise enough to rely on this.

@ Oregonian, I was a Seattle-ite about a decade ago.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Mon Jul 05, 2010 10:53 pm  (#25) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
The thought of making a poster with several different envelopes is intimidating. I think fitting path-envelopes to fill the poster and then doing the text for the separate envelopes would probably be the easiest way. I think it would be stunning if it's possible to do.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 2:50 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
it doesn't work at all for me...is it because I am still using gimp 2.4?


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 3:51 pm  (#27) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
2-ton wrote:
is it because I am still using gimp 2.4?
Probably so. Saulgoode would be the final authority there though. It's a fun script to play with. I've been working on a kind of poster but so far I don't like what I have. I'll just keep on playing with it though. What I have in mind isn't what I get on the canvas ... as usual. :-D

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 3:58 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
haha, I seem to have that same problem with most of the posters I make!


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 4:05 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
this is real cool, if i could remember how i did it would be nice but it eludes me at the moment. =P

Image

_________________
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: Warped text
PostPosted: Tue Jul 06, 2010 4:30 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
put on your thinking cap!!! awesome.


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:11 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Experimental image for a website I moderate.

Image

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:37 pm  (#32) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
kewl.......... :coolthup

_________________
Image


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 9:50 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 7:06 am  (#34) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


lol
very nice Photomaster!

Saulgoode is there a way to write a script for us Python users?
Would that make it faster on rendering?

_________________
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: Warped text
PostPosted: Wed Jul 07, 2010 10:54 am  (#35) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!

As near as I can tell, there are two things preventing the script from running on GIMP 2.4. First, there is no PDB function to copy a path. This is easily rectified if you add the following block of code to the beginning of the script:
(unless (symbol-bound? 'gimp-vectors-copy)
  (define (gimp-vectors-copy orig-path)
    (let* ((image (car (gimp-vectors-get-image orig-path)))
           (path (car (gimp-vectors-new image
                         (car (gimp-vectors-get-name orig-path)))))
     (strokes (vector->list (cadr (gimp-vectors-get-strokes orig-path))))
     (stroke-info nil))
      (while (pair? strokes)
        (set! stroke-info (gimp-vectors-stroke-get-points orig-path (car strokes)))
        (gimp-vectors-stroke-new-from-points path
                      (car stroke-info)
                      (cadr stroke-info)
                      (caddr stroke-info)
                      (cadddr stroke-info))
        (set! strokes (cdr strokes)))
      (list path))))


The other problem is that the 2.4 PDB does not provide a function to convert a text layer to a path, and it would not be trivial for me to write such a function (I'm not even sure it can be done in Script-fu). However, if you make the above change to the script, you should be able to use the script as long as you manually convert your text layer to a path, activate your envelope path, and then run the script using the "alternate path" option (and setting the alternate path to the saved text path).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 11:23 am  (#36) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Rod wrote:
Saulgoode is there a way to write a script for us Python users?

I usually leave Python out of my GIMP as I consider it an unfortunate waste of memory. :)

Rod wrote:
Would that make it faster on rendering?

No, I highly suspect it would not. The script spends about 95% of its time finding the distance along two paths (the horizontal and vertical axes) and retrieving/setting path control points using internal GIMP functions. Any Python script (following the same approach) would use those same GIMP functions and not experience any significant speed improvement.

One potential means of improving speed would to cache the horizontal curves as they are generated and search the cache before calculating a new curve. In this way, the horizontal curve for any given Y location in the text would only have to be calculated once. The question is whether a search for and retrieval of data in the cache (performed in an interpreted language) would be any faster than recalculating the horizontal curve (which is performed by GIMP in compiled C). I suspect it would not; though if someone were to convert the program to a compiled plug-in then high-speed cache lookups would probably be worthwhile.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 1:04 pm  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks for that quick answer saulgoode. =)
As usual it was very informative.

Image

_________________
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: Warped text
PostPosted: Wed Jul 07, 2010 9:54 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Thanks for the possible solution, SG. I will give this a try on my next day off!


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 2:57 am  (#39) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
nice script Saulgoode ( and nice results too O)

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 11:14 am  (#40) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton,

I have made a version of the script for GIMP 2.4. It differs from the original 2.6 script in that the active path is your text path and you must choose the envelope shape path from within the dialog (for the original script, the active path was employed as the shape path and you had to choose an alternate "text" path if you weren't using a text layer). This is so the default setting accommodates the common case that you will have performed the requisite "Text to Path" command just before running the script.

http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/warppath-2-4.scm

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Text Style Collection - plugin with many fancy text styles

14

No new posts Attachment(s) manipulate a portion of text inside a text layer using python-fu

2

No new posts script to load text file and create text layer

6

No new posts Attachment(s) GEGL ROCK TEXT 2 - Advance rock text plugin -requires Gimp 2.10.32+

8

No new posts Attachment(s) Colorful Pattern from Text (Text Pattern) Plug-in

32



* Login  



Powered by phpBB3 © phpBB Group