Add time controls to viewer (#1764)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-04-18 15:06:03 -07:00
1 parent ea14152ae6
commit b7fd273638
15 files changed
+280 -15

No files matched your search

@@ -155,7 +155,7 @@ class RenderStateMachine(threading.Thread):
cy=intrinsics_matrix[1, 2],
camera_type=camera_type,
camera_to_worlds=camera_to_world[None, ...],
times=torch.tensor([0.0]),
times=torch.tensor([self.viewer.control_panel.time], dtype=torch.float32),
)
camera = camera.to(self.viewer.get_model().device)