Skip to content

Commit 9802097

Browse files
committed
Automatic merge of T1.6-89-ga2a9bbcc8 and 11 pull requests
- Pull request #1156 at f46d5f2: Fix incorrectly disabled options in train operations window - Pull request #1086 at d8d61eb: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at e813c42: Automatic speed control - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1120 at ba3c47f: Automatically Calculate Friction Values if Missing - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1124 at e241a0d: Built-in PBL2 brake controller - Pull request #1126 at 95e884f: ShapeHierarchy Attachment for More Wagon Addons - Pull request #1157 at 39cd994: Dynamic brake authorization by TCS - Pull request #1159 at 48c9a63: Skip OR warnings about TSRE-specific token Ruler - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge
13 parents 2329220 + a2a9bbc + f46d5f2 + d8d61eb + e813c42 + 270f22f + ba3c47f + 91d2d26 + e241a0d + 95e884f + 39cd994 + 48c9a63 + 5845a1a commit 9802097

36 files changed

+1542
-1374
lines changed

Source/Documentation/Manual/cabs.rst

Lines changed: 72 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,53 @@ in the .cvf header, that is the right side viewpoint.
12341234

12351235
Note that in Open Rails you may have more than three cabviewpoints defined for 2D cabs.
12361236

1237+
Advanced cab viewport positioning
1238+
---------------------------------
1239+
1240+
.. index::
1241+
single: ORTSShapeHierarchy
1242+
1243+
In some unusual cases, it may be desired to have the cab view point move not with the main
1244+
locomotive body, but with a sub object of the locomotive, such as a bogie. To do this, the
1245+
parameter ``ORTSShapeHierarchy ( MATRIXNAME )`` can be added inside the .cvf file, once
1246+
for each viewport. If this is used, the position of the viewport will no longer be measured
1247+
relative to the locomotive itself, but relative to the sub object with the given name. As
1248+
the sub object translates and rotates, the cab view will do the same in sync. Each viewport
1249+
can be attached to a different sub object, though in many cases attaching all three to the
1250+
same sub object will make the most sense::
1251+
1252+
Comment ( A hypothetical cab view where the cab is attached to the BOGIE1 sub object of the locomotive shape. )
1253+
Tr_CabViewFile (
1254+
CabViewType ( 3 )
1255+
CabViewFile ( Front.ace )
1256+
CabViewWindow ( 0 0 640 400 )
1257+
CabViewWindowFile ( "" )
1258+
Position ( 1.265 3.44 6.24 )
1259+
Direction ( 7 -20 1 )
1260+
ORTSShapeHierarchy ( BOGIE1 )
1261+
CabViewFile ( Rear.ace )
1262+
CabViewWindow ( 0 0 640 480 )
1263+
CabViewWindowFile ( "" )
1264+
Position ( 1.26 3.44 6.24 )
1265+
Direction ( 6 179 0 )
1266+
ORTSShapeHierarchy ( BOGIE1 )
1267+
CabViewFile ( Right.ace )
1268+
CabViewWindow ( 0 0 640 480 )
1269+
CabViewWindowFile ( "" )
1270+
Position ( 1.26 3.44 6.24 )
1271+
Direction ( 12 36 0 )
1272+
ORTSShapeHierarchy ( BOGIE1 )
1273+
1274+
Matrix names can be determined using shape viewing utilities. If the named matrix can't
1275+
be found in the locomotive shape, a warning will be added to the log and the cab viewport
1276+
will attach to the main shape object. ``ORTSShapeHierarchy`` is entirely optional, and if
1277+
missing the cab viewport will be attached to the main shape object, same as in MSTS.
1278+
1279+
Note that passenger views and 3D cabs also support ``ORTSShapeHierarchy`` but the
1280+
:ref:`implementation is different<features-viewpoint-positioning>`, as it is not done
1281+
inside the .cvf file.
1282+
1283+
12371284
3D cabs
12381285
=======
12391286

@@ -1283,40 +1330,48 @@ Development Rules
12831330
- Within the Wagon section of the .eng file a block like the following one
12841331
has to be generated::
12851332
1286-
ORTS3DCab(
1333+
ORTS3DCab (
12871334
ORTS3DCabFile ( Cab.s )
12881335
ORTS3DCabHeadPos ( -0.9 2.4 5.2 )
12891336
RotationLimit ( 40 60 0 )
12901337
StartDirection ( 12 0 0 )
1338+
ORTSShapeOffset ( 0 0 0 )
1339+
ORTSShapeHierarchy ( MAIN )
12911340
)
12921341

12931342
- If also a rear cab is present, a second ``ORTS3DCab`` has to be added,
12941343
as follows::
12951344

1296-
ORTS3DCab(
1345+
ORTS3DCab (
12971346
ORTS3DCabFile ( Cab.s )
12981347
ORTS3DCabHeadPos ( 0.9 2.4 5.2 )
12991348
RotationLimit ( 40 60 0 )
13001349
StartDirection ( 12 180 0 )
1350+
ORTSShapeOffset ( 0 0 0 )
1351+
ORTSShapeHierarchy ( MAIN )
13011352
)
13021353

1354+
- Similarly to :ref:`passenger views<features-viewpoint-positioning>`,
1355+
``ORTSShapeOffset`` and ``ORTSShapeHierarchy`` are optional and
1356+
give more control over the location of the cab shape and camera
1357+
location, but aren't needed for standard rolling stock.
1358+
13031359
- Alternate 3D cab viewpoints may be added, as in the example here below::
13041360

1305-
ORTSAlternate3DCabViewPoints
1306-
(
1307-
ORTSAlternate3DCabViewPoint(
1308-
ORTS3DCabFile ( Cab.s )
1309-
ORTS3DCabHeadPos ( 0.9 2.4 5.2 )
1310-
RotationLimit ( 40 60 0 )
1311-
StartDirection ( 12 0 0 )
1312-
)
1313-
ORTSAlternate3DCabViewPoint(
1314-
ORTS3DCabFile ( Cab.s )
1315-
ORTS3DCabHeadPos ( -0.8 2.4 5.2 )
1316-
RotationLimit ( 40 60 0 )
1317-
StartDirection ( 12 30 0 )
1318-
)
1319-
)
1361+
ORTSAlternate3DCabViewPoints (
1362+
ORTSAlternate3DCabViewPoint (
1363+
ORTS3DCabFile ( Cab.s )
1364+
ORTS3DCabHeadPos ( 0.9 2.4 5.2 )
1365+
RotationLimit ( 40 60 0 )
1366+
StartDirection ( 12 0 0 )
1367+
)
1368+
ORTSAlternate3DCabViewPoint (
1369+
ORTS3DCabFile ( Cab.s )
1370+
ORTS3DCabHeadPos ( -0.8 2.4 5.2 )
1371+
RotationLimit ( 40 60 0 )
1372+
StartDirection ( 12 30 0 )
1373+
)
1374+
)
13201375

13211376

13221377
- To switch between alternate cab viewpoints ``Ctrl-Shift-1`` must be pressed.

0 commit comments

Comments
 (0)