View Full Version : How to open .obj/3dMAX file in OpenGL
04-09-2002, 05:29 PM
I need to open an .obj file in OpenGL(this .obj file was generated by a software named formZ, a house model actually). However, I have no idea how to complete this.
If you happen to know how to do this, would you please give me some advice? Thanks very much!
P.S. if you happen to know how to open .fmz or .3ds file in OpenGL, it will be even more helpful to me. Thanks.
04-09-2002, 05:47 PM
please try not to cross post comments, most people read both boards so it just clutters the forum. But try www.gametutorials.com (http://www.gametutorials.com)
you could also write your own look at www.wotsit.org (http://www.wotsit.org)
for file format info
04-10-2002, 07:09 AM
You should be able to find a 3ds file loader on the web. There are quite a few out there. There are also quite a few ASE loaders as well, including one in the nvidia SDK. As for 3d Studio Max, After writing an ASE loader I finally got sick an tired of trying to parse such large text files and since then have written my own Max exporter plugin. Look at the Max SDK, the 3ds and ASE exporters are there in their complete source. Very easy to modify to make it do what you want.
04-10-2002, 09:08 AM
Sorry for the cross posting. Thanks very much for your suggestions!
04-11-2002, 10:18 PM
I found this cool program called Deep Exploration. http://righthemisphere.com/
It allows you to open all sorts of model files, and save them to .cpp files. The cpp files can contain normals, tex coordinates, whatever you specify. And it even writes a display list for you, so all you have to do in your code is:
some_id = Gen3DObjectList();
Its probably not the fastest thing out there, but it gets teh job done very easily.
[This message has been edited by Ultrix (edited 04-12-2002).]
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.