Help with the management of colors

Started by Melissa, Sat 23/02/2013 00:49:18

Previous topic - Next topic

Melissa

Hi AGS community!
This is my very first post although I've been spending some time in making my debut game...
So that's why I've come across this problem:
I would like to have different color filters that could be changed in-game... As if I were changing the gamma settings...
The .TintScreen function is not what I need because it just adds a one color transparent screen
When I say "Color filter" I am referring to sepia or black and white filters...
Is it possible?
Or I'm in a dead end?

Thank you for visiting my post! ;)

Khris

That's unfortunately not possible using just AGS Script; you'd have to code a plugin for that.

Unless... you're willing to go down to 256 colors; in that case you have complete control over the entire palette and color effects like that are pretty easy to accomplish.
But in that case, out the window goes palette management and semi-transparent GUIs, objects or characters.
You basically have to use a fixed palette for every background, you can no longer just draw stuff and import it using any colors you want.

Melissa

#2
If I change to 256 colors Would I need to import again my 32 bits sprites?
I mean... Are those 32 bits sprites transformend into 256 automaticaly or i have to do it manually?

I figured out by myself
The color loss if very significant and it forces me to redraw all the backgrounds

I'll just wait for someone to make that glorious plugin
Thank you Khris anyway!

Khris

Yeah, converting graphics to 256 cols is not easy, given the fact that the first 32 or so have to have specific color values.

I imagine making a plugin like that isn't that much work; maybe you could find somebody in the recruitment section? Waiting for it might take a few years :)

SMF spam blocked by CleanTalk