Archived

This topic is now archived and is closed to further replies.

RavNaz

Storing / using Vertices

Recommended Posts

RavNaz    100
How can I create a large data set of vertices. All I want is a list of vertices in a file which I can read into my engine, and build a list of triangles. I tried using WorldCraft to export a .map file, and then take the vertices from that file. However WorldCraft does not store vertices like this so I need another editor or some way of creating and saving the vertices. Please help

Share this post


Link to post
Share on other sites
Memir    129
How does WorldCraft store vertices then?

Just find a format which contains x,y,z vertices. So far every 3D format I''ve encountered (.3DS, .MAX, .ASE, .X) All contain the x,y,z vertices in a very easy form e.g stored as 4-byte floats or as ascii text e.g ''1.34444,10.33333, -6.23420''

If you have 3DS MAX or something, try exporting to .ASE (Ascii Scene Export) this is a very easy readable format as all the information is stored as ascii.

You may want to write a quick converter program which converts .ASE into .X or a binary file containing VERTEX data & Triangle Lists for each object, not to mention adding materials/mapping coords .

/Memir

Share this post


Link to post
Share on other sites