Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api for saving screenshots and animations #2305

Open
chisarie opened this issue Jun 2, 2023 · 6 comments
Open

Api for saving screenshots and animations #2305

chisarie opened this issue Jun 2, 2023 · 6 comments
Labels
enhancement New feature or request user-request This is a pressing issue for one of our users

Comments

@chisarie
Copy link

chisarie commented Jun 2, 2023

Hello!

It would be great if there was a way to log a pointcloud or mesh to rerun, specify a camera pose, and programmatically save a "screenshot" of that object from that specified pose. It would be very useful for evaluating and comparing different things, and for publishing purposes.

An extension of this would be to provide a list of camera poses, and use it to generate multiple screenshots that can be then stitched together to make a video or gif.

From looking at the docs, it seems this functionality is not there yet, is it?

Thank you in advance for the help!

@chisarie chisarie added enhancement New feature or request 👀 needs triage This issue needs to be triaged by the Rerun team labels Jun 2, 2023
@nikolausWest
Copy link
Member

Hey @chisarie! Thanks for the question / feature request. Screenshots from the command line actually just landed (#2293). The ability to construct the Rerun Viewer from a declarative spec is not there yet, but under way (see PR with RFC here: #2302). Once that lands with the ability to also set a 3D view's eye I believe most of what you want should be there

@chisarie
Copy link
Author

chisarie commented Jun 2, 2023

Sounds great! One small thing to note which is different than #2293 is that I'd like to have a "screenshot" of a viewport alone, without all the gui around it. Looking forward to it :)

@chisarie
Copy link
Author

chisarie commented Jun 2, 2023

Maybe screenshot is not the right word for this, what I mean is more like an offscreen renderer, similar to Open3d's and Pyrender's ones:
http://www.open3d.org/docs/latest/python_api/open3d.visualization.rendering.OffscreenRenderer.html,
https://pyrender.readthedocs.io/en/latest/examples/offscreen.html

@nikolausWest
Copy link
Member

Sure thing. We have the pieces in place to screenshot single views without UI surroundings as well. I'm not familiar enough with the offscreen render in Open3D to know how that works exactly but if you also need the rendering to run headless that would be a bit further off with Rerun.

Would you mind sharing a bit more background around how and why you would intend to use a feature like that?

@chisarie
Copy link
Author

chisarie commented Jun 7, 2023

Mainly to generate comparison pictures to use on publications paper and website. For example to compare the outputs of different methods. If I have to take all screenshots manually it would be very time consuming and also not precise (camera position should always be the same to compare properly). To use rerun for this, another important feature would also be to be able to set a white background, see #754

@nikolausWest
Copy link
Member

Thanks @chisarie, that makes a lot of sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user-request This is a pressing issue for one of our users
Projects
None yet
Development

No branches or pull requests

4 participants