Static
__importVRMImports a VRM model from a glTF structure and sets up all VRM-specific components. This method processes materials, spring bones, expressions, constraints, and humanoid data.
The parsed glTF model containing VRM extensions
Array of render passes to add the imported model to
Promise that resolves when the import process is complete
Static
_createStatic
_createCreates texture objects from the glTF model data. Also generates dummy white and black textures for default material properties.
The glTF model containing texture data
Promise resolving to an array of created Texture objects
Static
_getProcesses and validates import options for VRM files. Converts .vrm file extensions to .glb and sets up default material helper arguments.
Optional
options: GltfLoadOptionOptional import configuration
Processed and validated import options
Static
_readStatic
_readReads and processes VRM facial expressions (blend shapes) from the model. Creates VrmExpression objects and attaches them to the root entity's VrmComponent.
The VRM model containing expression data
The root entity to attach the VRM component to
Static
_readStatic
_readVRMHumanoidReads and processes VRM humanoid bone mapping information. Creates a mapping between bone names and node indices for humanoid structure.
The VRM model containing humanoid data
Optional
rootEntity: ISceneGraphEntityOptional root entity to tag with humanoid information
Static
importImports only the JSON data structure of a VRM file without processing the full model. This is useful for extracting metadata and structure information without full rendering setup.
The URI or path to the VRM file
Optional
options: GltfLoadOptionOptional import configuration
Promise resolving to the VRM JSON structure
A utility class for importing and processing VRM (Virtual Reality Model) files. This class handles the conversion of VRM data into Rhodonite's internal representation, including materials, spring bones, expressions, constraints, and humanoid structures.