From 8c827306811e08a719cd3376d1cce6b3a96d3202 Mon Sep 17 00:00:00 2001 From: comex Date: Fri, 6 Feb 2009 19:40:06 -0500 Subject: Some animation documentation. testrlan.py now fades in and out --- animtypes.txt | 23 +++++++++++++++++++++++ parse-brlan.py | 2 +- testrlan.py | 7 +++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 animtypes.txt diff --git a/animtypes.txt b/animtypes.txt new file mode 100644 index 0000000..b77cfdc --- /dev/null +++ b/animtypes.txt @@ -0,0 +1,23 @@ +RLPA +0 translateX +1 translateY +2 translateZ +3 pane_unk1 +4 pane_unk2 +5 angle +6 xmag +7 ymag +8 width +9 height +a ?? +b ?? +c ?? +d ?? +e ?? +f ?? + +RLVC --> vertex colors, arg can be 0 - f + +this calls SetColorElement... except for Pictures (from disassembly) it seems ONLY to have an effect for arg = 0x10! For this it's alpha + +RLMC --> material colors? diff --git a/parse-brlan.py b/parse-brlan.py index eeea240..2320e42 100644 --- a/parse-brlan.py +++ b/parse-brlan.py @@ -25,7 +25,7 @@ assert len(ch) == nel for typ, chunk in ch: assert typ == 'pai1' framesize, flags, _, num_timgs, num_anims, anim_offset = struct.unpack('>hbbhhI', chunk[:0xc]) - print 'Framesize: %x\nFlags: %x' % (framesize, flags) + print 'Framesize: %d\nFlags: %x' % (framesize, flags) for n in xrange(num_timgs): pos = 0x10 + 4*n offs = struct.unpack('>I', chunk[pos:pos+4]) diff --git a/testrlan.py b/testrlan.py index a3a3675..70955d8 100644 --- a/testrlan.py +++ b/testrlan.py @@ -13,6 +13,13 @@ ]) ]), + ('RLVC', 'pic', CAT_COORDS, [ + (0x10, [ + (20.0, 50.0, 1.0), + (40.0, 200.0, 1.0), + (60.0, 100.0, 1.0), + ]), + ]), ] -- cgit v1.3.1