obj-rs
Wavefront obj parser for Rust. It handles both .obj
and .mtl
formats. Documentation
[]
= "0.4"
use File;
use BufReader;
use *;
let input = new;
let dome: Obj = load_obj.unwrap;
// Do whatever you want
dome.vertices;
dome.indices;
This sample image is pretty good illustration of current status of obj-rs. obj-rs is currently able to load position and normal data of
obj
but not texture & material data yet.
Glium support
obj-rs supports glium out of the box. See example for further details.
[]
= "0.8"
= { = "0.4", = ["glium-support"] }
use File;
use BufReader;
use *;
let input = new;
let obj: Obj = load_obj.unwrap;
let vb = obj.vertex_buffer.unwrap;
let ib = obj.index_buffer.unwrap;