Re: [PyOpenGL-Users] stripping OBJ files
Brought to you by:
mcfletch
From: Astan C. <st...@al...> - 2008-04-21 00:04:04
|
Yeah, I just realized this. I also disabled the loading of .mtl files and commented any part that broke because the file didnt exist. Thanks! Mike C. Fletcher wrote: > 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 > -- "Formulations of number theory: Complete, Consistent, Non-trivial. Choose two." Animal Logic http://www.animallogic.com Please think of the environment before printing this email. This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free. |