3 releases

0.0.3 Aug 28, 2024
0.0.2 Jul 12, 2024
0.0.1 Jul 12, 2024

#28 in Data formats

Download history 35/week @ 2024-07-29 11/week @ 2024-08-12 186/week @ 2024-08-26 12/week @ 2024-09-09 27/week @ 2024-09-16 33/week @ 2024-09-23 37/week @ 2024-09-30 11/week @ 2024-10-07 64/week @ 2024-10-21

64 downloads per month

Apache-2.0

56KB
1K SLoC

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

lib.rs:

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

Dependencies

~0.7–1.7MB
~36K SLoC