Jump to content
  • Advertisement


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

Norman Kluksdahl

Graphics File readers / converters

This topic is 6283 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been lurking and digging for the past couple of days, but I haven''t found what I''m looking for - namely, functions, algorithms, etc. to read a 3D file such that my code can use the vertices, normals, and other information in my OpenGL program. I''m also curious about what the most common file format is for model data. The tool I''m using can output in a variety of formats, and since I don''t want to reinvent the wheel, so to speak, I''d rather find a utility to import the file without adding to my already huge workload. Norman Kluksdahl nkluksda@ghg.net

Share this post

Link to post
Share on other sites
The OBJ format seems to be pretty commonplace, although I haven''t used (much less own ) many 3D modeling programs, so I couldn''t say how many can export in that format.

I wrote a converter to change the OBJ format to my own custom format. The OBJ format is very simple (just look at a OBJ file, and you''ll see what I mean). Storing the format as a custom binary file, rather than a text file also helps the file size in alot of cases. Then I simply load my custom file into my program.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!