vrm-spec

Crates.iovrm-spec
lib.rsvrm-spec
version0.0.3
sourcesrc
created_at2024-07-12 01:45:23.427965
updated_at2024-08-28 06:52:50.373014
descriptionVRM data structures
homepage
repositoryhttps://github.com/pixiv/vrm-utils-rs/tree/main/crates/vrm-spec
max_upload_size
id1300179
size297,618
vrm-utils-rs-maintainers (github:pixiv:vrm-utils-rs-maintainers)

documentation

https://docs.rs/vrm-spec

README

vrm-spec

Data structures for the VRM Format.

Schema definitions: https://github.com/vrm-c/vrm-specification

Example

use vrm_spec::vrmc_vrm_1_0::{VRMCVrmSchema, VRMC_VRM};

let file = include_bytes!("../../../fixtures/VRM1_Constraint_Twist_Sample.vrm");
let (doc, _, _) = gltf::import_slice(file).expect("ok");
let value = doc.extension_value(VRMC_VRM).expect("exist");
let vrmc_vrm: VRMCVrmSchema = serde_json::from_value(value.to_owned()).expect("ok");
// do something with vrm
Commit count: 0

cargo fmt