Having trouble logging in? Password not accepted? Recently some bad apples caused a bit of a ruckus around here and a few accounts had to be reset.
Please, drop Toshiba, Errol or n3wton a line and they'll sort you right out! We apologise for any inconvenience this may cause :(

C2 Ped Animation Format
User avatar
Trent created C2 Ped Animation Format on Thu Oct 29, 2015 10:14 am
The other day I figured out the animation format for C:R peds so I could import and export animations use my MaxScript. Errol said the format was the same as C2's format, which hasn't been figured out yet, so I took a look this morning and it's actually a bit different but quite similar. The format seems to be as follows:
int BoneCount
int FrameCount
for each bone
    string (32 bytes) BoneName
    byte NullByte
    int SomeCount (maybe number of child bones?)
    for each SomeCount
        int SomeNumber (likely to be child bone index, but Bip01 has a value of 10,000 for one, though maybe that's a quirk of Biped)
for each frame
    for each bone
        48 bytes = 12 floats = Matrix3x4 TransformMatrix

I've not messed around with it any further as I haven't got any C2 file support in my scripts to try applying the animations to a ped model, but I thought it would be a good idea to post my findings here :)
a.k.a. Trent
User avatar
Toshiba-3 on Sun Nov 08, 2015 6:43 pm
Thanks for sharing the info, Trent.
Adds to the little we knew about ped setup: viewtopic.php?f=3&t=2298

Would just be nice to investigate some more the little differences between SKL and BON formats.
Image / carmageddon add-ons at road reaction
User avatar
Trent on Wed Nov 11, 2015 5:57 pm
I am fairly sure the only difference between SKL and BON formats are that SKL are used for Biped/character studio rigged peds while BON are used with generic bone system rigged peds. I would guess the game expects SKL to only have specific bone names, maybe a specific order, while BON can have any names and order.
a.k.a. Trent
Pages: 1

Extra information
It is currently Sat Feb 23, 2019 5:48 am,

Please Register a username.
In total there are 6 users online :: 0 registered, 0 hidden and 6 guests
Users browsing this forum: No registered users and 6 guests
Moderator: coffeycup

Powered by phpBB :: Hosted by n3wton :: Molested by goats
CWA Links