Skip to content
noeticbashoPublic
forked from not-elm/bevy_vrm1

About

Allows you to use VRM and VRMA in Bevy

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

bevy_vrm1

Crates.io Docs

Caution

This crate is in an early stage of development and may undergo breaking changes.

Note

This crate only supports VRM 1.0.

This crate allows you to use VRM1.0 and VRMA.

Usage

Name currently supported
Spring Bone ✅
Look At ✅
Animation(vrma) ✅
Node Constraint ✅
First Person ✅

Spring Bone

SpringBone

This is a feature for expressing the sway of a character's hair and other parts.

examples

Look At

LookAt

LookAt is a component for animating the line of sight into a VRM model. You can use the LookAt component to track a specific target or the mouse cursor.

examples

Animation(vrma)

VRMA

You can play animations using VRMA.

examples

Node Constraint

Node Constraint is a feature for constraining node transformations in real-time, primarily designed for Humanoid bones. This library supports all three constraint types defined in the VRMC_node_constraint-1.0 specification:

Constraint Types

Rotation Constraint

  • Transfers the entire local rotation from a source node to destination nodes
  • Typical use case: Sub-arms and auxiliary bones
  • Supports weight parameter for interpolation (0.0 - 1.0)

Roll Constraint

  • Transfers rotation around a specific axis (X, Y, or Z)
  • Typical use case: Twist bones for arms and legs
  • Supports weight parameter and configurable roll axis

Aim Constraint

  • Rotates a node to face a target node
  • Typical use case: Clothing sleeves and accessories
  • Supports weight parameter and configurable aim axis (PositiveX, NegativeX, PositiveY, NegativeY, PositiveZ, NegativeZ)

All constraint types use spherical linear interpolation (slerp) based on the weight parameter to blend between the rest rotation and the constrained rotation.

First Person

This is a feature for hiding the avatar's head from a camera placed at its viewpoint, so that it does not block the view.

To use it, attach FirstPersonCamera or ThirdPersonCamera to your cameras and trigger RequestEnableFirstPerson on the VRM entity. The meshes are then assigned RenderLayers according to the model's meshAnnotations, and meshes without an annotation are split by head bone weights.

RequestDisableFirstPerson makes all meshes visible from every camera again, and the layers used for the separation can be changed through the FirstPersonLayers resource.

examples

Specification

Features

Feature Description default
serde derive Serialize and Deserialize for components no
log enable log for debugging no

Versions

bevy_vrm1 bevy
0.8.0 ~ 0.19
0.5.0 ~ 0.18
0.4.0 ~ 0.17
0.1.0 ~ 0.16

Credits

Using bevy_game_template to CI.

Sample Models

  • AliciaSolid by © DWANGO Co., Ltd.

About

Allows you to use VRM and VRMA in Bevy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages