Re: [PyOpenGL-Users] Importing 3D Models into Python
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2004-09-24 17:30:54
|
Well, I wrote it, so I'm biased ;) , but I normally use VRML97 and load it with OpenGLContext. Under the covers the various OpenGLContext scenegraph nodes are creating (normally array-based) representations of the loaded geometry in very OpenGL-friendly formats. VRML97 can be generated by quite a considerable number of modelers, including the free (but very-weird if you're an old AutoCAD/3DS/3DSMax/Maya modeler like me) Blender. You could quite conceivably rip the parsing + pre-rendering-processing code out of OpenGLContext if you want to import into your own scenegraph model (it's all BSD-licensed). 3DS files, btw, are often exportable from other modelers, 3DSMax is just about as foreign to 3DS as any other modeler. I believe there may be some Quake-style map importers, but I've long since lost track of those projects. I believe the University of Waterloo computer graphics course has a .obj to PyOpenGL importer kicking about somewhere, but I don't think they've released the source code. Good luck, Mike Y S wrote: ... > If anyone has any suggestions about a good way to import 3D models to > use in Python with PyOpenGL, I would appreciate the feedback. Thank you. ... ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |