Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Importing TrueSpace stuff into OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Santa Maria, CA, US
    Posts
    8

    Importing TrueSpace stuff into OpenGL

    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?

  2. #2
    Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    353

    Re: Importing TrueSpace stuff into OpenGL

    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.
    Reality is for idiots only the best over come it!

Posting Permissions

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