jMonkeyEngine / jMonkeyEngine/jmonkeyengine

"No skinned Spatial for joint" in GltfLoader.setupControls()

Open
#2,247 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

defect
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

Forum discussion: https://hub.jmonkeyengine.org/t/gltf-glb-animated-model/47617

To reproduce:

  1. Download the model using the "Download 3D Model" and "GLB Converted format Texture size: 1k" buttons.
  2. Load the model using:
assetManager.registerLoader(GlbLoader.class, "glb");
ModelKey modelKey = new ModelKey(assetPath);
assetManager.loadModel(modelKey);

With JME 3.7.0-alpha3.1, the model loads with a warning but no exceptions:

Apr 23, 2024 3:22:32 AM com.jme3.scene.plugins.gltf.GltfLoader setupControls
WARNING: No skinned Spatial for joint "Root_00" -- will skin the models root node!

The loaded model contains a SkinningControl but no AnimComposer. There ought to be an AnimComposer because the GLB file contains an animation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the linked Hover Bike GLB using GlbLoader and the loading snippet. Start in GltfLoader.setupControls() and inspect how the file's animation is handled when a SkinningControl is created. Done means the loaded model includes an AnimComposer for the GLB animation and no longer emits the reported warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.