Change palette transparent color

Started by Bombadil, Mon 29/11/2004 23:41:45

Previous topic - Next topic

Bombadil


Does exist any way of changing the palette transparent color?

I work with an 256-colors palette and the transparent color it's on RGB 0,0,0 . When I wanna import new sprites, it's so annoying to have to import them surrounded by black because black is one of the colors I use most.

If anybody knows how to do it or has any ideas I would appreciate it.

Ashen

When you import sprites, you have the option of what to use as transparancy - by default, it's the top-left pixel of the image, but you can alter it (I think the options are top-left, top-right, bottom-left, bottom-right and palette slot 0). It shouldn't matter what colour you surround your sprites with, or what the image's tranparent colour is, AGS will take as transparent what you tell it to.

Or have I misunderstood the problem?
What paint program are you using - it should be possible to change the transparency colour in there, before you save the image.
I know what you're thinking ... Don't think that.

Bombadil


The problem is not from the painting program I use. The problem is that whatever is the color of the pixel I choose for being transparent [top-left, top-right, bottom-left, bottom-right and palette slot 0] the program turns all of the pixels of that color into black and then I can't see where are the edges of my sprites.

Ashen

Is this just in Sprite Manger, or does it show up in game as well?
I know what you're thinking ... Don't think that.

Gilbert

If you use exact palette import for sprite it won't happen, however, to use this feature you must organize the colour slots carefully when you draw your sprites.

Bombadil

#5
Here you have what the pic looks like in Paint and in AGS:




[colors don't match because the pallete in AGS is not complete].
[as you might should have noticed, are MI inventory items]

Wherever in AGS appears the image, it appears surrounded by black and its very annoying ^^. In the game, it appears ok.


Ashen

Odd, the background in the 'Import Sprite' dialog appears pink for me.
Anyway, it's not quite the answer you were after, but:
Try organising your sprites a little better, within the image. As it is, some of them are really tightly bunched up, and some are quite far apart, which might cause trouble with selecting them, anyway. Then, add a border around them, to make finding their edges easier, like this:

(Remember, the top-left corner should be the transparent colour.)
I know what you're thinking ... Don't think that.

Bombadil

Quote from: Ashen on Wed 01/12/2004 12:20:20
Then, add a border around them, to make finding their edges easier, like this:
Feeew, you worked hard!
I usually do that. The pic was just a file I used to store the inventory items I ripped from MI.

In 16-bit palette it appears to me in pink too, but in 256 colors appears black.

Proskrito

i dont think you can change this behaviour, thats how it is.
If the problem is that when importing multiple sprites, you cant see the edges well, you can organize the sprites as ashen did (and you said you do), or import them one by one. That way you wont need to see the edges.

Bombadil


Ooow, well. Thanks Proskrito for the info! I'll have to manage to survive with black surroundig me. lol

Offtopic: BTW, can you PM me with the differences between templates? ;) Thx

SMF spam blocked by CleanTalk