aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--animtypes.txt23
-rw-r--r--parse-brlan.py2
-rw-r--r--testrlan.py7
3 files changed, 31 insertions, 1 deletions
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),
+ ]),
+ ]),
]