Message Board


Message Board > Art and Graphics > Transparant colors in fenix ><

November 29, 2008, 13:59
Arcane
Beardless
8 posts
This is getting really annoying...

How the hell do I create a .png or any other kind of file I can import into Fenix that has the magic transparant color? :/

I've tried paint with the utterly-black color (for all attributes), I've tried Graphics Gale with its black color and I've even tried Paint.net and cut out a section of the painting to get the .png official transparant color (this actually works for the icon and everything!) but no matter what I do, when I convert it to a .map, the transparant becomes non-transparant black.

I don't want to create a game with only squares ><

How can I set something with the transparant black color? :(
____________
#
November 29, 2008, 14:31
Sandman
F3n!x0r
1194 posts

Fenix uses PNG's alpha channel to determine what is transparent and what not. As far as I know, the .map files do not support transparency. Why are you converting PNGs to MAPs?
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
November 29, 2008, 17:21
Arcane
Beardless
8 posts
To put them in .FPG files... the way it used to work in DIV (and they did support transparancy back then)

Or can you put .png in FPG files too?

I don't really want to load each .png seperately; but if that's the only way to get them transparant, then I guess I'll have to :/
____________
#
November 29, 2008, 21:03
Sandman
F3n!x0r
1194 posts

You can't put a PNG or a MAP file into an FPG file like some file archive. You can add a graphic to an FPG, using the protocol of the FPG. Luckily there are some programs that can convert most used filetypes to this and place graphic inside the FPG, like FPG Edit.

DIV didn't support transparency in graphics in the sense that you could tell which parts of a graphic are transparent or not. The renderer of DIV was so made that it would only draw pixels other than the color 0 (black), which you could use to make graphics look like they had transparency. This is called colorkey and in other libraries or systems, there is an option to set the colorkey to a different colour (like SDL_SetColorKey()). This is handy when graphics have no alpha channel, like DIV's and Fenix' internal graphics. Bennu on the other hand does support alpha channel and also 32bit graphics. I don't know if the FPG format supports 32bit graphics, but I think the new graphics library does. It's called FGC I think. I don't think there is an editor for that though.

Anyway, using PNG's doesn't mean you have to load them separately, you can just use a function like this, which loads every .png in a specific folder and adds them to a new graphics library (FPG if you will). You can also do fpg_save() after this and use the resulting FPG, if you like. :)
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
December 5, 2008, 01:15
Dennis
どこかにいる
2092 posts

Considering FPGEDIT:

Make sure you choose 16-bit color or you won't be able to place your images in the FPG. Btw, all the palette shit is too crappy old.

PS: I love this smiley: ><
But I prefer =! nowadays
____________
Kwakkel
#

Message Board > Art and Graphics > Transparant colors in fenix ><

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!