three-d-gltf-import

Crates.iothree-d-gltf-import
lib.rsthree-d-gltf-import
version0.0.3
sourcesrc
created_at2021-04-04 17:34:45.004583
updated_at2021-04-04 18:21:31.671463
descriptionglTF 2.0 loader for three-d
homepagehttps://github.com/kije/three-d-gltf-import
repositoryhttps://github.com/kije/three-d-gltf-import
max_upload_size
id378886
size43,769
Kim Jeker (kije)

documentation

https://docs.rs/three-d-gltf-import

README

three-d-gltf-import

This crate implements a GLTF loader for the three-d crate. It supports both desktop and wasm target.

It supports loading .gltf as well as .glb (binary) files, and can handle embedded (e.g. via base64) or external references to buffers and images (relative paths to the GLTF-File, file:// on desktop, http[s]:// for wasm).

Internally ist ueses the gltf crate to parse the GLTF files.

THIS CRATE IS STILL UNDER DEVELOPMENT

Usage

TODO

Testing

For testing purposes, some sample models from https://github.com/KhronosGroup/glTF-Sample-Models are used (stored in /sample_models.

The repository with sample models is added via a git submodule and can be initialized via:

git submodule update --init --recursive

WASM/Browser

In order to run WASM tests, the steps outlined here need to be performed. After that, the tests can be run with this command:

WASM_BINDGEN_TEST_TIMEOUT=600 cargo test --target wasm32-unknown-unknown

Note: Test-Timout needs to be set pretty high since some test that load bigger/complex models can take a long time.

Commit count: 9

cargo fmt