PDA

View Full Version : Importing 3D objects to openGL



quint- iphone designer
01-05-2010, 11:13 PM
I am trying to develop a 3D game in openGL and i need to create many 3D objects.. I am a begginner in openGL.. I have tried with many 3D softwares like Blender , MODO, Unity 3D and Cheetah.

I am easily able to create my objects with these and exporting as Wavefront .OBJ, and converting it to a header file using a perl script. This header file is added to my openGL project..

The 3D objects are seen, but its not perfect. The script i used is to convert the .OBJ to .h using TRIANGLES.. And the object is seen with triangles. Its not full.. No way when i used TRIANGLE STRIP,FAN..? Problems with the vertices..

Is the problem with my Script or is it the wrong way i have gone..?? Or is there any other best ways to directly import 3D objects to openGL..??

The below two links are the best which you can get for 3D objects to openGL.. i got the scripts from these..

http://iphonedevelopment.blogspot.com/2009/06/using-3d-models-from-blender-in-opengl.html

http://www.heikobehrens.net/2009/08/27/obj2opengl/


please help..