Register - Login
Views: 87370014
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
11-20-17 09:05:27 AM

Jul - SM64 Hacking - SM64 Animation format New poll - New thread - New reply
Next newer thread | Next older thread
Kaze
Member
Level: 17


Posts: 45/63
EXP: 21517
For next: 3226

Since: 10-25-12


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 11-18-14 06:00:37 PM (last edited by Kaze at 11-19-14 06:40:18 PM) Link | Quote
Animation data starts where the 0x27 26 behavior command points to; 0x28 command chooses one of these animations and uses it for the object. second byte of it gets mutliplied by 4 and added to the start offset of the 27 26 command.

[segmented pointers to animation headers] (put as many pointers as necessary)

____________________________________________________
animation header

1,2 (amount of repeats, 0 for infinte)
3,4 (unknown)
5-8 (empty?)
9,A (frame count)
B,C (node count (every 0x13 command opens one node, nodes are attached to the previous node by 0x04 commands))
D-10 (segmented pointer to transformation values)
11-14 (segmented pointer to transformation index)
____________________________________________________
transformation index:
first 0x0C bytes are for translation, though it seems to only be possible to move the first limb,
all the other 0x0C byte groups are for limb rotation.


rotation/translation group:
1,2 (u16 X key)
3,4 (u16 value select)
5,6 (u16 Y key)
7,8 (u16 value select)
9,A (u16 Z key)
B,C (u16 value select)


framcount = obj->0x40;
if framecount>key {
framecount = key;}
value select*2+framecount*2+transformation values offset = pointer to translation or rotation to use
(rotations and translations are both 16bit, rotations go from 0 (0 degree) over 8000 (180 degree), to FFFF (~360/~0 degree)

edit: i forgot to credit on old post who had a doc on how animations work for mario, i didnt figure all of this out, that old post figured out how it worked for mario's animations, while its slightly different for object animations. also, for some reason that old post got deleted.
Kaze
Member
Level: 17


Posts: 46/63
EXP: 21517
For next: 3226

Since: 10-25-12


Since last post: 1.0 years
Last activity: 1.0 years

Posted on 01-13-15 01:57:55 PM Link | Quote
https://www.youtube.com/watch?v=lSy3N3QDrm4

finally wrote a converter for this, only works with maya.
Next newer thread | Next older thread
Jul - SM64 Hacking - SM64 Animation format New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries, 1 query cache hits.
Query execution time: 0.160595 seconds
Script execution time: 0.003489 seconds
Total render time: 0.164084 seconds