glTF 2.0 import with fastgltf #54

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:05 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

glTF is the common open format; many free assets come only as glTF.

Decided

  • fastgltf (MIT), downloaded and pinned, in ContentTools next to ufbx.
  • Same output as the FBX path (meshes, materials, textures), the same tests' shape.

Read first

  • UnflavoredMeson/Primal#39.

Steps

  • 1. Add fastgltf and a test file in UnitTests/Data/.
  • 2. Write the importer with tests.
  • 3. Import from the editor.

Done when

  • A glTF sample imports and renders on both OSes; tests pass; 0 warnings; tidy 0.

Claude can help with

  • glTF's material model compared with the engine's.

Learn

  • How glTF's buffers, views and accessors fit together.
## Why glTF is the common open format; many free assets come only as glTF. ## Decided - fastgltf (MIT), downloaded and pinned, in ContentTools next to ufbx. - Same output as the FBX path (meshes, materials, textures), the same tests' shape. ## Read first - `UnflavoredMeson/Primal#39`. ## Steps - [ ] 1. Add fastgltf and a test file in `UnitTests/Data/`. - [ ] 2. Write the importer with tests. - [ ] 3. Import from the editor. ## Done when - [ ] A glTF sample imports and renders on both OSes; tests pass; 0 warnings; tidy 0. ## Claude can help with - glTF's material model compared with the engine's. ## Learn - How glTF's buffers, views and accessors fit together.
Sign in to join this conversation.
No assignees
No project
Depends on
#28 ContentTools on both OSes
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#54
No description provided.