Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tobj - Tiny OBJ Loader
Tiny OBJ loader, inspired by Syoyo's excellent tinyobjloader. Aims to be a simple and lightweight option for loading OBJ files, simply returns two vecs containing loaded models and materials. All models are made of triangles, any quad or polygon faces in an OBJ file will be converted to triangles.
Documentation
Rust doc can be found here.
Installation
Add the crate as a dependency in your Cargo.toml and you're all set!
Example
In this simple example we load the classic Cornell Box model that only defines positions and print out its attributes.
extern crate tobj;
use Path;
use tobj;
let cornell_box = load_obj;
assert!;
let = cornell_box.unwrap;
println!;
println!;
for in models.iter.enumerate
for in materials.iter.enumerate
Rendering Example
For an example of integration with glium to make a simple OBJ viewer, check out tobj viewer. A sample image from the viewer is shown below, the Rust logo model was made by Nylithius on BlenderArtists. The Rungholt model can be found on Morgan McGuire's meshes page and was originally built by kescha.
The Rungholt model is reasonably large (6.7M triangles, 12.3M vertices) and is loaded in 8.765s (+/- .56s) using a peak of ~1GB of memory on a Windows 8 machine with an i7-4790k and 16GB of 1600Mhz DDR3 RAM on tobj 0.0.5 and rustc 1.1.0-nightly 97d4e76c2. Future work will focus on improving performance and memory usage.