3D BMD Structs MU Clients

Results 1 to 5 of 5
  1. #1
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    config 3D BMD Structs MU Clients

    Hi for all, I like share this BMD Structs from MU Client Models, maybe can be usefull to some person.

    Code:
    #pragma pack(push, 1)
    typedef struct tagBMD_HEADER {
        BYTE signature[3];            // "BMD"
        BYTE encoding;                // 0x0a = normal
        BYTE sourcefile[32];        // smd file name
        WORD value1;                // number of materials (?)
        WORD value2;                // ?
        WORD value3;                // ?
        WORD vertexcount;            // number of vertices
        WORD value5;                // number of normals (?)
        WORD texcoordcount;            // number of texturecoords
        DWORD facescount;                // number of faces
    } BMD_HEADER;
    
    typedef struct tagBMD_VERTEX_DATA {
        float v1, v2, v3, v4;
    } BMD_VERTEX_DATA;
    
    typedef struct tagBMD_VALUE5_DATA {        // normals (?)
        float v1, v2, v3, v4, v5;
    } BMD_VALUE5_DATA;
    
    typedef struct tagBMD_TEXCOORD_DATA {        // texcoords
        float v1, v2;
    } BMD_TEXCOORD_DATA;
    
    typedef struct tagBMD_INDEX_DATA {        // face indices
        BYTE type;
        BYTE unkwnon0;
        // vertex indices
        WORD i1;    
        WORD i2;
        WORD i3;
        WORD unknown1;
        // ?
        WORD i4;
        WORD i5;
        WORD i6;
        WORD unknown2;
        // texture coordinate indices
        WORD i7;
        WORD i8;
        WORD i9;
        BYTE reserved[40];
    } BMD_INDEX_DATA;
    #pragma pack(pop)


  2. #2
    Proficient Member Van_Bom is offline
    MemberRank
    May 2009 Join Date
    194Posts

    Re: 3D BMD Structs MU Clients

    you are the idol of my heart

  3. #3
    Member NaveMu is offline
    MemberRank
    Feb 2012 Join Date
    61Posts

    Re: 3D BMD Structs MU Clients

    all versions?

  4. #4
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: 3D BMD Structs MU Clients

    Quote Originally Posted by NaveMu View Post
    all versions?
    on: eX7XX versions encoding is changed.. maybe:

    typedef struct tagBMD_HEADER {
    BYTE signature[3]; // "BMD"
    BYTE encoding; // 0x0d = eX700
    BYTE sourcefile[32]; // smd file name
    WORD value1; // number of materials (?)
    WORD value2; // ?
    WORD value3; // ?
    WORD vertexcount; // number of vertices
    WORD value5; // number of normals (?)
    WORD texcoordcount; // number of texturecoords
    DWORD facescount; // number of faces
    } BMD_HEADER;


  5. #5
    Member NaveMu is offline
    MemberRank
    Feb 2012 Join Date
    61Posts

    Re: 3D BMD Structs MU Clients

    Quote Originally Posted by Kiosani View Post
    on: eX7XX versions encoding is changed.. maybe:

    typedef struct tagBMD_HEADER {
    BYTE signature[3]; // "BMD"
    BYTE encoding; // 0x0d = eX700
    BYTE sourcefile[32]; // smd file name
    WORD value1; // number of materials (?)
    WORD value2; // ?
    WORD value3; // ?
    WORD vertexcount; // number of vertices
    WORD value5; // number of normals (?)
    WORD texcoordcount; // number of texturecoords
    DWORD facescount; // number of faces
    } BMD_HEADER;


    could you give an example of how to use? I'm a doubt ... I would be in the case? : TagBMD_HEADER-> signature[3] something like this



Advertisement