From 05eccbf69e58fc9187eec114ac49315ae5b36171 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 1 Apr 2024 23:58:02 -0400 Subject: [PATCH] test for headless mode --- test_headless_mode.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 test_headless_mode.sh diff --git a/test_headless_mode.sh b/test_headless_mode.sh new file mode 100755 index 0000000..43d61ee --- /dev/null +++ b/test_headless_mode.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Update this to a recent scene to download it. +scene_url="https://storage.googleapis.com/vocodes-public/media/d/2/d/s/e/d2dseec97gw06fk7mdavmk4pv87dk0dt/scene_d2dseec97gw06fk7mdavmk4pv87dk0dt.scn.ron" + +filename="downloaded_scene.scn.ron" +directory="studio/assets/" +full_path="${directory}${filename}" + +if [ ! -f "${full_path}" ]; then + echo "Downloading ${scene_url}" + mkdir -p "${directory}" + wget "${scene_url}" -O "${full_path}" +fi + +cargo run -p studio --bin studio-headless \ + -- \ + scene \ + -o frames/ \ + --frames 100 \ + --skybox "00ff00" \ + $filename +