Meshes and materials in built games #52

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

Why

A built game needs its geometry, textures and materials next to the executable. The fork's built games showed no meshes.

Decided

  • The editor packs every asset a scene uses into packed content next to game.bin; content::read_geometry() reads it.
  • Texture inputs of materials load when the material is uploaded.

Read first

  • UnflavoredMeson/Primal#33, UnflavoredMeson/Primal#63.

Steps

  • 1. Write the packed-content writer and reader with tests.
  • 2. Run a built test game with a textured mesh.

Done when

  • The built game shows its meshes and textures on both OSes (you check); tests pass; 0 warnings; tidy 0.

Claude can help with

  • Tracking which assets a scene references.

Learn

  • Why packed content is separate from the editor's asset files.
## Why A built game needs its geometry, textures and materials next to the executable. The fork's built games showed no meshes. ## Decided - The editor packs every asset a scene uses into packed content next to game.bin; `content::read_geometry()` reads it. - Texture inputs of materials load when the material is uploaded. ## Read first - `UnflavoredMeson/Primal#33`, `UnflavoredMeson/Primal#63`. ## Steps - [ ] 1. Write the packed-content writer and reader with tests. - [ ] 2. Run a built test game with a textured mesh. ## Done when - [ ] The built game shows its meshes and textures on both OSes (you check); tests pass; 0 warnings; tidy 0. ## Claude can help with - Tracking which assets a scene references. ## Learn - Why packed content is separate from the editor's asset files.
Sign in to join this conversation.
No assignees
No project
Blocks
#58 Run the game and IDE integration
UnflavoredMeson/Primal_Plus_Plus
Depends on
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#52
No description provided.