mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add level-up ding animation with golden rings, sound, and cheer emote
This commit is contained in:
parent
897867bf7b
commit
80e879429c
1 changed files with 30 additions and 0 deletions
30
debug_texture.sh
Executable file
30
debug_texture.sh
Executable file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue