obj-rs
Wavefront obj parser for Rust. It handles both .obj
and .mtl
formats. Documentation
[]
= "0.4"
use File;
use BufReader;
use *;
let input = try!;
let dome: Obj = try!;
// 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.
[]
= "0.14"
= { = "0.4", = ["glium-support"] }
use File;
use BufReader;
use *;
let input = new;
let obj: Obj = try!;
let vb = try!;
let ib = try!;
Please see the working sample for the further details. Use can execute it with the command below.