Camera direction moved by mouse-look + full/window

Bug #419523 reported by Paul Sladen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsdl1.2 (Ubuntu)
Invalid
Undecided
Unassigned
openbve (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: openbve

If mouse-look is in use (click the right mouse button once) and Ctrl-f is pressed to switch between windowed and fullscreen, then the viewport direction will randomly move; leaving the camera in a number of strange directions (eg. upside down, sideways or looking backwards).

This is even more pronounced when the cab camera restriction is disabled (Ctrl-r to disable).

Ideally the camera should remain pointing in the same direction after a transition between full-screen and windowed.

Related branches

Revision history for this message
Paul Sladen (sladen) wrote :
Changed in openbve (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Paul Sladen (sladen) wrote :

Openbve upstream response is that the first returned mouse-result via SDL after changing between fullscreen and windowed mode (also via SDL) is bogus:

"Summary
When mouse grab is activated and the user toggles to or from fullscreen mode, the viewing angle might change abruptly to a nonsense angle.

Background
SDL reports nonsense values for the relative mouse position after switching to or from fullscreen mode, likely due to the fact that the screen dimension just changed. This will be circumvented by ignoring the first round of values that are reported by SDL for the relative mouse position after toggling fullscreen mode."

Revision history for this message
Paul Sladen (sladen) wrote :

Upstream Openbve 1.2.1.2 contains a workaround that ignores the first (erronous) mouse movement event following a screen geometry change (eg. windowed to fullscreen or vis-versa).

Ideally libSDL should be fixed to update its conversion matrix one frame sooner to avoid continuing to pass the single mismatched mouse movement event.

Changed in openbve (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openbve - 1.2.4.1-0ubuntu1

---------------
openbve (1.2.4.1-0ubuntu1) lucid; urgency=low

  * New upstream stable version (1.2.4.1) (LP: #444934)
    fixes (LP: #419523) (LP: #419525) (LP: #419530) (LP: #444462)
  * changelog.html: update (1.2.3.3)
 -- Paul Sladen <email address hidden> Wed, 6 Jan 2010 07:58:00 +0000

Changed in openbve (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Is there still work to be done in libsdl?

Changed in libsdl1.2 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.