saturation/desaturation effect

Blitz3D Forums/Blitz3D Programming/saturation/desaturation effect

skyfire1(Posted 2005) [#1]
is it possible to apply a screen effect that saturates or desaturates the screen? if it is, could anyone show me how it's done. any help is appreciated.


degac(Posted 2005) [#2]
I'm not sure of the interpretation of 'saturation' but *maybe* the commands you need are SETGAMMA and UPDATEGAMMA.
The first command set up the starting color and the final color that must be reached (in the component red, green and blue), while UpdateGamma is used to make the transition in the main loop.
These commands allow you to fade to a specific color or 'lighting up' or darking the screen.
Both the commands work ONLY in full screen mode.
If you need fx like 'glow' you need to work with texture and copyrect: in this case do a search in the Code Archives, you will find something.
Hope this helps
byez


VP(Posted 2005) [#3]
Saturation means the amount of colour. There is an example in the code archives of a desaturation fader.

**EDIT** xlsior wrote a desaturation fader. I know because I nicked a tiny part of it for my PNG exporter project.