FOA: Bad colours for light and shadows
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
|Game:||Indiana Jones 4|
This applies to the July 29 CVS snapshot:
In the scene where you dive for Atlantis, the colours
for the boat and submarine shadows are incorrect (see
attached screen shot). A similar phenomenon also
happens when riding the subway car.
In both these cases, unkRoomFunc3() will be called,
which currently does nothing. My theory is that it
should be setting up the _transEffect array. The
first two arguments look like they would be min and max
colours, while the remaining three arguments could be
scale factors for R, G, and B.
I've included a rough patch which produces reasonable
results for the diving scene and the first half of the
subway car ride. That I'm not submitting it as a batch
is because it's pretty broken in some other respects.
The colours look strange in the second half of the
subway ride, and the light doesn't fade out like I
think it should. Also, since the _transEffect array
isn't saved, restoring a saved game during one of these
scenes will cause bad colours as well.
I checked with 0.2.0, and for some reason I don't get
the psychedelic colours or recent snapshots. Instead,
the submarine shadow is rendered as solid black.
Ticket imported from: #588501. Ticket imported from: bugs/377.