游戏研究室

文档-资料-开源

龙之谷MSH文件结构

 

MSH文件结构

文件头

readUTFBytes(256)

version

readInt()

meshCount

readInt()

unknown1

readInt()

unknown2

readInt()

BoundingBoxMax

readFloat()*4

BoundingBoxMin

readFloat()*4

boneCount

readInt()

unknown3

(网格渲染模式

1:双面渲染

0:单面渲染)

readInt()

otherCount

readInt()

position = 1024

boneName

readUTFBytes(256)

*boneCount

M1

readFloat()*4

M2

readFloat()*4

M3

readFloat()*4

M4

readFloat()*4

sceneRoot

readUTFBytes(256)

*meshCount

meshName

readUTFBytes(256)

vertexCount

readInt()

indexCount

readInt()

unknown

readInt()

renderMode

readInt()

position += (512 - 16)

vertexIndex

readUnsignedShort()*indexCount

vertexData

[readFloat()*3]* vertexCount

normalData

[readFloat()*3]*vertexCount

UVData

[readFloat()*2] *vertexCount

boneIndex

[readUnsignedShort()*4] *vertexCount

boneWeight

[readFloat()*4]* vertexCount

boneCount

readInt()

boneName

readUTFBytes(256)*boneCount

OtherData

 

 

, , ,

发表评论