Adventure Game Studio

Community => General Discussion => Topic started by: Uku on Mon 10/07/2006 09:42:45

Title: image problem
Post by: Uku on Mon 10/07/2006 09:42:45
ok, i have looked those pictures:
(http://img294.imageshack.us/img294/5730/siranym6ck.gif)(http://img334.imageshack.us/img334/487/trophies4np.gif) over and over. and i dont get it, how they can be transparent. so, can you peapoles help me to make this image:
(http://img223.imageshack.us/img223/4346/logo13nn.gif)
transparent.

Thank you.
Title: Re: image problem
Post by: scotch on Mon 10/07/2006 10:08:23
Basically there are two ways of encoding transparency in images. There's the method where one colour in the image is selected as the transparent colour which palette based GIFs and PNGs have. And there's the other way which is to encode a level of transparency for each pixel, called the alpha channel, which true colour pngs can do (but Internet Explorer doesn't always support properly).

256 colour version, 1 bit transparency (slightly messy):
(http://www.caverider.com/temp/transa.png)

24 bit colour, alpha transparency:
(http://www.caverider.com/temp/transb.png)

AGS supports both ways in sprites, but only the second way if you're using 32 bit colour mode.
How do you make these images? Well you need to use photoshop or another graphics program that supports transparency.Ã,  Just erase the background by some means (or don't draw things on a non transparent background). In this case I used Photoshop's "background eraser" tool.
Title: Re: image problem
Post by: Uku on Mon 10/07/2006 10:22:09
deem. this doesnt work. if i want to make an homepage, then (http://img294.imageshack.us/img294/5730/siranym6ck.gif) pictures bg is transparent, but
this pictures bg isnt:
(http://www.caverider.com/temp/transb.png)
Title: Re: image problem
Post by: scotch on Mon 10/07/2006 10:29:59
Yes it is, just not in most versions of IE as I said. It's just one of the niggles that make webdesigners hate IE. You have to use the other version if you want transparency to work in all browsers... yeah it looks a bit crap... it's just not so noticable on sprite art which is designed for the hard edges.
Title: Re: image problem
Post by: Gilbert on Mon 10/07/2006 10:47:49
Well, also, it depends on how 'good' you want it to look.
If you have enough patience to mess with the pic, it can still look quite good using 256 colours and 1-bit transparency (especially when the 32bit one won't show up as transparent for you). For example, this is my quick (~ 1 minute) attempt, via setting the fuzziness of magic wand to a higher value in GIMP, and some small correction in the mask on 3 or 4 pixels:

(http://www.2dadventure.com/ags/logo13nngct.gif)
Title: Re: image problem
Post by: Uku on Mon 10/07/2006 11:37:37
thank you, it works!
Title: Re: image problem
Post by: KristjanMan on Mon 10/07/2006 11:48:38
IE 7 beta supports transparency fine. Homepage link http://www.microsoft.com/windows/ie/default.mspx
Title: Re: image problem
Post by: Penguinx on Mon 10/07/2006 21:54:14
I totally forgot that 32bit games supported PNG's with alpha transparency. Woo! My long-delayed game is totally feasible. Duh!
Title: Re: image problem
Post by: Bartimaeus on Mon 10/07/2006 23:29:03
On another note, nice cucumber you got there.  :D
Title: Re: image problem
Post by: LimpingFish on Tue 11/07/2006 00:02:14
I believe it's a Courgette. :)

Or Zucchini, for our American forumites. :-*
Title: Re: image problem
Post by: Phemar on Tue 11/07/2006 10:31:47
Zucchinis, in bikinis, are coming down the stairs
Zucchinis, in bikinis, are coming down in pairs
Zucchinis, in bikinis, are chasing the teddy-bears!
Because, on Tuesdays they like to catch them unawares!
Title: Re: image problem
Post by: Nacho on Tue 11/07/2006 10:41:46
I am going to use this to ask if someone knows the steps to make transparencies in PSP's animating program (animation pro, 1.3 for me...)
Title: Re: image problem
Post by: Phemar on Tue 11/07/2006 10:54:27
Farl: I used to use the program ages ago so forgive me if I'm wrong, but don't you just use the erase tool?
Title: Re: image problem
Post by: Bartimaeus on Tue 11/07/2006 11:19:00
I protest.
It could just be a really fat, short cucumber.
Title: Re: image problem
Post by: BOYD1981 on Tue 11/07/2006 16:01:29
Quote from: Farlander on Tue 11/07/2006 10:41:46
I am going to use this to ask if someone knows the steps to make transparencies in PSP's animating program (animation pro, 1.3 for me...)

i usually select all the frames, export them to PSP as a layered image, select the areas i want to be transparent and delete them to make them transparent.