Crate vrm_spec

Crate vrm_spec 

Source
Expand description

§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

Modules§

vrm_0_0
Data structures for the VRM 0.0 glTF Extension.
vrmc_materials_mtoon_1_0
Data structures for the VRMC_materials_mtoon 1.0 glTF Extension.
vrmc_spring_bone_1_0
Data structures for the VRMC_springBone 1.0 glTF Extension.
vrmc_vrm_1_0
Data structures for the VRMC_vrm 1.0 glTF Extension.
vrmc_vrm_animation_1_0
Data structures for the VRMC_vrm_animation 1.0 glTF Extension.