added asset conversion script
This commit is contained in:
parent
e00b91cc46
commit
2e03af4316
37
assets.sh
Normal file
37
assets.sh
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
NITRO_ENGINE=$DEVKITPRO/nitro-engine
|
||||
ASSETS=./assets
|
||||
TOOLS=$NITRO_ENGINE/tools
|
||||
MD5_TO_DSMA=$TOOLS/md5_to_dsma/md5_to_dsma.py
|
||||
GRIT=grit
|
||||
|
||||
rm -rf nitrofiles
|
||||
mkdir -p nitrofiles
|
||||
|
||||
# Chibi model
|
||||
python3 $MD5_TO_DSMA \
|
||||
--model $ASSETS/chibi_kp/chibi_kp.md5mesh \
|
||||
--name chibi_kp \
|
||||
--output nitrofiles \
|
||||
--texture 256 256 \
|
||||
--anim $ASSETS/chibi_kp/chibi_kp_spin.md5anim \
|
||||
--skip-frames 1 \
|
||||
--blender-fix
|
||||
|
||||
$GRIT \
|
||||
$ASSETS/chibi_kp/chibi_kp_albedo.png \
|
||||
-ftb -fh! -W1 \
|
||||
-onitrofiles/chibi_kp_texture
|
||||
|
||||
# Badge Graphic
|
||||
mkdir nitrofiles/bmp
|
||||
|
||||
$GRIT \
|
||||
$ASSETS/badge_01.jpg -ftb -fh! -gb -fB16
|
||||
|
||||
for file in *.bin; do
|
||||
mv -- "$file" "${file%.bin}"
|
||||
done
|
||||
|
||||
mv *.img nitrofiles/bmp
|
Before ![]() (image error) Size: 12 KiB After ![]() (image error) Size: 12 KiB ![]() ![]() |
Before ![]() (image error) Size: 10 KiB After ![]() (image error) Size: 10 KiB ![]() ![]() |
BIN
nitrofiles/chibi_kp.dsm
Normal file
BIN
nitrofiles/chibi_kp.dsm
Normal file
Binary file not shown.
BIN
nitrofiles/chibi_kp_chibi_kp_spin.dsa
Normal file
BIN
nitrofiles/chibi_kp_chibi_kp_spin.dsa
Normal file
Binary file not shown.
BIN
nitrofiles/chibi_kp_texture.img.bin
Normal file
BIN
nitrofiles/chibi_kp_texture.img.bin
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user