Crates.io | vrm-spec |
lib.rs | vrm-spec |
version | 0.0.3 |
source | src |
created_at | 2024-07-12 01:45:23.427965 |
updated_at | 2024-08-28 06:52:50.373014 |
description | VRM data structures |
homepage | |
repository | https://github.com/pixiv/vrm-utils-rs/tree/main/crates/vrm-spec |
max_upload_size | |
id | 1300179 |
size | 297,618 |
Data structures for the VRM Format.
Schema definitions: https://github.com/vrm-c/vrm-specification
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