Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Align camera to obj when offscreen rendering

Open liamzy0930 opened this issue 3 years ago • 0 comments

Checklist

My Question

I want to find the proper position of camera when render 3d model to image. So I tried the following to visualize the view for getting camera info. But when run this, it came error when add_geometry. Does someone can help this, or have a better way to find the camera position when rendering the image, thanks a lot!


box = o3d.io.read_triangle_model("D:\\blender_model\\1x1.obj")

vis = o3d.visualization.Visualizer()
vis.create_window()
vis.add_geometry(box)
vis.run()
vis.destroy_window()

Error msg: TypeError: add_geometry(): incompatible function arguments. The following argument types are supported: 1. (self: open3d.cpu.pybind.visualization.Visualizer, geometry: open3d.cpu.pybind.geometry.Geometry, reset_bounding_box: bool = True) -> bool

Invoked with: Visualizer with name Open3D, <open3d.cpu.pybind.visualization.rendering.TriangleMeshModel object at 0x000001EA228407B0>

liamzy0930 avatar Jul 15 '22 06:07 liamzy0930