PistonDevelopers / wavefront_obj

A parser written in rust for the wavefront .obj file format.
MIT License
27 stars 18 forks source link

OBJ files without mtllib not supported #34

Closed bvssvni closed 9 years ago

bvssvni commented 9 years ago

Trying to run the "viewer" example in piston-shaders https://github.com/PistonDevelopers/shaders/blob/master/examples/viewer.rs

It tries to parse the "teapot" example.

Getting the error:

thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: ParseError { line_number: 3, message: "Expected `mtllib` but got g." }', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/result.rs:743
Process didn't exit successfully: `target/examples/viewer` (status=101)

It seems to expect a material library file.