PDA

View Full Version : Maptools/Gimp Help



DMTibernius
07-12-2009, 06:53 PM
Alright so, I am trying to make some textures/tiles for maptools, and I have so far done the first half right, I made the LOOK like textures/tiles. Now the only problem is, each and every one of them has a white or black background. So in order to correct that, I downloaded GIMP. Now the NEW issue is, I read the manuel to gimp, followed the instructions, and yet still cannot make the textures/tiles backgrounds transparent (or topdown or w/e it's called)

So please, help. How do I make things backgrounds transparent on Gimp? (The simpler you can make it sound, the better. :p)

Cool as a Cucumber
07-12-2009, 07:04 PM
Alright so, I am trying to make some textures/tiles for maptools, and I have so far done the first half right, I made the LOOK like textures/tiles. Now the only problem is, each and every one of them has a white or black background. So in order to correct that, I downloaded GIMP. Now the NEW issue is, I read the manuel to gimp, followed the instructions, and yet still cannot make the textures/tiles backgrounds transparent (or topdown or w/e it's called)

So please, help. How do I make things backgrounds transparent on Gimp? (The simpler you can make it sound, the better. :p)

File -> New

- Advanced Options
Fill with: Transparency

Set the image size how you want it to be.

Hit OK, then paste the image.

Fuzzy Select Tool (hit U on your keyboard), select the white/black area, hit your delete key.

Save as PNG or GIF.

I'm not sure if there's a faster way to do it, I usually use PaintNET for simple stuff.

DMTibernius
07-12-2009, 07:29 PM
*latches onto cucumber* *Hugs the FROCK out of him*

Sorry man, but yeah. This "little" issue has kept me awake for 2 days now (well that, and my insomnia) and had me going out of my mind on what NOW became a SIMPLE task.

So thankyou, thankyou, thankyou.... and also, by the way, THANK YOU!!!!

:P

Happy to be a member here at the cartographers guild.

Redrobes
07-12-2009, 08:13 PM
You can give him some rep with the little scales icon - which I shall do now too...

RobA
07-13-2009, 02:12 PM
A little more streamlined is to just load the image, the right click on the "blackground layer" and use "Add Alpha Channel" then continue with the fuzzy select tool steps.

A small tip (which I didn't realize for years) is that any layer name in bold has NO alpha channel (no transparency) and non-bold layers have an alpha channel (potentially has transparency)!

If you select and delete a layer without transparency it is filled with the current BG colour, if it has transparency it is set transparent. The interesting side effect of this is you can use the eraser tool with the Alt key held down (or shift alt on some systems) and "anti-erase" or change the alpha (transparency) so that the erased stuff reappears!

-Rob A>

torstan
07-13-2009, 03:26 PM
You can also use Layer-Transparency->Set Colour to Transparency with the colour select set to either white or black to get the backgrounds to be properly transparent. This works particularly well after using fuzzy select with feathered edges.

RobA
07-13-2009, 04:42 PM
You can also use Layer-Transparency->Set Colour to Transparency with the colour select set to either white or black to get the backgrounds to be properly transparent. This works particularly well after using fuzzy select with feathered edges.

Be careful with that, however, as will take ALL the white out of the image and turn it transparent, so anything white will be transparent, and anything partially white (i.e. grey) will end up black and partially transparent!

-Rob A>

torstan
07-13-2009, 05:11 PM
Ah, I think you've misunderstood what I meant there. The steps I'd recommend are:

1. Use fuzzy select with feathered edges to get a pretty good selection of your background.
2. Use colour to alpha from the Layer->Transparency->Colour to Alpha menu option.

The advantage of using colour to alpha is that you can vary the threshold on your fuzzy select, but you'll never completely get rid of any colours you accidentally select. I find it gives me the smoothest edges when cropping images out to use as tokens.

I entirely agree that using colour to alpha on the whole layer is a bad idea and definitely to be avoided.

RobA
07-13-2009, 05:53 PM
I see - colour to alpha on the fuzzily selected area. Exactly. In truth, that I often do is duplicate the layer, fuzzy select the BG colour of the bottom layer, grow the selection a few pixels (especially if there is a drop shadow/omni shadow) then clear, on the top layer duplicate do a colour to alpha on the whole image using the BG colour, then merge the two layers. A little script might be useful with parameters for the fuzzy selection amount, the pixel grow size, and a colour picker for the BG.

-Rob A>

torstan
07-13-2009, 06:01 PM
Actually that would be a great little script. Good thinking.

RobA
07-13-2009, 09:17 PM
OK - attached is a script. It uses the upper LH corner of the image to determine the background colour.

It is best to set the Threshold slider as high as possible and keep the shrink size as small as possible to avoid translucent parts of the image.

Give it a shot!

-Rob A>

torstan
07-14-2009, 04:14 PM
Thanks! I'll give that a go this evening.

Alfar
07-15-2009, 06:59 AM
How did it go?

beriothien
07-22-2009, 08:42 AM
Random Non-Mapping related GIMP question:
In the tool box, I still got my tools, but I've lost the settings for them(usually below it), how do I get them back?

Thenks for any thought on this.

RobA
07-22-2009, 07:19 PM
Random Non-Mapping related GIMP question:
In the tool box, I still got my tools, but I've lost the settings for them(usually below it), how do I get them back?

Thenks for any thought on this.

You probably closed the tool option dialog http://manual.gimp.org/en/gimp-toolbox.html#gimp-tool-options-dialog

I think they can be torn off (http://manual.gimp.org/en/gimp-concepts-docks.html) so check under help>recently closed dialogs (or something) and you should be able to bring them back (no gimp handy on this computer.... sorry)

-Rob A>