From 731ab15d5768340bcfb028878fb3d92ae49ec1ab Mon Sep 17 00:00:00 2001 From: hristo Date: Thu, 28 Jan 2021 12:29:06 +0200 Subject: Gltf animation support (#1551) * Added example for gltf animation and split some functions for loading model animations into IQM and GLTF similar to how models are being loaded. * Removed wrongly duplicated function * Bone loading for gltf model (not working at this point) * Loading info about vertex to joint connection but animation is still not working * Skeleton and pose is correctly loaded. Need to communicate about interpolation in GLTF * The model almost looks like a real person on animation. * Fixed model loading with bones. Also updated license info on the model. * Cleaned up some code and updated examples. * Fix identation issues * Fix identation issues * Fix identation issues --- examples/models/resources/gltf/Avocado.glb | Bin 0 -> 8328156 bytes examples/models/resources/gltf/LICENSE | 11 +++++++++++ examples/models/resources/gltf/rigged_figure.glb | Bin 0 -> 50116 bytes 3 files changed, 11 insertions(+) create mode 100644 examples/models/resources/gltf/Avocado.glb create mode 100644 examples/models/resources/gltf/LICENSE create mode 100644 examples/models/resources/gltf/rigged_figure.glb (limited to 'examples/models/resources') diff --git a/examples/models/resources/gltf/Avocado.glb b/examples/models/resources/gltf/Avocado.glb new file mode 100644 index 00000000..006b79c3 Binary files /dev/null and b/examples/models/resources/gltf/Avocado.glb differ diff --git a/examples/models/resources/gltf/LICENSE b/examples/models/resources/gltf/LICENSE new file mode 100644 index 00000000..77c73c62 --- /dev/null +++ b/examples/models/resources/gltf/LICENSE @@ -0,0 +1,11 @@ +Rigged Figure model has been created by Cesium (https://cesium.com/cesiumjs/), +and licensed as Creative Commons Attribution 4.0 International License. + +Check for details: http://creativecommons.org/licenses/by/4.0/ + +Avocado model is provided by Microsoft +and licensed as CC0 Universal Public Domain + +Check for details: https://creativecommons.org/publicdomain/zero/1.0/ + +GLTF sample models for testing are taken from: https://github.com/KhronosGroup/glTF-Sample-Models/ diff --git a/examples/models/resources/gltf/rigged_figure.glb b/examples/models/resources/gltf/rigged_figure.glb new file mode 100644 index 00000000..c505a33d Binary files /dev/null and b/examples/models/resources/gltf/rigged_figure.glb differ -- cgit v1.2.3