You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating more complex scenes I would like to guide the user's view to the most important elements.
The demos suggest using
viz.viewer["/Cameras/default"].set_transform(<Some 4x4 matrix>))
viz.viewer["/Cameras/default/rotated/<object>"].set_property("position", [x, y, z])
How do you use these to move the camera close to an arbitrary position, such as (10., 0., 0.) and look at this arbitrary position?
The set_property seems to be able to reposition the camera (in the three js system where "up" = z_meshcat = +y_three_js and z_three_js = -y_meshcat). The camera seems to keep focusing on the origin. How to do you change the position the camera points at and pans around?
then setCameraTarget does not change anything and the camera keep focusing on the origin. Am I doing something wrong or the problem is still existing?
I have installed the last versione from source.
Activity
ManifoldFR commentedon Feb 24, 2023
Hi @kingjin94 ! I have an open PR about this: #109
kingjin94 commentedon Feb 24, 2023
Great to hear that it is not just a problem of understanding the available API 😅 Is there any way I could help to expedite this PR?
ManifoldFR commentedon Mar 17, 2023
I'm not sure. The maintainer seems very busy and maybe would like some help to look at PRs and merge them.
@rdeits, are you open to onboarding some folks to help maintain meshcat?
GianniLunardi commentedon May 8, 2024
Hi all,
I see that the pull request #109 has been merged. But in my code if do something like:
then
setCameraTargetdoes not change anything and the camera keep focusing on the origin. Am I doing something wrong or the problem is still existing?I have installed the last versione from source.
zimmerman-pliant commentedon Jun 13, 2024
It's
set_cam_target()andset_cam_pos(), see here.Working well for me installed from source.