Skip to content

Commit

Permalink
easyvolcap: bug fixes for viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
dendenxu committed Apr 5, 2024
1 parent 121dffd commit c54788f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easyvolcap/runners/volumetric_video_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ def draw_camera_gui(self, batch: dotdict = dotdict(), output: dotdict = dotdict(
frame_time = 1 / self.playing_fps
if self.acc_time >= frame_time:
self.acc_time = 0
self.camera.t = (self.camera.t + 1 / self.dataset.frame_range) % 1
self.camera.t = int(self.camera.t / (1 / self.dataset.frame_range)) * self.dataset.frame_range
frame_time = 1 / self.dataset.frame_range
self.camera.t = (self.camera.t + frame_time) % 1
self.camera.t = int(self.camera.t / frame_time) * frame_time # only smaller
else:
self.camera.t = (self.camera.t + self.playing_speed) % 1

Expand Down

0 comments on commit c54788f

Please sign in to comment.