From 80e879429c31f9386bfa7db5c61d1342a1d167c4 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 17 Feb 2026 17:35:57 -0800 Subject: [PATCH] Add level-up ding animation with golden rings, sound, and cheer emote --- debug_texture.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 debug_texture.sh diff --git a/debug_texture.sh b/debug_texture.sh new file mode 100755 index 00000000..feaa42d5 --- /dev/null +++ b/debug_texture.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Convert raw RGBA texture dumps to PNG for visual inspection +# Usage: ./debug_texture.sh [width] [height] +# Defaults to 1024x1024 if not specified + +W=${1:-1024} +H=${2:-1024} + +echo "Converting debug textures (${W}x${H})..." + +for raw in /tmp/wowee_composite_debug.raw /tmp/wowee_equip_composite_debug.raw; do + if [ -f "$raw" ]; then + png="${raw%.raw}.png" + # Try ImageMagick first, fall back to ffmpeg + if command -v convert &>/dev/null; then + convert -size ${W}x${H} -depth 8 rgba:"$raw" "$png" 2>/dev/null && \ + echo "Created $png (${W}x${H})" || \ + echo "Failed to convert $raw" + elif command -v ffmpeg &>/dev/null; then + ffmpeg -y -f rawvideo -pix_fmt rgba -s ${W}x${H} -i "$raw" "$png" 2>/dev/null && \ + echo "Created $png (${W}x${H})" || \ + echo "Failed to convert $raw" + else + echo "Need 'convert' (ImageMagick) or 'ffmpeg' to convert $raw" + echo " Install: sudo apt install imagemagick" + fi + else + echo "Not found: $raw" + fi +done