gpz, on 13 December 2014 - 11:53 AM, said:
Exactly the way you described in your post #1: Create the ORTS3DCab() section in .eng file's Wagon() section, and add a CabView ( "cabview.cvf" ) line in the Engine() section.
Would it not be clear to state 3d Cab requirements in this manner?
To have an Engine display a 3 dimensional cab you must:
1. First have a drivable engine with a 2 dimensional cab. e.g. a Cabview line in the ENG file pointing to a .CVF file existing in a sub-folder labeled CABVIEW or in a "Common" folder in the path stated in the Cabview line.
2. A 3D cab described by an .s file and the associated .ace or .dds files; all these files reside in a folder CABVIEW3D within the main folder of the locomotive
3. An ORTSDCabFile block in the Wagon section of the .eng file like the following:
ORTS3DCab(
ORTS3DCabFile ( Cab.s )
ORTS3DCabHeadPos ( -0.9 2.4 5.2 )
RotationLimit ( 40 60 0 )
StartDirection ( 12 0 0 )
Sound ("DF11Gcab.sms" )
)
4. A 3d cab can have multiple instances of the same instruments, for example multiple clocks, speedometers
5. Instruments are first sorted based on their appearance in the .cvf file, for example SPEEDOMETER:0 corresponds to the first speedometer in the .cvf file,
SPEEDOMETER:1 corresponds to the second one
6. An instrument can have multiple subgroups to make the animation realistic, for example, TRAIN_BRAKE:0:0 and TRAIN_BRAKE:0:1 belong to the instrument
TRAIN_BRAKE:0;
7. However, if the instrument is a digital device, the second number will be used to indicate the font size used, for example SPEEDOMETER:1:14 means the second
speedometer (which is digital as defined in .cvf) will be rendered with 14pt font. This may be changed in future OR releases. The important information for a digital device is its location, thus it can be defined as an object with a small single face in the 3D model.
8. Animation ranges must also be in agreement with the .cvf file.
FWIW I ran a little test. I edited the Cabview line to point to a non-existing CVF file for an ENG file with an ORTSDCabFile block and a CABVIEW3D folder with a cab shape file and associated ACE files. Ran Open Rails with that engine in the lead of a consist. OR opened to the #2 view instead of the #1 view. When I hit the #1 key OR displayed an Error saying Cabview not available. But when I keyed ALT-1 the 3d Cab Opened and showed. The sounds worked correctly horn, bell, air, Sand, handle clicks. BUT the handles were not in the correct starting positions and they did not move when adjusted. Example Reverser was in reversed position and did not move when I pressed the D key. However the HUD did show the correct information as I made key strokes.