Skip to content

Commit

Permalink
feat: arrow key frame navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mosure committed Mar 18, 2024
1 parent 41368e0 commit 37c3cab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rust bevy light field camera array tooling
- [X] person segmentation post-process (batch across streams)
- [X] async segmentation model inference
- [X] foreground extraction post-process and visualization mode
- [ ] recording session timeline viewer
- [X] recording session viewer
- [ ] camera array calibration (extrinsics, intrinsics, color)
- [ ] camera position visualization
- [ ] 3d reconstruction dataset preparation
Expand Down
14 changes: 13 additions & 1 deletion tools/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ fn main() {
Update,
(
offline_viewer,
press_arrow_key_frame_navigation,
),
);
}
Expand Down Expand Up @@ -517,7 +518,18 @@ fn press_s_stop_recording(
}


// TODO: add pipeline viewer /w left/right arrow keys and UI controls to switch between frames
fn press_arrow_key_frame_navigation(
mut frame_index: ResMut<FrameIndex>,
keys: Res<ButtonInput<KeyCode>>,
) {
if keys.just_pressed(KeyCode::ArrowLeft) {
frame_index.0 = frame_index.0.saturating_sub(1);
}

if keys.just_pressed(KeyCode::ArrowRight) {
frame_index.0 += 1;
}
}



Expand Down

0 comments on commit 37c3cab

Please sign in to comment.