ORTS ignores angle values in passenger "Inside" view declarations in .wag and .eng files

Bug #1257511 reported by Sid Penstone
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Open Rails
Expired
Medium
Unassigned

Bug Description

ORTS appears to ignore the "StartDirection" and "RotationLimit" values in "Inside" view declarations in .eng and .wag files. This shows up when trying to place a passenger view on the observation platform of the last passenger car or the caboose in a train.

The view direction in ORTS is always a heading of zero, which makes the view initially directed at the back wall of the coach, for example, instead of looking back down the tracks. Changing the value in the .wag file is ignored. Also, the mouse is able to rotate the view through 360 degrees rather than being limited by the values in the file.

The ORTS source code appears to include code (TrainCar.cs) to read the view angle when reading a view inside a .eng file, i.e. inside a locomotive cab, but it does not appear to get used.

MSTS reads and applies the values of "StartDirection" and "RotationLimit" correctly. Examples can be found in the Kiha31.eng and the oebarcar.wag in the default MSTS files. Changing the "StartDirection" to ( 0 45 0 ) gives an off-axis view.

I have found this occurs in Release v 0.9, and the current version X1878, and any versions that I have tried between these versions.

Revision history for this message
Carlo Santucci (carlosanit1) wrote :

Within cameras. cs there are these commented lines:
            // <CJComment> More useful without resetting. </CJComment>
            //RotationXRadians = MSTSMath.M.Radians( viewPoint.StartDirection.X );
            //RotationYRadians = MSTSMath.M.Radians( viewPoint.StartDirection.Y );
Uncommenting the two lines things are OK.
I kindly ask one of the enabled developers to perform the change. Else really undesirable viewpoints can be achieved at startup, like the attached one.

Revision history for this message
Sid Penstone (penstone) wrote :

Carlo's patch works fine for the "StartDirection"!
The "RotationLimit" values are still ignored.

Revision history for this message
James Ross (twpol) wrote :

Chris, could you please explain why these lines were commented out?

Changed in or:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Mark Yisri (markyisri) wrote :

These may have been commented because some MSTS shapes have more viewing space than what the author wrote in the WAG file.

Revision history for this message
Cédric GNIEWEK (sharpeserana) wrote :

Does the problem still happen with version 1.4?

Changed in or:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Open Rails because there has been no activity for 60 days.]

Changed in or:
status: Incomplete → Expired
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.