obj-rs
Wavefront .obj parser for Rust. It handles both .obj
and .mtl
formats.
See Documentation for the further details.
[]
= "0.6"
use File;
use BufReader;
use ;
let input = new?;
let mobel: Obj = load_obj?;
// Do whatever you want
model.vertices;
model.indices;
Glium support
obj-rs supports glium out of the box.
[]
= "0.26"
= { = "0.6", = ["glium"] }
use File;
use BufReader;
use ;
let input = new;
let obj: Obj = load_obj?;
let vb = obj.vertex_buffer?;
let ib = obj.index_buffer?;
Please see the working sample for the further details. Use can execute it with the command below.
obj-rs is primarily distributed under the terms of both the Apache License (Version 2.0) and the MIT license. See COPYRIGHT for details.