Content browser and import in the editor #51

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

Why

Importing and finding assets from the editor replaces PrimalImport for everyday work.

Decided

  • Import runs ContentTools in-process, in background jobs; thumbnails through readback (S6-08).
  • The asset packer (what the WPF editor's PackForEngine() did) is C++ in the asset model, with unit tests.
  • Drag from the browser onto the viewport or a details field.

Read first

  • Editor, sections 5.5 and 6 (step 5).

Steps

  • 1. Write the asset model and packer with tests against PrimalImport's output.
  • 2. Write the browser panel with thumbnails.
  • 3. Add import and drag-and-drop.

Done when

  • An FBX and a texture import from the editor and show in the viewport on both OSes; tests pass; 0 warnings; tidy 0.

Claude can help with

  • The packer's tests and thumbnail rendering.

Learn

  • Why import is a background job and what the UI shows meanwhile.
## Why Importing and finding assets from the editor replaces `PrimalImport` for everyday work. ## Decided - Import runs ContentTools in-process, in background jobs; thumbnails through readback (S6-08). - The asset packer (what the WPF editor's `PackForEngine()` did) is C++ in the asset model, with unit tests. - Drag from the browser onto the viewport or a details field. ## Read first - [Editor](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/Editor), sections 5.5 and 6 (step 5). ## Steps - [ ] 1. Write the asset model and packer with tests against `PrimalImport`'s output. - [ ] 2. Write the browser panel with thumbnails. - [ ] 3. Add import and drag-and-drop. ## Done when - [ ] An FBX and a texture import from the editor and show in the viewport on both OSes; tests pass; 0 warnings; tidy 0. ## Claude can help with - The packer's tests and thumbnail rendering. ## Learn - Why import is a background job and what the UI shows meanwhile.
Sign in to join this conversation.
No assignees
No project
Blocks
#52 Meshes and materials in built games
UnflavoredMeson/Primal_Plus_Plus
#53 Geometry, texture and material editors
UnflavoredMeson/Primal_Plus_Plus
Depends on
#28 ContentTools on both OSes
UnflavoredMeson/Primal_Plus_Plus
#46 Outliner, details, gizmos, undo and redo
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#51
No description provided.