How to export a blender file and open it in PyOpenGL?

wholesomechoice picture wholesomechoice · Jul 2, 2013 · Viewed 7.5k times · Source

I have a 3-D object I created in blender. I would like to export it from blender and be able to import it into OpenGL. Is there a method or specific file extension recommended for this process?

Answer

beiller picture beiller · Jul 2, 2013

From Here:

Use obj files. Simple text files that describe a 3d model. Then in opengl load the data into vertex arrays, and display using openGL. There is also window management to take care of.

Try python SDL and/or pygame to get you started.

Here is a link to jump start you:

http://www.pygame.org/wiki/OBJFileLoader