summaryrefslogtreecommitdiffstats
path: root/generate_animations.sh
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-10-02 17:24:18 -0700
committeryum <yum.food.vr@gmail.com>2022-10-02 17:24:18 -0700
commit21c17fcb5698ed238e5397a0c2b0530034804d34 (patch)
treede55ecc66fc09f8fb2c0ef8c498d1197dc71590a /generate_animations.sh
parentac1e02241be1d7608e71163dd404f3bad4157a9d (diff)
Add 4th layer of indexing
* Double board size from 6x16 to 8x22 * Reduce parameter bits used (thanks to extra layer of indexing) * Rename template.anim to template.anim.txt to prevent Unity from constantly rewriting it * osc_ctrl.encodeMessage now pads the message so that all empty space is overwritten * Delete osc_ctrl.sendMessageCellContinuous. Now that we use a single 'Enable' bit, this idea is sidelined. * We can probably achieve the same effect by making TaSTT.shader a little more clever. For example, if we pass it the current cell number, it could render a time-based 'fade-in' effect which simulates smooth streaming.
Diffstat (limited to 'generate_animations.sh')
-rw-r--r--generate_animations.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/generate_animations.sh b/generate_animations.sh
index ce367f6..4e5ea84 100644
--- a/generate_animations.sh
+++ b/generate_animations.sh
@@ -11,16 +11,16 @@ set -o pipefail
[ -d generated/animations ] && rm -rf generated || true
mkdir -p generated/animations
-for row in `seq 0 5`; do
+for row in `seq 0 7`; do
ROW_PADDED=$(printf '%02d' $row)
- for col in `seq 0 16`; do
+ for col in `seq 0 21`; do
COL_PADDED=$(printf '%02d' $col)
LETTER_SHADER_PARAM=_Letter_Row${ROW_PADDED}_Col${COL_PADDED}
for letter in `seq 0 79`; do
LETTER_PADDED=$(printf '%02d' $letter)
ANIM_NAME=${LETTER_SHADER_PARAM}_Letter${LETTER_PADDED}
FILENAME=generated/animations/${ANIM_NAME}.anim
- cat template.anim | \
+ cat template.anim.txt | \
sed \
-e "s/%LETTER_VALUE%/$letter/g" \
-e "s/%LETTER_SHADER_PARAM%/$LETTER_SHADER_PARAM/g" \