MDL file
From Wiki
Holy Diver (talk | contribs) |
Holy Diver (talk | contribs) (Primitive Channels) |
||
Line 42: | Line 42: | ||
This byte is not super well understood. It is either a straight value, or a bitwise combination of flag values. Known values are 0, 1, and 4. For not animated, [[Tinman]] style animation, and [[Scarecrow]] style animation respectively. | This byte is not super well understood. It is either a straight value, or a bitwise combination of flag values. Known values are 0, 1, and 4. For not animated, [[Tinman]] style animation, and [[Scarecrow]] style animation respectively. | ||
− | HA ¦ SA | + | HA ¦ SA |
These bytes are the number of hard and soft (aka. Tinman/Scarecrow) animations contained within the file. | These bytes are the number of hard and soft (aka. Tinman/Scarecrow) animations contained within the file. | ||
Line 60: | Line 60: | ||
==Primitive channels== | ==Primitive channels== | ||
</legend> | </legend> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ||- -VB- -||- -VC- -||- -NB- -||- -NC- -||- -PB- -||- -PC- -||- -U0- - | ||
+ | |} | ||
+ | <ifieldset class="spec"> | ||
+ | <legend> | ||
+ | [[swordofmoonlight.h]] | ||
+ | </legend> | ||
+ | {| class="collapsible" | ||
+ | |- | ||
+ | |VB:||vertsbase||''dword offset to vertex block'' | ||
+ | |- | ||
+ | |VC:||vertcount|| | ||
+ | |- | ||
+ | |NB:||normsbase||''dword offset to normal block'' | ||
+ | |- | ||
+ | |NC:||normcount|| | ||
+ | |- | ||
+ | |PB:||primsbase||''dword offset to face block'' | ||
+ | |- | ||
+ | |PC:||primcount|| | ||
+ | |- | ||
+ | |U0:||unknown00||''probably always zero'' | ||
+ | |} | ||
+ | </ifieldset> | ||
+ | |||
+ | VB ¦ NB ¦ PB | ||
+ | These three 32bit (the alignment is 32bit, The values themselves may be 16bit) values are offsets which should be added to the end of the header (or the beginning of the first primitive channel ''sub header'') in order to reach the beginning of the Vertex/Normal/Primitive (face) data belonging to this primitive channel. Part of the [[#Per vertex location]], [[#Per vertex lighting]], and [[#3D primitives]] blocks respectively. The units are in 32bit intervals. In other words, a value of 4, indicates 16 bytes. The offsets are absolute, which is to say, not relative to one another. | ||
+ | |||
+ | VC ¦ NC ¦ PC | ||
+ | These three 32bit (the alignment is 32bit, The values themselves may be 16bit) values account for the number of elements expected to be found within the blocks indicated by VB, NB, PB respectively. | ||
+ | |||
</fieldset> | </fieldset> | ||
<fieldset class="spec"> | <fieldset class="spec"> |
Revision as of 20:54, 5 April 2011
This article or section is in the middle of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article has not been edited in several days, please remove this template. This page was last edited by Holy Diver (talk| contribs) ago. (Purge) |
Contents