Jump to content
  • Advertisement
Sign in to follow this  
sasho648

What format to use best?

This topic is 2357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!