Re: [PyOpenGL-Users] stripping OBJ files
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-04-18 16:34:58
|
Astan Chee wrote: > Hi, > I have .obj files created by various applications. These .obj files have > tons of material or textures or other things attached to it. Im trying > to strip out all this and only keep the vertices (wireframe) of the > model. Does anyone know how do I do this in python? I've seen > http://www.pygame.org/wiki/OBJFileLoader?parent=CookBook to load .obj > files but how do I just take the vertices/shape and keep a standard > default face/texture for every .obj that I load. > Thanks for any help. > Cheers > Astan > Rewrite the code referenced to comment out the glBindTexture, glColor and glTexCoord2fv calls, set your material/texture before you call the loader. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |