-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TinyGltfImporter: spline-interpolated animation import.
- Loading branch information
Showing
11 changed files
with
565 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.04 KB
(270%)
src/MagnumPlugins/TinyGltfImporter/Test/animation-embedded.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
src/MagnumPlugins/TinyGltfImporter/Test/animation-embedded.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"asset":{"version":"2.0"},"animations":[{"name":"empty","channels":[],"samplers":[]},{"name":"TRS animation","channels":[{"sampler":0,"target":{"node":1337,"path":"rotation"}},{"sampler":1,"target":{"node":42,"path":"translation"}},{"sampler":2,"target":{"node":12,"path":"scale"}}],"samplers":[{"input":0,"interpolation":"LINEAR","output":1},{"input":2,"interpolation":"STEP","output":3},{"input":2,"interpolation":"LINEAR","output":4}]}],"accessors":[{"bufferView":0,"byteOffset":0,"componentType":5126,"count":2,"type":"SCALAR"},{"bufferView":1,"byteOffset":0,"componentType":5126,"count":2,"type":"VEC4"},{"bufferView":0,"byteOffset":8,"componentType":5126,"count":4,"type":"SCALAR"},{"bufferView":2,"byteOffset":0,"componentType":5126,"count":4,"type":"VEC3"},{"bufferView":3,"byteOffset":0,"componentType":5126,"count":4,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":24},{"buffer":0,"byteOffset":24,"byteLength":32},{"buffer":0,"byteOffset":56,"byteLength":48},{"buffer":0,"byteOffset":104,"byteLength":48}],"buffers":[{"byteLength":152,"uri":"data:application/octet-stream;base64,AACgPwAAIEAAAAAAAACgPwAAIEAAAHBAAAAAAAAAAAAAAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgQAAAAAAAAAAAAAAgQAAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AACAPwAAoEAAAIA/AACAPwAAwEAAAIA/AACAPwAAgD8="}]} | ||
{"asset":{"version":"2.0"},"animations":[{"name":"empty","channels":[],"samplers":[]},{"name":"TRS animation","channels":[{"sampler":0,"target":{"node":1337,"path":"rotation"}},{"sampler":1,"target":{"node":42,"path":"translation"}},{"sampler":2,"target":{"node":12,"path":"scale"}}],"samplers":[{"input":0,"interpolation":"LINEAR","output":1},{"input":2,"interpolation":"STEP","output":3},{"input":2,"interpolation":"LINEAR","output":4}]},{"name":"TRS animation, splines","channels":[{"sampler":0,"target":{"node":3,"path":"rotation"}},{"sampler":1,"target":{"node":1,"path":"translation"}},{"sampler":2,"target":{"node":2,"path":"scale"}}],"samplers":[{"input":5,"interpolation":"CUBICSPLINE","output":7},{"input":5,"interpolation":"CUBICSPLINE","output":8},{"input":5,"interpolation":"CUBICSPLINE","output":9}]},{"name":"TRS animation, splines, sharing data with the same time track","channels":[{"sampler":0,"target":{"node":45,"path":"translation"}},{"sampler":1,"target":{"node":45,"path":"scale"}}],"samplers":[{"input":5,"interpolation":"CUBICSPLINE","output":8},{"input":5,"interpolation":"CUBICSPLINE","output":8}]},{"name":"TRS animation, splines, sharing data with different time track","channels":[{"sampler":0,"target":{"node":45,"path":"translation"}},{"sampler":1,"target":{"node":45,"path":"scale"}}],"samplers":[{"input":5,"interpolation":"CUBICSPLINE","output":8},{"input":6,"interpolation":"CUBICSPLINE","output":8}]}],"accessors":[{"bufferView":0,"byteOffset":0,"componentType":5126,"count":2,"type":"SCALAR"},{"bufferView":1,"byteOffset":0,"componentType":5126,"count":2,"type":"VEC4"},{"bufferView":0,"byteOffset":8,"componentType":5126,"count":4,"type":"SCALAR"},{"bufferView":2,"byteOffset":0,"componentType":5126,"count":4,"type":"VEC3"},{"bufferView":3,"byteOffset":0,"componentType":5126,"count":4,"type":"VEC3"},{"bufferView":4,"byteOffset":0,"componentType":5126,"count":4,"type":"SCALAR"},{"bufferView":4,"byteOffset":16,"componentType":5126,"count":4,"type":"SCALAR"},{"bufferView":5,"byteOffset":0,"componentType":5126,"count":12,"type":"VEC4"},{"bufferView":6,"byteOffset":0,"componentType":5126,"count":12,"type":"VEC3"},{"bufferView":7,"byteOffset":0,"componentType":5126,"count":12,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":24},{"buffer":0,"byteOffset":24,"byteLength":32},{"buffer":0,"byteOffset":56,"byteLength":48},{"buffer":0,"byteOffset":104,"byteLength":48},{"buffer":0,"byteOffset":152,"byteLength":32},{"buffer":0,"byteOffset":184,"byteLength":192},{"buffer":0,"byteOffset":376,"byteLength":144},{"buffer":0,"byteOffset":520,"byteLength":144}],"buffers":[{"byteLength":664,"uri":"data:application/octet-stream;base64,AACgPwAAIEAAAAAAAACgPwAAIEAAAHBAAAAAAAAAAAAAAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgQAAAAAAAAAAAAAAgQAAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AACAPwAAoEAAAIA/AACAPwAAwEAAAIA/AACAPwAAgD8AAAA/AABgQAAAgEAAAKBAMzMzP83MjD8AAEBAAACwQAAAAAAAAAAAAAAAAAAAAAAQs0c/MgPVPGUaGT/tYjo+q6qqvgAAAADNzMw9iYgIPlVV1T/NzMw9vLu7PquqKj5SKTa/mmDIPlIptj5Kz+w+AABAQJqZGT8AAAhCAABgwWZmJkAAAAAAzczMPpqZGUBlGhk/7WI6PjID1TwQs0c/zczMPc3MTD4zM+PAmpnZP2Zmpj8AAAA/AACAPwAAAABSKTY/Uim2vkrP7L6aYMi+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEDNzMw9AAAgQKuqqr4AAAAAzczMPVVV1T/NzMw9vLu7PgAAAMDNzIw/mpmJwAAAQECamRk/AAAIQmZmJkAAAAAAzczMPgAAwD/NzBxBMzOjwM3MzD3NzEw+MzPjwGZmpj8AAAA/AACAPzMzo0DNzMw9mpnpwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDNzIw/mpmJwAAAAD/NzMw9VVW1QN7d3T6rqio+q6qqPjMzo0DNzMw9mpnpwAAAAMAAAAAAmpkZP83MTD7NzMw+MzNjwQAAQEDNzMw9AAAgQAAAoECamZk+zcyMP2Zmpj8AAAAAzcxMPgAAwD/NzBxBMzOjwAAAAAAAAAAAAAAAAA=="}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ | |
], | ||
"buffers": [ | ||
{ | ||
"byteLength": 152, | ||
"byteLength": 664, | ||
"uri": "animation.bin" | ||
} | ||
] | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.