PDA

View Full Version : Importing TrueSpace stuff into OpenGL



Malevolent
05-06-2001, 12:18 PM
I have a question...

How can I export something from a 3d graphics program like truespace and use it in an OpenGL program?

Every time I export in an ascii file format (so that I can look at it easily) it has a really weird way of doing the vertices.

-1.000000 -1.000000 -1.000000
-1.000000 -1.000000 1.000000
1.000000 -1.000000 -1.000000
1.000000 -1.000000 1.000000
-1.000000 1.000000 -1.000000
1.000000 1.000000 -1.000000
1.000000 1.000000 1.000000
-1.000000 1.000000 1.000000

That is a cube. How can I convert those vertices into vertices for triangles? Or how can I just use that?

Tim Stirling
05-06-2001, 11:06 PM
That format looks like a fairly simple format. 8 Vertices for the 8 vertices of a cube. Somewhere there should be a a list of inices to those vertices making triangles or maybe quads. You could look into other formats, Truespace can export .obj files these are quite good.