RobLoach / RobLoach/raylib-cpp

ModelAnimation.Load can load only single animation

Open
#370 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
960
Forks
120
Avg merge
10m
Merged PRs (30d)
1

Description

I'm a little confused, I'm using *ModelAnimation->Load like so:
m_pWeaponAnimations->Load("res/Shovel.glb");
and I can see all my animations in the console output:

INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkBW (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkFW (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkL (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkR (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: Idle (50 frames, 0.833333s)

But I can't figure out if ModelAnimation can expose multiple animations the same way the raylib gltf example does?

Contributor guide

No contributing guide indexed for this repository

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

Start with ModelAnimation::Load and compare its exposed animation access with the raylib gltf example mentioned in the issue. Confirm how the animations reported for res/Shovel.glb are represented and define completion as making all loaded animations accessible rather than only one.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.