Results 1 to 3 of 3
  1. #1
    Grooguz
    Grooguz is offline
    BanHammer Holder
    Grooguz's Avatar
    Join Date
    2010 May
    Posts
    678
    Thanks Thanks Given 
    152
    Thanks Thanks Received 
    537
    Thanked in
    167 Posts
    Rep Power
    14

    Dragon Nest MSH structure

    MSH structure:
    • Header
    • BoneData
    • MeshData
    • OtherData


    Header
    Code:
    struct Header{
        char name[256];	//Eternity Engine Mesh File 0.1
        int version;  //file version
        int meshCount;
        int unknown1;	//0x1
        int unknown2;	//0x0
        Vec3F bbMax;
        Vec3F bbMin;
        int boneCount;  //overall bone count
        int unknown2;	//0x1 or 0x0
        int otherCount; //other elements
    };
    BoneData
    offset 0x400
    Code:
    struct BoneData{
    	char boneName[256];		
    	Vec4F transformMatrix[4];	//Bone transformation matrix
    };
    MeshData
    Code:
    struct MeshInfo{
    	char sceneName[256];
    	char meshName[256];
    	int vertexCount;
    	int indexCount;
    	int unknown;
    	int renderMode;
    	char empty[512 - 16];
    };
    
    struct MeshDataPointer{//pointer
        char* pFaceIndex;	//0x2(unsigned short) * indexCount
        char* pVertexData;	//0x4(float) * 3 * vertexCount
        char* pNormalData;	//0x4(float) * 3 * vertexCount
        char* pUVData;	//0x4(float) * 2 * vertexCount
        char* pBoneIndex;	//0x2(unsigned short) * 4 vertexCount
        char* pBoneWeight;	//0x4(float) * 4 * vertexCount
        int*  pBoneCount;
        char* pBoneName;	//0x100(char [256]) * boneCount
    };
    VertexData elements - the vertex in 3d space xyz coordinate, Vec3F structure data.

    Chinese description




    OtherData
    Code:
    class Vec2F{
    	public:
    	float x;
    	float y;
    	Vec2F(){x = 0; y = 0;}
    	Vec2F(KFbxVector2 &vector){
    		x = vector.GetAt(0);
    		y = vector.GetAt(1);}
    	Vec2F(KFbxVector4 &vector){
    		x = vector.GetAt(0);
    		y = vector.GetAt(1);}
    };
    
    class Vec3F : public Vec2F{
    	public:
    	float z;
    	Vec3F() : Vec2F(){z = 0;}
    	Vec3F(KFbxVector4 &vector) : Vec2F(vector){
    		z = vector.GetAt(2);}
    };
    
    class Vec4F : public Vec3F{
    	public:
    	float w;
    	Vec4F() : Vec3F(){w = 0;}
    	Vec4F(KFbxVector4 &vector) : Vec3F(vector){
    		w = vector.GetAt(3);}
    };


    P.S. If some one can translate this into En, please add your comment

  2. The Following User Says Thank You to Grooguz For This Useful Post:


  3. #2
    lastsoul28
    lastsoul28 is offline
    New member
    Join Date
    2012 Jul
    Posts
    31
    Thanks Thanks Given 
    6
    Thanks Thanks Received 
    5
    Thanked in
    3 Posts
    Rep Power
    0
    Grooguz what is use of this??? is this for customizing the character in dragon nest?

  4. #3
    Walkyrie
    Walkyrie is offline
    Guest
    Join Date
    2012 Sep
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    What's the target of that ?

    Can you explain please ?

Similar Threads

  1. [Guide] Fix Lag and problems in Dragon Nest
    By Grooguz in forum Dragon Nest Guides, Tutorials
    Replies: 2
    Last Post: 2012-10-01, 04:13 PM
  2. [Guide] Dragon Nest NPC gifting
    By stonedgrim in forum Dragon Nest Guides, Tutorials
    Replies: 5
    Last Post: 2012-07-12, 08:28 AM
  3. [Dev] Dragon Nest Chinese bot
    By Grooguz in forum Dragon Nest Bots, Hacks, Cheats
    Replies: 9
    Last Post: 2012-07-10, 10:31 AM
  4. [Release] Dragon Nest ETC
    By yizheng in forum Dragon Nest
    Replies: 15
    Last Post: 2012-06-30, 01:58 AM
  5. [Request] Dragon Nest SEA
    By ashH in forum Dragon Nest
    Replies: 28
    Last Post: 2011-12-02, 01:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •