Opened 12 years ago

Closed 11 years ago

Last modified 5 years ago

#6227 closed defect (fixed)

WME: Dead City - purple areas on the screen

Reported by: SF/eblanca76 Owned by: wjp
Priority: normal Component: Engine: Wintermute
Version: Keywords: has-pull-request
Cc: Game: Wintermute

Description

I\'m playing through The Dead City and it seems some textures are not loaded the right way. Note that they do not appear at random times. They always affect the same scenes, as you can see in my screenshots. On the text console some warnings appear:

WARNING: JPEGDecoder::readJFIF() Non-v1.1 JPEGs may not be handled correctly! (<--- this appears MANY times) WARNING: BaseRenderOSystem::DrawLine - doesn\'t work for dirty rects yet! (<--- this appears just ONE time)

The bad issue is, due to these missing textures, a particular location is not playable at all (it\'s at the bridge) so the game is not completable.

Ticket imported from: #3600667. Ticket imported from: bugs/6227.

Attachments (3)

apartment.jpg (51.0 KB ) - added by SF/eblanca76 12 years ago.
the apartment (the beginning)
street view.jpg (64.9 KB ) - added by SF/eblanca76 12 years ago.
street view
at the bridge.png (144.3 KB ) - added by SF/eblanca76 12 years ago.
the bridge, the blocking location

Download all attachments as: .zip

Change History (18)

by SF/eblanca76, 12 years ago

Attachment: apartment.jpg added

the apartment (the beginning)

comment:1 by SF/eblanca76, 12 years ago

Summary: DeadCity:purple rectangles on the screenWME - DeadCity:purple areas on the screen

by SF/eblanca76, 12 years ago

Attachment: street view.jpg added

street view

by SF/eblanca76, 12 years ago

Attachment: at the bridge.png added

the bridge, the blocking location

comment:2 by SF/eblanca76, 12 years ago

Summary: WME - DeadCity:purple areas on the screenWME: DeadCity - purple areas on the screen

comment:3 by SF/eblanca76, 12 years ago

OS: ubuntu precise 12.04 with gcc 4.6 scummvm --version gives: ScummVM 1.6.0git (Jan 12 2013 19:17:36) Features compiled in: TAINTED Vorbis FLAC MP3 ALSA SEQ TiMidity RGB zLib FluidSynth Theora AAC FreeType2

the game is provided with different languages, I'm playing the ita version.

comment:4 by SF/mthreepwood, 12 years ago

The JPEG warning is irrelevant and I have removed it so it won't be in future builds. (I was worried about version issues, but the version differences are solely related to thumbnails, which we don't use)

comment:5 by bluegr, 12 years ago

I just had a look at some of these broken JPEGs. sprites\neon2.jpg (the neon sign in the apartment) shows broken (i.e. purple) with my system's image viewer... seems like the image itself is somehow badly encoded?

I haven't progressed further to check the other two, but they seem to suffer from the same issue, IMHO

comment:6 by wjp, 12 years ago

Since neon2.jpg looks like a solid FF00FF rectangle, this is more likely to be a colourkeying/transparency/alpha problem, I think. This same neon2.jpg is used in multiple sprites in frames that should "light up".

comment:7 by SF/eblanca76, 12 years ago

I would like to see those jpegs too! Which tool are you using for extracting resources from `data.dcp' ?

comment:8 by wjp, 11 years ago

With the new jpeg decoder work going on I took another brief look at this, and any potential rounding errors in there do not seem to be responsible. Hardcoding a 254-to-255 postprocessing step does not fix the visual problem.

comment:9 by wjp, 11 years ago

Clarification: it's not _exclusively_ responsible.

comment:10 by wjp, 11 years ago

needsColorKey is determined to be false by BaseSurfaceOSystem::finishLoad() for this image. Haven't looked at how/why.

comment:11 by wjp, 11 years ago

The needsColorKey part is fixed by e5f9cb3cbbc047a1359354475c1128454491f331.

The remaining issue is indeed that this JPEG is decoded as FE00FF which makes it fail the colorkeying.

comment:12 by wjp, 11 years ago

Owner: set to wjp
Resolution: fixed
Status: newclosed

comment:13 by wjp, 11 years ago

The remaining part was fixed a few weeks ago by using libjpeg.

comment:14 by lolbot-iichan, 5 years ago

Keywords: has-pull-request added

comment:15 by lolbot-iichan, 5 years ago

Summary: WME: DeadCity - purple areas on the screenWME: Dead City - purple areas on the screen
Note: See TracTickets for help on using tickets.