Skip to content

GltfLoader loses animation data #1813

Closed
@stephengold

Description

@stephengold

Forum thread: https://hub.jmonkeyengine.org/t/incomplete-animation/45558

I've tracked this down to the TrackData.update() method. For the "character.gltf" model's "stand" animation, the track for node 4 ("all") has 3 translation keyframes prior to TrackData.update() but only 1 keyframe after the invocation.

timeArrays.get(0) is rotation data, for which there is a single keyframe at t=0.
timeArrays.get(1) is translation data, for which there are 3 keyframes: at t=0, t=2.25, and t=4.25.

Those last 2 keyframes never get merged into the keyFrames list, so translation data is lost.

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions