Setting up Animations
#1
Posted 11 November 2017 - 08:28 AM
I was viewing the L1 form the Blender to MSTS exporter files, but I can't figure out how the pantograph was set up in the way it has been.
So I was wondering how do you set up a train pantograph and determine how long it takes to rise.
I was also wondering about setting up multiple keyframes to emulate the way the pantograph rises and bounces on the wire as it contacts.
This leads to a similar topic, which would be plug doors as seen in 1:32, 1:48, 2:51 & 2:58 of the following video: https://youtu.be/2fi0m8ei_B4
#2
Posted 12 November 2017 - 06:56 PM
Sliding doors can be animated, but twin doors would be two separate animation parts.
(It is a long time since I animated anything.)
Cheers Bazza.
#3
Posted 13 November 2017 - 09:58 AM
I also wondered about the various type of doors, particularly the plug doors you see on multiple units.
https://youtu.be/2fi0m8ei_B4 The plug doors are at the following timestamps: 0:40, 1:31, 1:41, 2:51 & 2:56.
#4
Posted 13 November 2017 - 07:49 PM
The animation sequence for an electric EMU would be 0 ~ 16 frames. Only frame 0 and frame 16 are used.
Door closed frame 0, door closed at frame 16.
Pantograph up frame 0, pantograph down fram 16.
As long as you set the animation sequence to a total of 17 frames (0 to 16, inclusive) that should suffice.
There is a method to control the speed to make the sequence playback slower by an edit in the ENG file, however, it sets the playback speed for every animated part in the ENG file.
Cheers Bazza.
#5
Posted 13 November 2017 - 08:00 PM
#6
Posted 14 November 2017 - 10:55 AM
DOOR_D,DOOR_DDD,DOOR_E etc opens left side doors.
Regards.
#7
Posted 14 November 2017 - 02:27 PM
captain_bazza, on 13 November 2017 - 07:49 PM, said:
The animation sequence for an electric EMU would be 0 ~ 16 frames. Only frame 0 and frame 16 are used.
Door closed frame 0, door closed at frame 16.
Pantograph up frame 0, pantograph down fram 16.
As long as you set the animation sequence to a total of 17 frames (0 to 16, inclusive) that should suffice.
There is a method to control the speed to make the sequence playback slower by an edit in the ENG file, however, it sets the playback speed for every animated part in the ENG file.
Cheers Bazza.
Also, when looking at the L1 that came with the tutorial, it only spans 1 frame (Figure 1B) which confused me since when I opened up the .s file, the pantograph raised like normal. I simply couldn't figure it out.
Figure 1:
#8
Posted 14 November 2017 - 03:04 PM
I should have explained that frame 0 is what is referred to as the "key" frame. All animation sequences have a starting "key" frame. It is a binary requirement that such numerical sequences start begin at "0".
Thus your door animation, given the restrictions of a 1990's graphics engine design, and MSTS coding in particular, limits some animations to frame 0 ~ frame 1, total = 2 frames.
Doors: = frame 0 > closed; frame 1 > open.
My experience relates to animating steam locos, with frames 0 ~ 16 = 17 frames. An EMU or DMU power car and/or carriage models might only have 2 frames total, but unless the animation sequence playback speed id slowed, the animation at 24 fps is much too fast for doors (toggled shut/open).
However, as I mentioned in a previous post, you may be able to stretch the number of frames "inbetween" frame 0 (closed) frame 16 (open). (17 frames is a suggestion.) You might still have to adjust the playback rate to further slow down the door action.
Cheers Bazza.
#9
Posted 14 November 2017 - 03:22 PM
Lateral: anything that "moves" in the same plane, ie, sliding doors, piston crosshead.
Rotational: anything that rotates about an axis point, ie, steam loco drive wheels and rods that rotate about an axis point.
Restrictions:
An animated part cannot be assigned two types of action, ie, lateral and rotational.
An animated part cannot change its shape or dimensions.
........
There are a few tricks to the "trade" to give some flexibility using actions for other purposes - for MSTS, not sure whether this extends to OR's coding. (Sometimes you have to think outside the box. Sometimes it works, sometimes it does; that's part of the "fun".)
Cheers Bazza.
#10
Posted 14 November 2017 - 04:34 PM
For instance, the upper arm of a pantograph moves and rotates simultaneously.
In my experience, three frames animates a door with correct speed, but six allows for a panto, with some overshoot, like the real ones.
Regards.