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: Reading OBJ files in an OpenGL program

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    Chicago, IL, USA
    Posts
    7

    Reading OBJ files in an OpenGL program

    Lately I have been drawing models in 3D studio max and Poser and then exporting them to obj files. I want to write a program that reads an obj file and draws the vertices within the file in your scene. (not during runtime)

    I know this can be done because I have seen it on Nate Robin's tuturial programs, but when I tried to use the header he used, my compiler gave me errors when trying to create the program's object file; it said it couldn't resolve certain declared symbols in the header. This is probably because I don't have the library for it.

    If anyone knows of a header file, or something that can read obj files and then draw them in an OpenGL program (not during runtime), I would be very grateful if you emailed me at cppking@home.com

    Or, if someone has the library to glm header by Nate Robins, and he doesn't mind other people using it, also, please e - mail me...thanks!

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2000
    Location
    San Francisco, CA, USA
    Posts
    22

    Re: Reading OBJ files in an OpenGL program

    Why dont you just make your own library in vc++? Shouldnt that solve your problem? Usually #include should work, but sometimes it doesnt. I used GLM before with the same result. I made my own library and it worked.

Posting Permissions

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