Crates.io | smpl-rs |
lib.rs | smpl-rs |
version | 0.7.0 |
created_at | 2025-03-17 11:28:33.003501+00 |
updated_at | 2025-08-07 10:13:30.478283+00 |
description | Top level crate for smpl-rs |
homepage | |
repository | https://github.com/Meshcapade/smpl-rs |
max_upload_size | |
id | 1595352 |
size | 411,603 |
Smpl-rs is the suite of SMPL functionality implemented in Rust over gloss. It has features for creating smpl-bodies, modifying and rendering them
The easiest way to get started with smpl-rs is to install the Python bindings.
$ pip install smpl-rs
Some examples of how to use the python bindings can be found in the python examples linked above.
To use smpl-rs you need to download the SMPL-X data.
misc_scripts/standardize_smpl.py
file to the path where you downloaded the models and where you want to save the standardized models. You will need some additional files provided in the data/smplx
folder.python misc_scripts/standardize_smpl.py
to standardize the models. Lazy loading will need to be set to the path where you saved the standardized models.The main dependency is gloss which will be downloaded and compiled automatically when building this package. You will need rust, and the rest is handled by cargo. To install Rust, simply run the following in your terminal:
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Some additional dependencies for Linux:
$ sudo apt-get install libvulkan-dev vulkan-tools xorg-dev libxkbcommon-x11-dev
For MacOs
, it should run out of the box.
$ cd smpl-rs
$ cargo run --bin smpl_minimal
$ cd smpl-rs/bindings/smpl_py
$ pip install gloss-rs smpl-rs
$ ./examples/minimal.py