|
Alpha Channel |
Marcel
Member #8,543
April 2007
|
Hi everyone, i'm would like to ask you, how i can load a graphic that uses alphachannels. For example this one: I would be glad if anyone could help me Marcel --- Where the german seems to dwell... --- |
gnolam
Member #2,030
March 2002
|
Quote: Hi everyone, i'm would like to ask you, how i can load a graphic that uses alphachannels. Quote: For example this one: http://www.videogamesprites.net/SecretofMana/Party/Randi%20(Front).gif That picture is a GIF. GIFs have no alpha channels. -- |
Marcel
Member #8,543
April 2007
|
Hi, would it be better to use load_tga(), because I want to load an image with one invisible pixel ( sorry for alphachannel missmatching ). Or do i have to do other things first. I simply want that pallete entry 1 is invisible. Greeting --- Where the german seems to dwell... --- |
gnolam
Member #2,030
March 2002
|
If by "palette entry 1" you mean "the first palette entry" (i.e. palette index 0), then any format that Allegro can load will do. Just load as usual. -- |
Johan Halmén
Member #1,550
September 2001
|
8 bit graphics: 24 bit graphics: 32 bit graphics: In any case you need a graphic editor that handles the graphics properly. The palette thing is usually a mess. Editors create new palettes while you are editing and they don't give a damn about you trying to preserve the entry number of each colour and especially the transparent #0. The 24 bit thing with magenta is stupid, because 24 bit usually means beautiful colours and "antialiased" contours and gradients, but the edge to the transparent magenta area is jagged like in a poor 8 bit sprite. Or even worse, you see a magenta halo around your sprite. Read about:
in the f^H manual. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
|