PDA

View Full Version : how to load files saved as following formats into OpenGL application--Need help!



hebeiren
05-08-2004, 05:22 PM
how to import(load) "objects" into an OpenGL application that are saved in the following file format:
IGES(*.igs),Neutral(*.neu),STEP(*.stp),STL(*.stl), Inventor(*.iv),
WaveFront(*.obj),Render(*.slp),VRML(*.wrl),ACIS File(*.sat),
Assembly(*.asm).
Could you give me some examples or source codes ,or give me some clue about that?I need them in a hurry.Thank you very much! Please help me!

dslprog
05-09-2004, 07:45 AM
In this web you'll find a complete file formats collection.
http://www.wotsit.org

jwatte
05-09-2004, 09:36 AM
This is not an advanced question, nor an OpenGL question. However, a beginner might not know this, so this answer would work well on the beginner's board:

OpenGL is a rendering API. You deliver geometry and state to OpenGL, and OpenGL delivers pixels to the framebuffer (typically the screen).

To write an application that uses OpenGL, you have to write code to generate the geometry (typically, by setting up vertex arrays) and configuring state (typically, by enabling lights and binding/generating textures).

Loading vertex arrays from file formats, or loading texture images from file formats, has nothing to do with OpenGL, and everything to do with the specific file formats, and the specifics of your application.

SirKnight
05-09-2004, 12:38 PM
[snip] Assembly(*.asm).
???
:confused: SirKnight is confused. :confused: