Jump to content

  • Log In with Google      Sign In   
  • Create Account


What format to use best?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 sasho648   Members   -  Reputation: 137

Like
0Likes
Like

Posted 01 June 2012 - 11:20 AM

I want to extract a group of maps each with a group of rooms with textures but I don't know which format to use. I want the file format can be opened and edited with other 3d program. Here is my example structure for which I'm searching the best fit format:

struct Format {
unsigned long NumMaps;
Map* Dat;
};

struct Map {
unsigned long NumTexData; //Number Texture Headers 
unsigned long NumRooms; //Number Rooms
Texture* TexData;
TextureHead* TexHead;
RoomsMesh* RomData;
};

TexData {
unsigned long CurText; //index of the TexData array, storing the Texture Data 
};

RoomsMesh {

unsigned long NumVertices;
unsigned long NumIndixes;
unsigned long NumGroups;
Vertices* MshData; 
Indixes* IndxData; //each index is short number
Groups* GroupData;

}; 

Vertices {
//Vertex x,y,x positions
float X; 
float Y;
float Z;
unsigned long COLOR; //diffuse color
unsigned long COLOR1; //specular color
float U, V, U1, V1; //texture cordinates (2)
};

Groups {

unsigned long NumFaces;
unsigned long NumVertices;
unsigned long StartIndex;
unsigned long TextureIndx;
unsigned long BaseVertexIndex;
unsigned long LastVertx;
unsigned long PrimitiveType;

};


Any advices?

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS