Menu

#2 HUD display distorted when player moves

open
nobody
None
7
2008-05-06
2008-05-06
Ted
No

* Build & run PigShooter
- NOTE: It is easier to see the problem if you modify processElapsedFrames() in apps/PigShooter/Sources/PigKeyNavBehaviour.java to change
eTime > 999
to
eTime > 20
This forces the redraw to happen at 50fps, vice just 1fps
* Drive around (arrow keys)
- shift-key to toggle "run" mode
- In particular, turn & shoot. In addition to the timer (eTime > ...), shooting causes a scorecard udpate.

EXPECTED: Smooth display of HUD

ACTUAL: The HUD rotates & moves with player movement, giving a jittery, unpleasant experience.

In apps/PigShooter/Sources/PigShooter.java, in replaceScoreCard(), there is a switch statement which details the several attempts made to solve this problem, none of which give satisfactory results. It's not clear if this is a bug in J3D or not.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB