How to adjust your (animated) pantograph height...
Rationale - routes with overhead wires can be set at different heights (probably not too relevant to UK routes), so different locos look odd if the pantograph is too high (e.g. the Acela is 7.2M the Japan wire height is just over 5M)
Unfortunately, the MSTS models are unable (and will never be able) to detect this to set the pantograph height accordingly.
Adjusting the height is not a simple matter of scaling (though you could do this but the loco would look a bit odd)
The angles of the pantograph animation need to be changed.
Using the Acela as an example, this has two parts (to both pantos)
The lower arm moves up by about 45 degrees and the upper arm moves 85 degrees (about twice the angle) relative to the lower arm.
The relevant part of the S file that controls this is :
(I have removed the linear key parts and a few brackets for clarity - not relevant)
Code: Select all
anim_node PANTOGRAPHBOTTOM1 (
controllers ( 2
tcb_rot ( 3
tcb_key ( 0 -0.00436731 0 0 0.99999 0 0 0 0 0 )
tcb_key ( 1 -0.386715 0 0 0.922199 0 0 0 0 0 )
tcb_key ( 2 -0.386715 0 0 0.922199 0 0 0 0 0 )
anim_node PANTOGRAPHTOP1 (
controllers ( 2
tcb_rot ( 3
tcb_key ( 0 0.0479783 0 0 0.998848 0 0 0 0 0 )
tcb_key ( 1 0.678801 0 0 0.734322 0 0 0 0 0 )
tcb_key ( 2 0.678801 0 0 0.734322 0 0 0 0 0 )Looking at the Acela we can see that the key frames 1 and 2 (first parameter) are the same (modelling oddity?) 45/85 bottom/top animation angles and the first key frame (0) is almost 0 angle for top and bottom.
So now we can scale the animation - ignore key frame 0, this should be close to zero, if not use the difference to scale the angle.
To change the animation to 35/70 degrees bottom/top, take out your casio calculators, last used for O-level exams,
Sin(35/2)=0.3007, Cos(35/2)=0.95372 etc...
Code: Select all
anim_node PANTOGRAPHBOTTOM1 (
controllers ( 2
tcb_rot ( 3
tcb_key ( 0 -0.00436731 0 0 0.99999 0 0 0 0 0 )
tcb_key ( 1 -0.3007 0 0 0.95372 0 0 0 0 0 )
tcb_key ( 2 -0.3007 0 0 0.95372 0 0 0 0 0 )
anim_node PANTOGRAPHTOP1 (
controllers ( 2
tcb_rot ( 3
tcb_key ( 0 0.0479783 0 0 0.998848 0 0 0 0 0 )
tcb_key ( 1 0.57358 0 0 0.81915 0 0 0 0 0 )
tcb_key ( 2 0.57358 0 0 0.81915 0 0 0 0 0 )Now the warnings...
Make sure you backup your files first!
Some animations may have more steps - you may need to experiment further.
Also, this is still not 1000% tested, though early tests looked promising.
Big thanks to Otto for introducing me to this part of the sim and for managing to understand my earlier e-mails. At some point in the future I'll alter the shape file manager to read and make the adjustments much more easliy (though I am a bit busy at the moment so it won't be very soon)