[ scummvm-Patches-608543 ] unkRoomFunc3 (bug #588501)

noreply at sourceforge.net noreply at sourceforge.net
Thu Sep 12 20:39:42 CEST 2002


Patches item #608543, was opened at 2002-09-12 13:39
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=608543&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jamieson Christian (jamieson630)
Assigned to: Nobody/Anonymous (nobody)
Summary: unkRoomFunc3 (bug #588501)

Initial Comment:
The included patch file makes corrections to the partial 
patch supplied with bug report #588501. The patch was 
a partial implementation of unkRoomFunc3. After 
considerable trial and error, I discovered that the shadow 
palette had to be constructed using the room's default 
(CLUT) palette, rather than the current palette (which 
was darkened almost to black in one case study). This 
is true for both the palette that is scaled by the supplied 
factors, AND for the palette against which to compare 
the scaled color for a closest-match.

In addition, the start and end palette locations ARE 
significant in that they bound the area of the palette that 
can be used to search for closest-match colors. For 
example, FOA Room 48 (subway crashing into Atlantis 
entrance area) restricts the palette entries to be used for 
the headlight beam to be in the range of 160 - 191.

This patch has been tested with all four FOA rooms that 
have been identified as using this opcode (23, 48, 53 
and 82). Everything looks good, although close pixel 
scrutiny revealed occassional and very subtle difference 
in the resulting palette entries used, compared to the 
output of the LEC executable.

Finally, I left the function name as is because I'm not 
sure what we want to call this operation. 
shadowManipulate?

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

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




More information about the Scummvm-tracker mailing list