pywavefront / PyWavefront

Python library for importing Wavefront .obj files
BSD 3-Clause "New" or "Revised" License
312 stars 80 forks source link

Unimplemented OBJ format statement 'Tf' on line 'Tf 1 1 1' and not show 3D picture #110

Closed Dian-Yi closed 4 years ago

Dian-Yi commented 4 years ago

when i run this code: `import pywavefront from pywavefront import visualization

obj = pywavefront.Wavefront('0421-1.obj') visualization.draw(obj)`

i meet this error: Unimplemented OBJ format statement 'Tf' on line 'Tf 1 1 1' i delete "Tf 1 1 1" in .mtl file. it can run. but it cant show the 3D picture in the window

einarf commented 4 years ago

can you share this object/mtl file? The Unimplemented message is really just a warning. It might be that your object is drawing outside the camera. We need to add some kind of bounding box calculations to automatically place it in a reasonable spot.

einarf commented 4 years ago

If you get actual errors you are loading the object with strict=True.

Closing this issue for now. Be free to re-open or create a new issue in the future.