Initial implementation of the cross-platform model viewer (OpenSceneGraph + Assimp + Dear ImGui).
src/model: one internal mr::Model; custom PmxLoader / PmdLoader (Assimp can't read PMD and drops PMX morphs); AssimpLoader for FBX; Poser does CPU morphs (vertex/group/bone/flip) + linear blend skinning. Bone poses are in model-space axes at the bone pivot so MMD and FBX rigs behave the same.
src/ui + src/app: ImGui overlay rendered from the camera final-draw callback (Model / Bones / Morphs panels, file browser, view options), CJK font auto-detection, CLI for scripted screenshots.
tests: loader + posing tests on generated PMX/PMD/FBX fixtures (tools/).
README: build steps for macOS (Homebrew), Linux (apt/dnf) and Windows (vcpkg).
Verified on Linux (Mesa llvmpipe): ctest passes; rendered miku_v2.pmd, Mixamo FBX and the test FBX with poses and morphs. Not yet built on macOS/Windows. Not implemented: IK, physics, UV/material morphs, edge outlines, VMD playback.
Initial implementation of the cross-platform model viewer (OpenSceneGraph + Assimp + Dear ImGui).
- `src/model`: one internal `mr::Model`; custom `PmxLoader` / `PmdLoader` (Assimp can't read PMD and drops PMX morphs); `AssimpLoader` for FBX; `Poser` does CPU morphs (vertex/group/bone/flip) + linear blend skinning. Bone poses are in model-space axes at the bone pivot so MMD and FBX rigs behave the same.
- `src/render`: `ModelNode` (per-material OSG geometry, GLSL 1.20 shaders for macOS legacy GL), textures incl. sphere/toon maps.
- `src/ui` + `src/app`: ImGui overlay rendered from the camera final-draw callback (Model / Bones / Morphs panels, file browser, view options), CJK font auto-detection, CLI for scripted screenshots.
- `tests`: loader + posing tests on generated PMX/PMD/FBX fixtures (`tools/`).
- README: build steps for macOS (Homebrew), Linux (apt/dnf) and Windows (vcpkg).
Verified on Linux (Mesa llvmpipe): `ctest` passes; rendered miku_v2.pmd, Mixamo FBX and the test FBX with poses and morphs. Not yet built on macOS/Windows. Not implemented: IK, physics, UV/material morphs, edge outlines, VMD playback.
[Written by Devin](https://app.devin.ai/sessions/edc92906d52f4fb09179a164d60f5f27)
Miku opened from the empty viewer with readable Japanese labels. Arm and head slider drags deformed the intended parts without moving the camera, and both pose resets restored the rest view. Blink and mouth morphs combined at full weight and reset to neutral.
View controls, FBX replacement, and recovery
Skeleton highlighting, wireframe, culling, shading, and panel-scroll isolation behaved as expected. Mixamo replaced Miku, selected Lambert shading by default, and responded to model-space rotations. A junk PMX produced a dismissible error without losing the current FBX pose.
Issues found and fixed in d4c34f8: a previous model's filter query left the next model's Bones list blank with no hint, and pasting 左腕 into the Bones filter inserted nothing on Linux. Filters now clear on model load and show a "no match" hint; clipboard uses the system clipboard (xclip/xsel/wl-clipboard on Linux, native on macOS/Windows), and typed non-ASCII characters are accepted. Verified by pasting 左腕 into the Bones filter. Native IME input not tested.
<details open>
<summary>Desktop QA: posing and morphs</summary>
Miku opened from the empty viewer with readable Japanese labels. Arm and head slider drags deformed the intended parts without moving the camera, and both pose resets restored the rest view. Blink and mouth morphs combined at full weight and reset to neutral.


</details>
<details>
<summary>View controls, FBX replacement, and recovery</summary>
Skeleton highlighting, wireframe, culling, shading, and panel-scroll isolation behaved as expected. Mixamo replaced Miku, selected Lambert shading by default, and responded to model-space rotations. A junk PMX produced a dismissible error without losing the current FBX pose.

</details>
**Issues found and fixed in d4c34f8:** a previous model's filter query left the next model's Bones list blank with no hint, and pasting `左腕` into the Bones filter inserted nothing on Linux. Filters now clear on model load and show a "no match" hint; clipboard uses the system clipboard (xclip/xsel/wl-clipboard on Linux, native on macOS/Windows), and typed non-ASCII characters are accepted. Verified by pasting `左腕` into the Bones filter. Native IME input not tested.
[Written by Devin](https://app.devin.ai/sessions/edc92906d52f4fb09179a164d60f5f27)
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Initial implementation of the cross-platform model viewer (OpenSceneGraph + Assimp + Dear ImGui).
src/model: one internalmr::Model; customPmxLoader/PmdLoader(Assimp can't read PMD and drops PMX morphs);AssimpLoaderfor FBX;Poserdoes CPU morphs (vertex/group/bone/flip) + linear blend skinning. Bone poses are in model-space axes at the bone pivot so MMD and FBX rigs behave the same.src/render:ModelNode(per-material OSG geometry, GLSL 1.20 shaders for macOS legacy GL), textures incl. sphere/toon maps.src/ui+src/app: ImGui overlay rendered from the camera final-draw callback (Model / Bones / Morphs panels, file browser, view options), CJK font auto-detection, CLI for scripted screenshots.tests: loader + posing tests on generated PMX/PMD/FBX fixtures (tools/).Verified on Linux (Mesa llvmpipe):
ctestpasses; rendered miku_v2.pmd, Mixamo FBX and the test FBX with poses and morphs. Not yet built on macOS/Windows. Not implemented: IK, physics, UV/material morphs, edge outlines, VMD playback.Written by Devin
Desktop QA: posing and morphs
Miku opened from the empty viewer with readable Japanese labels. Arm and head slider drags deformed the intended parts without moving the camera, and both pose resets restored the rest view. Blink and mouth morphs combined at full weight and reset to neutral.
View controls, FBX replacement, and recovery
Skeleton highlighting, wireframe, culling, shading, and panel-scroll isolation behaved as expected. Mixamo replaced Miku, selected Lambert shading by default, and responded to model-space rotations. A junk PMX produced a dismissible error without losing the current FBX pose.
Issues found and fixed in
d4c34f8: a previous model's filter query left the next model's Bones list blank with no hint, and pasting左腕into the Bones filter inserted nothing on Linux. Filters now clear on model load and show a "no match" hint; clipboard uses the system clipboard (xclip/xsel/wl-clipboard on Linux, native on macOS/Windows), and typed non-ASCII characters are accepted. Verified by pasting左腕into the Bones filter. Native IME input not tested.Written by Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.