Open3d: How to you position camera and look at certain location in Open3D?

Created on 31 Jan 2020  路  1Comment  路  Source: intel-isl/Open3D

How do you position the camera in the scene and point it towards a specific location? Is this possible in Open3D?

question

Most helpful comment

To set the initial viewing position of a scene do the following:

  1. Run the visualizer and position the model using mouse/keyboard.
  2. Once you are happy with this press the 'p' key. This will create a ScreenCamera_xxxx.json file which contains the relevant information.
  3. Then add this to your code:
ctr = vis.get_view_control()
parameters = o3d.io.read_pinhole_camera_parameters("ScreenCamera_xxxx.json")
ctr.convert_from_pinhole_camera_parameters(parameters)

>All comments

To set the initial viewing position of a scene do the following:

  1. Run the visualizer and position the model using mouse/keyboard.
  2. Once you are happy with this press the 'p' key. This will create a ScreenCamera_xxxx.json file which contains the relevant information.
  3. Then add this to your code:
ctr = vis.get_view_control()
parameters = o3d.io.read_pinhole_camera_parameters("ScreenCamera_xxxx.json")
ctr.convert_from_pinhole_camera_parameters(parameters)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

DKandrew picture DKandrew  路  3Comments

lordlycastle picture lordlycastle  路  3Comments

blackccpie picture blackccpie  路  3Comments

taochenshh picture taochenshh  路  3Comments

marcel-bariou picture marcel-bariou  路  3Comments