russimp russimp Crates.io

Rust bindings for Assimp (https://github.com/assimp/assimp)

Overview

Russimp is a library for talking to the assimp library which enables you to read 3d models in different formats to a common structure.

Assimp just released v5.1.0 which is used for the linux build.

Helping

Vcpkg only has assimp 5.0.1 only, it might take some time for them to update it. Brew does not have a bew version for 5.1.0 yet, will enable pipeline as soon as it gets the new version.

If you need bindings for version 5.0.1 just pickup a release before 1.0.0.

If you want to help maintaining this package on windows or macos, please let me know. For windows support you can check the last PR related to it, https://github.com/jkvargas/russimp/pull/16.

You are very welcome to help with development, adding a feature, fixing a problem or just refactoring. Try to do it with tests =)

Make sure to run cargo fmt before creating a pull request.

How to use it?

Just call Scene::from_file with the filename and the flags you want. From the scene you will have access to the underlying structs.

rust let scene = Scene::from_file("myfile.blend", vec![PostProcess::CalcTangentSpace, PostProcess::Triangulate, PostProcess::JoinIdenticalVertices, PostProcess::SortByPType]).unwrap();

Changelog

1.0.0