PDA

View Full Version : GIMP: Automate this?



jfrazierjr
02-27-2009, 04:55 PM
http://forums.rptools.net/viewtopic.php?f=8&t=6385&p=76366&hilit=+State+GIMP#p76366

So, this is a process developed by our very own AidyBaby to make some very nice state images for Maptool. Rumble was able to use some external plugin's to get an approximation of these, but I have not been able to get the settings just right to duplicate. Once I can duplicate the process, how hard would this be to script up(other than the base image of course!). So, you start with a black field and delete out a shape to reveal a white background showing through and then apply several of the Layer Effects plug-in's to get a nice gell looking thing on the other side. However, for the life of me, I can't figure out the right settings since the PS plugin is different than the ones for GIMP.

RobA
03-02-2009, 05:41 PM
Here is my go at it - no layer effect plugins req'd.

I will try to script it up in the next day or two.

10857

-Rob A>

jfrazierjr
03-02-2009, 08:34 PM
Here is my go at it - no layer effect plugins req'd.

I will try to script it up in the next day or two.

10857

-Rob A>


Thanks Rob!!! This is great! How did you do this manually, as I would really love to know, even if you script it up....

Midgardsormr
03-02-2009, 10:14 PM
Sorcery. Fortunately, RobA has his own chicken farm for the sacrifices.

Steel General
03-03-2009, 07:31 AM
Sorcery. Fortunately, RobA has his own chicken farm for the sacrifices.

I was going to put some smarty-pants comment about RobA's GIMP prowess, but this is way better than anything I had in mind. :D

Redrobes
03-03-2009, 03:24 PM
Poor chickens... there must be at least six in that one.

I'm going to rate all Robs scripts now in sacrificial chicken units (SCU) :D

Was going to mention that with image magick theres some 'Gel' effects that you can use to make buttons and stuff like this.
http://www.imagemagick.org/Usage/advanced/#gel_effects

RobA
03-03-2009, 03:39 PM
So, attached are the scripts.

@jfrazierjr - feel free to pass on to the RPTools forum.



File > Create > Blank Token
- creates a blank token image, black on transparent to allow the user to cut out shapes before running the make token script

Filters > Decor > Satin Gloss
- makes a shiny token. It leaves the layers separate to allow changes. Alpha is locked on the main token.

You can read the script to figure out the process but it is pretty simple...

The glow layer is created by using the template's alpha as a selection. It is enlarged and feathered then filled with the glow colour.

The token layer is simply alpha-locked and filled with the desired colour. (this means that multiple versions can be made by changing the colour in this layer, either by flood filling or using hue adjustments, etc)

The satin layer is the most complicated. I made a nice satin look by starting with the alpha selection then performing a shapeburst gradient (white to black), then repeated random linear gradients in difference mode (also white to black). This is a technique I use to make crinkled paper bumpmaps, by the way. To make it satin looking, I blur it, then run a sobel edge detect then blur again and invert. This layer is set to multiply mode.

The bevel layer is simply the alpha selection (again) filled with black, then shrink the selection and feather, then fill with white. Multiply mode.

The highlight was a bit tricker, but is really just an emboss of a variant of the bevel layer, with a bunch of level corrections applied, then a few variable blurs.

here is a sample produced by the script:
10872


-Rob A>

RobA
03-03-2009, 03:47 PM
Funny you mention the gel...

If you dial down the opacity afterwards, it makes a pretty nifty gel button....

Might have to rename this script...

10873

-Rob A>

Karro
03-03-2009, 04:42 PM
Poor chickens... there must be at least six in that one.

I'm going to rate all Robs scripts now in sacrificial chicken units (SCU) :D

Was going to mention that with image magick theres some 'Gel' effects that you can use to make buttons and stuff like this.
http://www.imagemagick.org/Usage/advanced/#gel_effects

Indeed. I guess you can't make an awesome script without sacrificing a few chickens!

Me... I have no chicken farm :(

@RobA: That's pretty cool!

Redrobes
03-03-2009, 05:46 PM
Couple of shapes in different colors and you would have a big semi precious gem collection...

RobA
03-03-2009, 06:20 PM
Sorry-

Forgot to mention the Token script needs a solid shape with transparency as a template.

So this:
10882

Can get you this:
10883

-Rob A>

jfrazierjr
03-03-2009, 07:07 PM
Thanks a TON Rob. One question, the outer glow, can that be an optional step? I have a ton of images to do, and if it's easy to script would rather not have to go turn off the layer on each one before I save out to png.

I watched the script run on the satin process and that was wicked cool as the thing just kind of warped itself.... If you can find some more time, I would love to see something more detailed on how to (or if there is a GIMP tutorial out there that you can point me to). I know it's not useful for mapping, but that satin effect is SWEET.

RobA
03-03-2009, 08:35 PM
Thanks a TON Rob. One question, the outer glow, can that be an optional step? I have a ton of images to do, and if it's easy to script would rather not have to go turn off the layer on each one before I save out to png.

I updated the script on the previous page. If you set the glow size to 0 it doesn't create the glow layer.

I also added an angle, so you can set the angle the highlight will be on. The default is 90 (North).

The satin technique is derived from this photoshop tutorial. (http://www.pixeladdiction.com/bb/articles.php?action=viewarticle&artid=21)

-Rob A>

Ascension
03-04-2009, 05:23 PM
Off topic but I have to say that I love the SCU idea. Laughed so hard I pulled something.