bevyengine / bevyengine/bevy

Dynamic attribute support for morph targets

Open
#8,935 0 comments 0 reactions 0 assignees View on GitHub
A-Animation A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

The current implementation of morph targets (#8158) works exactly with the following vertex attribute, none more, none less:

- positions
- normals
- tangents

The [glTF 2.0 spec] moprh targets support more than just those attributes. In fact, it's possible to encounter glTFs **without** some of them. In this case, bevy will happily upload a buffer full of 0s to the GPU.

Bevy should handle morph attributes more intelligently, most notably, it should:

- Be able to handle only a subset of morphed attributes
- Be able to handle more morphable attributes, such as texture coordinates or color.

[glTF 2.0 spec]: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#morph-targets

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.