I am trying to develop a 3D game in openGL and I need to create many 3D objects. I am a beggar in openGL. I tried using many 3D programs like Blender, MODO, Unity 3D and Cheetah.
I can easily create my objects with them and export as Wavefront.OBJ and convert it to a header file using a perl script. This header file is being added to my openGL project.
3D objects are visible but not perfect. The script I use is the conversion of .OBJ to .h using TRIANGLES .. And the object is visible with triangles. This is not complete. By no means when did I use TRIANGLE STRIP, FAN ..? Problems with vertices ..
Is there a problem with my script or is it the wrong way that I left .. ?? Or are there other better ways to directly import 3D objects into openGL .. ??
The following link is the best you can get for 3D objects for openGL .. I got scripts from these.
http://www.heikobehrens.net/2009/08/27/obj2opengl/
please, help..
source share