rerun icon indicating copy to clipboard operation
rerun copied to clipboard

egui-based view screenshotting

Open emilk opened this issue 1 year ago • 2 comments

Related

  • Closes https://github.com/rerun-io/rerun/issues/3941

What

Save a screenshot of a view via egui.

The previous attempt (behind a feature-flag) only captures things that were rendered with re_renderer, i.e. dit not include any egui elements, like labels.

The new approach should work with any view, anywhere.

TODO

  • [ ] Merge https://github.com/emilk/egui/pull/5416
  • [ ] Implement on web
  • [ ] Implement save-to-disk
  • [ ] Implement for all views (requires a design for the UI of this!)
  • [ ] Remove feature-flag

emilk avatar Nov 29 '24 15:11 emilk

Web viewer built successfully. If applicable, you should also test it:

  • [x] I have tested the web viewer
Result Commit Link
b935f0b https://rerun.io/viewer/pr/8258

Note: This comment is updated whenever you push a commit.

github-actions[bot] avatar Nov 29 '24 15:11 github-actions[bot]

Screenshot 2024-11-29 at 16 48 49

I'd the screenshot option on this menu

nikolausWest avatar Nov 29 '24 15:11 nikolausWest

right click on the tab unfortunately selects the view, meaning that one can't have selection highlights on the screenshot

Wumpf avatar Dec 03 '24 11:12 Wumpf

the only thing that I didn't quite get is what removes the SpaceViewRectPublisher again from the cache for a view that's hidden. But it works 🤷

egui does is for us :)

emilk avatar Dec 03 '24 12:12 emilk