PDA

View Full Version : 3Dmax Files



shafa_hn
07-20-2002, 07:36 PM
Hi all,
I want to import a 3Dmax object into my OpenGL enviroment but I dont know how can I extract datas from it. My usuall object reads data from a text file that I've made it. therefore I need to read vetex and surface datas from 3dmax and write them into my own texxt file.
Is there any way to do it?

thanks a lot

coredump
07-22-2002, 02:38 AM
in C - fread(), fwrite()
in C++ - fstreams
read up on the 3DS file format here (http://www.wotsit.org) .

good luck,
b

jubei_GL
07-22-2002, 05:45 AM
3DS is NOT RAW !!! 3Ds is subdivided in chunks which hold info about the stuff they hold ex Viewports, Camera, Lights, Textures, Vertex, etc ..

Its similar to the way you load BMP files.. First you read BMP files headers, and then data..

there are many examples of reading 3ds.. Just search opengl websites such as GameDev, and you can download and look at the code to load up 3Ds

[This message has been edited by jubei_GL (edited 07-22-2002).]

E$h@
07-24-2002, 05:02 AM
I have an article "How to load 3ds MAX models to ya program" ! Included animation (frames). It use a MAX-script to convert a 3ds file. It's for Delphi

ramo
07-25-2002, 07:51 AM
You can export them to .ase or (for non -uv mapping objects) .asc

and if you want i can e-mail my ase2txt.exe and asc2txt.exe programs (i am not at home right now)
e-mail me ramazan_dincer@yahoo.com if you want http://www.opengl.org/discussion_boards/ubb/smile.gif