fixed some issues, included a quick hack

The first three-ish frames of rendering are gray. We fixed this by not recording the first 3 frames and then adding 3 frames to the render.
This commit is contained in:
Brooks Palin
2024-03-14 21:02:57 -06:00
parent b9abf1d82f
commit 17b0e14dc8
4 changed files with 51 additions and 28 deletions
+2 -1
View File
@@ -328,7 +328,8 @@ fn initialiaze_headless(
},
CameraControllerBundle::new(focus, camera_xform.translation),
ScreenCapture::from_out(&headless_settings.output_dir)
.with_max_frames(headless_settings.max_frames),
//Part of quick hack, see screenshot.rs#261
.with_max_frames(headless_settings.max_frames + 3),
));
}