Opened 2 months ago

Last modified 2 months ago

#15681 new defect

NEVERHOOD: TV guy subtitle jitter in module 2400

Reported by: Player701 Owned by:
Priority: normal Component: Engine: Neverhood
Version: Keywords: subtitles
Cc: Game: The Neverhood

Description

Synopsis: When using the fan-made Russian translation patch, the subtitles for the TV guy in module 2400 (aka "Aqua House") constantly jitter left and right while he is speaking. This is even mentioned in the official readme for the patch (ENG-READ.txt in the archive).

I've done an investigation, and it seems that the problem originates in the AnimatedSprite::updatePosition() method. Since the sprite offsets keep changing with each frame, the position of the subtitle surface changes as well, which produces the jitter.

An easy workaround would be to wrap the call to _subtitleSurface->updatePosition in if(_currFrameIndex == 1), but this is technically not a proper fix because it does not account for sprites that are actually moving. The latter, however, is purely a theoretical scenario, seeing as there are no more dialogue lines in the interactive part of the game (except for the disk player videos, but those are handled by a different piece of code and are therefore irrelevant anyway). So unless someone wants to add stuff like closed captioning in the future, the proposed solution should suffice for now.

I'm also attaching a save file for easier testing (the musical puzzle has been solved, just press the button to enter the building and wait for the subtitles to appear).

Attachments (1)

neverhood.zip (24.4 KB ) - added by Player701 2 months ago.

Download all attachments as: .zip

Change History (2)

by Player701, 2 months ago

Attachment: neverhood.zip added

comment:1 by tag2015, 2 months ago

Summary: Neverhood: TV guy subtitle jitter in module 2400NEVERHOOD: TV guy subtitle jitter in module 2400
Note: See TracTickets for help on using tickets.