Feat/keypoint viewer - #14
Merged
Merged
Conversation
Introduces a Napari-based GUI for reviewing and correcting 3D pose estimates, with supporting state management, keyboard-driven corrections, and CLI integration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add a docs page showing where deeperfly's 38 tracked keypoints sit on the NeuroMechFly model, rendered entirely in-browser with MuJoCo (WebAssembly) and Three.js, deployable as static GitHub Pages. - scripts/build_keypoint_viewer_assets.py: offline generator (flygym + mujoco, run by hand) that exports a flattened, self-contained MJCF + simplified meshes and emits the neutral pose, per-geom flygym colours and the 38 keypoint -> NeuroMechFly body mapping into docs/keypoints/assets/. Heavy deps stay out of the docs CI; the products are committed. - docs/keypoints/: standalone viewer + vendored @mujoco/mujoco (official WASM) and three.js. Sliders for the 7 actuated leg DOFs x6 legs + 3 head DOFs; mesh opacity slider and flygym-colour toggle; node-size and edge-width controls. The stick-and-ball overlay is read from the solved model each change (mj_forward, kinematics only) so it stays locked to the mesh. - docs/explanation/keypoints.md + "Keypoint locations" nav entry in mkdocs.yml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A checkbox (default on) controls the overlay's z-order against the mesh. When on, the stick-and-ball skeleton uses depthTest:false and a higher renderOrder so it always draws over the body. When off, the overlay materials switch to depthTest:true (and are transparent so they share the mesh's render pass), letting the mesh occlude the parts of the skeleton behind it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.