isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
10.83k stars 2.24k forks source link

Exporting PNG images from O3DVisualizer in higher dpi #6265

Open SamTov opened 11 months ago

SamTov commented 11 months ago

Checklist

My Question

I would like to export a PNG based on a current scene using the O3DVisualizer. I call the method:

vis.export_current_image

But the resolution is quite bad. Can I set the DPI of the resulting image somewhere?

whu-lyh commented 1 month ago

Any progress?

SamTov commented 1 month ago

Not from Open3D but I resorted to exporting scenes into Mitsuba and then rendering in 4K and getting the nice path tracing and all that goes with it. I have it in the ZnVis package:

https://github.com/zincware/ZnVis

Znvis takes numpy arrays and some mesh definitions and takes care of the mesh visualization, trajectory playing, and rendering for either screenshots or videos.

If you want to do it yourself, check out the rendering module:

https://github.com/zincware/ZnVis/blob/main/znvis/rendering/mitsuba.py

to see how to set the camera to be the correct metric for Mitsuba.

whu-lyh commented 1 month ago

Thanks