PrimalImport command-line importer #29

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

Why

Until the editor's content browser (S9), the renderer test needs meshes and textures. In the fork the WPF editor made them; here a small tool does.

Decided

  • PrimalImport <input> <output> [options]: FBX, textures (with mips and BC compression) and primitive meshes to the engine's packed asset formats.
  • It links the static ContentTools; log::set_console_style(plain).
  • EngineTest's assets are made with it by a build step or a script, never committed.

Read first

  • ContentTools/ContentTools.cpp on master (the exports the editor called).
  • EngineTest/TestRenderer.cpp (what it loads).

Steps

  • 1. Write the tool with geometry and texture commands.
  • 2. Make the renderer test's assets with it.
  • 3. Add a CTest case that imports a test file and loads the result.

Done when

  • The renderer EngineTest runs with assets made by PrimalImport on both OSes; 0 warnings; tidy 0.

Claude can help with

  • The argument parsing and the CTest case.

Learn

  • The packed geometry format the engine reads (content:: loaders).
## Why Until the editor's content browser (S9), the renderer test needs meshes and textures. In the fork the WPF editor made them; here a small tool does. ## Decided - `PrimalImport <input> <output> [options]`: FBX, textures (with mips and BC compression) and primitive meshes to the engine's packed asset formats. - It links the static `ContentTools`; `log::set_console_style(plain)`. - EngineTest's assets are made with it by a build step or a script, never committed. ## Read first - `ContentTools/ContentTools.cpp` on `master` (the exports the editor called). - `EngineTest/TestRenderer.cpp` (what it loads). ## Steps - [ ] 1. Write the tool with geometry and texture commands. - [ ] 2. Make the renderer test's assets with it. - [ ] 3. Add a CTest case that imports a test file and loads the result. ## Done when - [ ] The renderer EngineTest runs with assets made by `PrimalImport` on both OSes; 0 warnings; tidy 0. ## Claude can help with - The argument parsing and the CTest case. ## Learn - The packed geometry format the engine reads (`content::` loaders).
Sign in to join this conversation.
No assignees
No project
No milestone
Blocks
#72 The real asset scene in CI
UnflavoredMeson/Primal_Plus_Plus
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#29
No description provided.