PDA

View Full Version : Who can tell me how to insert AutoCAD or CATIA 3D object or file into OpenGL program?



Angus
07-28-2003, 11:47 AM
Can anybody tell me how to insert a AutoCAD or CATIA 3D object or file into OpenGl program. i'm anxious!!!
angus_yu1979@hotmail.com

starman
07-28-2003, 12:07 PM
You need to parse their files and feed OpenGL something it understands (vertices, textures, colors, normals, lights, etc.). I'd check google.groups.com to see if anyone has already written code to do this, otherwise you'll have to learn the formats and write your own reader.

Angus
07-28-2003, 12:51 PM
thank u reply,
i'm a new guy in OpenGL,
i understand u meaning,
but can u talk in details,
i know what i should do but do not know how to do,
thank u,
Angus

nexusone
07-28-2003, 01:38 PM
I am sure most know how to, but this forum is not here to write the programs for you but give you guidence.

Do a search on this forum, it has been asked a 100 times.

Basicly you have to translate the AutoCAD files into a format that openGL understands.

I don't have links handy but I know people have written routines to load AutoCAD files.

also can do a search on autocad, openGL, DXF on google.


Originally posted by Angus:
thank u reply,
i'm a new guy in OpenGL,
i understand u meaning,
but can u talk in details,
i know what i should do but do not know how to do,
thank u,
Angus