Silkroad Online/Model

From XentaxWiki
Jump to: navigation, search

Format Specifications

char[8] idstring
char[4] version

struct Header {
    uint32 vertex offset
    uint32 bone offset
    uint32 index offset
    uint32 
    uint32
    uint32 bbox offset
    uint32
    uint32
    uint32
    uint32
    uint32
    uint32
    uint32
    uint32 vertType
    uint32
}

uint32 length
char[length] meshName

uint32 length2
char[length2] texName

uint32
unit32 numVerts

numVerts Vertex {
    float[3] coords
    float[3] normals
    float[2] uv
    
    if vertType == 0
        dword[3]
    else if vertType == 1024
        dword[5]
}
uint32 numBones
numBones Bone {

}

uint32 numFaces
uint16[numFaces*3] index


Notes

Any notes that are too large to leave as comments.

Import Scripts

Any import scripts that have been written.

Related Games

Games that use the same, or a very similar, format.