Menu

#2671 Views: resetting position displaces camera

2020.4
Accepted
None
Low
2024-01-25
2021-11-07
No

I noticed that resetting the view position with MMB+LMB displaces the camera to the opposite side of the original position if there is a head displacement (controlled by <limits> and <x-offset-max-m>).

Reproducing:

  1. Run FGFS with any aircraft that uses head limit and limit offset.
  2. Look to the side enough to trigger the head displacement.
  3. Press MMB+LMB.
    Expected: View rotation and position are set to the configured originally.
    Get: View rotation reset properly, position displaced opposite of the head displacement.
  4. Press MMB+LMB again. This time the displacement will go away.

I guess this occurs due to some leftover code trying to take the head displacement in account for some reason, and adds it to the config original.

Discussion

  • Gijs

    Gijs - 2024-01-25
    • status: New --> Accepted
    • assigned_to: Julian Smith
    • Milestone: None --> 2020.4
     
  • Gijs

    Gijs - 2024-01-25

    @cgdae, tagging you as view-master ;-)
    I was able to confirm this on current next. Looks like this may have something to do with view.pilot_view_limiter()

     

Log in to post a comment.

MongoDB Logo MongoDB