26-07-14, 07:04 | #1 | |
Member
Joined: Jan 2012
Posts: 1,320
|
TRW Editor: mirroring and transferring animations
Long time ago the first open to discuss version of this tutorial was created. Here is the final version with all founds put together
This tutorial explains how to transfer animations between movables with different meshtrees. Here also explained how to mirror animations without getting into any CAD program. Important: first you should read the manual included in Sapper's TRW-Editor’s package because it is necessary to understand the further process. A) Applying movable’s animation to another movable. You need to know which mesh-tree is used on certain movable. I made visual schema for this: Each number shows the mesh index. You see that they are different for body parts of movables. First export the *.trw animation you want to transfer between movables (In this example it was the guide’s animation which was applied to trc-baddy later). Open *.trw in TRW Editor and save it as a *.csv. CSV is a text file which can be edited in table editors like Excel. You will see the rows and columns like these: Code:
bbx1 bbx2 bby1 bby2 bbz1 bbz2 offx offy offz Msh0 rotx Msh0 roty Msh0 rotz Msh1 rotx Msh1 roty Msh1 rotz Msh2 rotx Msh2 roty Msh2 rotz -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 -566 -257 -613 5 -178 180 -434 -272 -96 6 80 0 276 989 928 753 0 0 I had to check it in notepad because for some reason the numbers were divided with ; instead of , and this has been fixed manually. Open the *.csv in TRW Editor, set the required frame rate and other parameters and save as a *.trw. Import this animation into new movable. If everything was done correctly you will see you movable with new animation. If not… well, don’t save your wad, and try again The guide you see in the picture was made by Trinity, White Tiger (meshes) and Bojrkraider (animations). Some meshes are empty (8-11, 15, 19-20, 22-24), and they don’t need to present in new movable in this case. B) Mirroring Lara’s animations You’ll have to repeat some steps described above. Open the CSV animation in Excel or similar program. I mirrored the right-leg-kick animation and followed these rules: 1) OffX values must be inverted (each OffX = OffX*(-1)), OffY and OffZ stay untouched (Position) 2) Msh0 RotX stays untouched, Msh0 RotY and Msh0 RotZ are inverted (rotation of Lara’s butt) 3) For Msh7 and Msh14 see the rule above (rotation of Lara’s torso(Msh7) and head(Msh14)) 4 ) The legs must be swapped: a) You have to swap Msh1 and Msh4, Msh2 and Msh5, Msh3 and Msh6 columns b) Their RotX stays untouched, RotY and RotZ must be inverted 5) For the arms you have to do almost the same: a) You have to swap Msh8 and Msh11, Msh9 and Msh12, Msh10 and Msh13 columns b) Their RotX stays untouched, RotY and RotZ must be inverted After that save your CSV, convert it to TRW and import. If everything is correct you’ll see your animation is now mirrored. Here’s the preview – some kind of sport-kicks (Notice that I did not mirror the head and arms, it’s a test after all ). As you can see, here is nothing as complicated as it looks. -------- Additional utilites by Krystian -------- Krystian did a lot of work to make mirroring animations faster and more user-friendly. He made several macros for MS Excel which can be used for different purposes. List of macros with short descriptions: Quote:
If you have suggestions or comments please post them in discussion thread Last edited by A_De; 22-01-15 at 05:43. Reason: MS Excel macros added |
|
Thread Tools | |
|
|