diff --git a/android/skeletalanimation/AndroidManifest.xml b/android/skeletalanimation/AndroidManifest.xml
index b367c1be..dfea8a0b 100644
--- a/android/skeletalanimation/AndroidManifest.xml
+++ b/android/skeletalanimation/AndroidManifest.xml
@@ -15,6 +15,7 @@
android:label="Skeletal Animation"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
+ android:screenOrientation="landscape"
android:configChanges="orientation|screenSize|keyboardHidden">
diff --git a/android/skeletalanimation/build.bat b/android/skeletalanimation/build.bat
deleted file mode 100644
index 14d1906e..00000000
--- a/android/skeletalanimation/build.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-cd jni
-call ndk-build
-if %ERRORLEVEL% EQU 0 (
- cd..
-
- mkdir "assets\shaders\base"
- xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
-
-
- mkdir "assets\shaders\skeletalanimation"
- xcopy "..\..\data\shaders\skeletalanimation\*.spv" "assets\shaders\skeletalanimation" /Y
- mkdir "assets\shaders\base"
- xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
-
- mkdir "assets\models"
- xcopy "..\..\data\models\goblin.dae" "assets\models" /Y
- xcopy "..\..\data\models\plane_z.obj" "assets\models" /Y
-
- mkdir "assets\textures"
- xcopy "..\..\data\textures\trail_bc3.ktx" "assets\textures" /Y
- xcopy "..\..\data\textures\goblin_bc3.ktx" "assets\textures" /Y
-
- mkdir "res\drawable"
- xcopy "..\..\android\images\icon.png" "res\drawable" /Y
-
- call ant debug -Dout.final.file=vulkanSkeletalanimation.apk
-) ELSE (
- echo error : ndk-build failed with errors!
- cd..
-)
diff --git a/android/skeletalanimation/build.py b/android/skeletalanimation/build.py
new file mode 100644
index 00000000..e9878fa2
--- /dev/null
+++ b/android/skeletalanimation/build.py
@@ -0,0 +1,53 @@
+import os
+import shutil
+import subprocess
+import sys
+import glob
+
+APK_NAME = "vulkanSkeletalanimation"
+SHADER_DIR = "skeletalanimation"
+ASSETS_MODELS = ["goblin.dae", "plane_z.obj"]
+ASSETS_TEXTURES = ["trail_bc3_unorm.ktx", "goblin_bc3_unorm.ktx", "trail_astc_8x8_unorm.ktx", "goblin_astc_8x8_unorm.ktx", "trail_etc2_unorm.ktx", "goblin_etc2_unorm.ktx"]
+
+if subprocess.call("ndk-build", shell=True) == 0:
+ print("Build successful")
+
+ # Assets
+ if not os.path.exists("./assets"):
+ os.makedirs("./assets")
+
+ # Shaders
+ # Base
+ if not os.path.exists("./assets/shaders/base"):
+ os.makedirs("./assets/shaders/base")
+ for file in glob.glob("../../data/shaders/base/*.spv"):
+ shutil.copy(file, "./assets/shaders/base")
+ # Sample
+ if not os.path.exists("./assets/shaders/%s" % SHADER_DIR):
+ os.makedirs("./assets/shaders/%s" % SHADER_DIR)
+ for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
+ shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
+ # Textures and models
+ if not os.path.exists("./assets/textures"):
+ os.makedirs("./assets/textures")
+ for file in ASSETS_TEXTURES:
+ shutil.copy("../../data/textures/%s" % file, "./assets/textures")
+ if not os.path.exists("./assets/models"):
+ os.makedirs("./assets/models")
+ for file in ASSETS_MODELS:
+ shutil.copy("../../data/models/%s" % file, "./assets/models")
+
+ # Icon
+ if not os.path.exists("./res/drawable"):
+ os.makedirs("./res/drawable")
+ shutil.copy("../../android/images/icon.png", "./res/drawable")
+
+ if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
+ if len(sys.argv) > 1:
+ if sys.argv[1] == "-deploy":
+ if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
+ print("Could not deploy to device!")
+ else:
+ print("Error during build process!")
+else:
+ print("Error building project!")
diff --git a/data/textures/goblin_bc3.ktx b/data/textures/goblin_bc3_unorm.ktx
similarity index 100%
rename from data/textures/goblin_bc3.ktx
rename to data/textures/goblin_bc3_unorm.ktx
diff --git a/data/textures/goblin_etc2_unorm.ktx b/data/textures/goblin_etc2_unorm.ktx
new file mode 100644
index 00000000..638b30f6
Binary files /dev/null and b/data/textures/goblin_etc2_unorm.ktx differ
diff --git a/data/textures/trail_bc3.ktx b/data/textures/trail_bc3_unorm.ktx
similarity index 100%
rename from data/textures/trail_bc3.ktx
rename to data/textures/trail_bc3_unorm.ktx
diff --git a/data/textures/trail_etc2_unorm.ktx b/data/textures/trail_etc2_unorm.ktx
new file mode 100644
index 00000000..18c9f6c6
Binary files /dev/null and b/data/textures/trail_etc2_unorm.ktx differ