WOW M2 文件格式学习

本文详细探讨了WOW M2文件格式,它是魔兽世界中用于存储3D模型和动画的数据文件。内容涵盖了float数值的使用、表格结构、参数细节、纹理和颜色处理等方面,为游戏开发爱好者提供了深入理解游戏资产内部工作原理的宝贵资料。
摘要由CSDN通过智能技术生成
Header
The header has mostly the layout of number-offset pairs, containing the number of a particular record in the file, and the offset. These appear at fixed places in the header. Record sizes are not specified in the file.
The unknown blocks have (mostly arbitrary) alphabetic names until we figure out what they are.
Offset
Type
Description
0x000
char[4]
"MD20"
0x004
uint8[4]
Version (always 00 01 00 00)
0x008
uint32
model name length
0x00C
uint32
model name offset
0x010
uint32
Model type? always 0, 1 or 3 (mostly 0)
0x014
uint32
nGlobalSequences - number of global sequences 全局的时间序列,各个动画的duration
0x018
uint32
ofsGlobalSequences - offset to global sequences
0x01C
uint32
nAnimations - number of animation sequences
0x020
uint32
ofsAnimations - offset to animation sequences
0x024
uint32
nC
0x028
uint32
ofsC
0x02C
uint32
nD - always 201 or 203 depending on WoW client version
0x030
uint32
ofsD
0x034
uint32
nBones - number of bones
0x038
uint32
ofsBones - offset to bones
0x03C
uint32
nF - bone lookup table
0x040
uint32
ofsF
0x044
uint32
nVertices - number of vertices
0x048
uint32
ofsVertices - offset to vertices
0x04C
uint32
nViews - number of views (LOD versions?) 4 for every model
0x050
uint32
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值