[ scummvm-Patches-686427 ] CMI: Possible SO_ROOM_SATURATION implementation

SourceForge.net noreply at sourceforge.net
Fri Feb 14 08:57:12 CET 2003


Patches item #686427, was opened at 2003-02-14 08:57
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=686427&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: CMI: Possible SO_ROOM_SATURATION implementation

Initial Comment:
This is an attempt at implementing what
SO_ROOM_SATURATION might be meant to do. Fingolfin
already guessed that it is similar to darkenPalette()
in that it takes three scaling parameters and a palette
range, but apparently wasn't sure how the scaling was
done. Neither am I, but I'm guessing that it's the
colour's hue, saturation and value (HSV) that are to be
scaled.

CMI uses this opcode when Guybrush walks off the beach
towards the swamp to make him sort of fade into the
background mists.

It's not meant to be a definitive implementation. The
result doesn't look quite like the original, and it
uses floating-point math because I didn't want to stray
too far from the description I had of the algorithm
until I was more certain that I was using the right
algorithm at all. I'll look into simplifying it later.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=686427&group_id=37116




More information about the Scummvm-tracker mailing list