Dockable editor UI: timeline, pop-out viewport, render dialog #5

Merged
dev merged 3 commits from devin/1795874130-editor-ui into main 2026-11-28 09:11:12 -05:00
Owner

Turns the single-window overlay into a dockable editor (ImGui docking branch, v1.91.5-docking). Stacked on #4 (devin/1795846281-vmd-ik).

  • Layout: DockSpaceOverViewport with a passthrough central node; default split Scene/Bones (left), Morphs (right), Timeline (bottom), built by App::buildLayout. Layout is saved to ~/.model_renderer_layout.ini; View > Reset panel layout rebuilds it.
  • 3D view: no render-to-texture. App::updateProjection squeezes the master camera's projection into the central node's rect, so the scene renders behind the panels with no extra pass.
  • Timeline (src/app/Timeline.cpp): transport, ruler scrubbing, one keyframe row per camera/audio/bone/morph track (MotionPlayer::boneBindings/morphBindings), Ctrl+wheel zoom, Shift+wheel/middle-drag pan, playhead follow, click a bone row to select it.
  • Pop-out viewport (App::updatePopOut): slave camera in a second OS window sharing the GL context; the editor window then draws UI only (cull mask 0, not inherited by the slave). Closing the window docks it back. --pop-out CLI.
  • Render (src/app/Render.cpp): File > Render... writes a PNG sequence from an offscreen FBO slave camera (MSAA x4 where supported), presets up to 4K and vertical, transparent background, optional ffmpeg MP4 with the song. --render DIR --range A,B --render-size WxH batch mode.
  • ImGui events from the pop-out window are ignored by the ImGui handler.

Tested: Linux and macOS 12 (Intel) builds, mr_tests pass on both; screenshots of the docked layout, pop-out window and a 10-frame --render on Linux. Note: on llvmpipe the MSAA FBO falls back to non-multisampled output.

Turns the single-window overlay into a dockable editor (ImGui docking branch, `v1.91.5-docking`). Stacked on #4 (`devin/1795846281-vmd-ik`). - **Layout**: `DockSpaceOverViewport` with a passthrough central node; default split Scene/Bones (left), Morphs (right), Timeline (bottom), built by `App::buildLayout`. Layout is saved to `~/.model_renderer_layout.ini`; View > Reset panel layout rebuilds it. - **3D view**: no render-to-texture. `App::updateProjection` squeezes the master camera's projection into the central node's rect, so the scene renders behind the panels with no extra pass. - **Timeline** (`src/app/Timeline.cpp`): transport, ruler scrubbing, one keyframe row per camera/audio/bone/morph track (`MotionPlayer::boneBindings/morphBindings`), Ctrl+wheel zoom, Shift+wheel/middle-drag pan, playhead follow, click a bone row to select it. - **Pop-out viewport** (`App::updatePopOut`): slave camera in a second OS window sharing the GL context; the editor window then draws UI only (cull mask 0, not inherited by the slave). Closing the window docks it back. `--pop-out` CLI. - **Render** (`src/app/Render.cpp`): File > Render... writes a PNG sequence from an offscreen FBO slave camera (MSAA x4 where supported), presets up to 4K and vertical, transparent background, optional `ffmpeg` MP4 with the song. `--render DIR --range A,B --render-size WxH` batch mode. - ImGui events from the pop-out window are ignored by the ImGui handler. Tested: Linux and macOS 12 (Intel) builds, `mr_tests` pass on both; screenshots of the docked layout, pop-out window and a 10-frame `--render` on Linux. Note: on llvmpipe the MSAA FBO falls back to non-multisampled output.
dev changed target branch from devin/1795846281-vmd-ik to main 2026-11-28 09:11:10 -05:00
dev added 3 commits 2026-11-28 09:11:10 -05:00
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
dev merged commit 22e3977fa0 into main 2026-11-28 09:11:12 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dev/3d-model-renderer#5