A feature I would find useful is to interactively move and zoom the camera in the Viewer and then use this position later in the code. As an example, if you have multiple 3D objects that you want to render with the same settings, you might want to interactively rotate the object to a desired position and then render all of the objects with this position. This also eliminates iterative test rendering and changing the pose of the objects.
Currently, I managed to do this utilizing the Trackball instance:
Here, pressing K on the keyboard while in the Viewer prints the Viewer's camera pose matrix to console. This is obviously a hacky solution - this functionality could be exposed in cleaner way.
Even if this feature is not to be implemented, I wanted to share this solution as it might be of help to others searching for this functionality.
A feature I would find useful is to interactively move and zoom the camera in the
Viewer
and then use this position later in the code. As an example, if you have multiple 3D objects that you want to render with the same settings, you might want to interactively rotate the object to a desired position and then render all of the objects with this position. This also eliminates iterative test rendering and changing the pose of the objects.Currently, I managed to do this utilizing the Trackball instance:
Here, pressing
K
on the keyboard while in the Viewer prints the Viewer's camera pose matrix to console. This is obviously a hacky solution - this functionality could be exposed in cleaner way.Even if this feature is not to be implemented, I wanted to share this solution as it might be of help to others searching for this functionality.