Technical requirements
We assume readers have a basic understanding of linear algebra and calculus, and we recommend becoming familiar with the glTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#animations.
In this chapter, we continue refining our unified glTF Viewer sample code that we built in previous chapters. The variations in each recipe’s main.cpp
file include using different model files to demonstrate the specific glTF animation feature covered in each recipe, adjusting initial camera positions for optimal model presentation, and making minor UI changes to highlight the glTF features explored in each recipe.
The source code for our glTF Viewer is located in shared/UtilsGLTF.cpp
. The GLSL vertex and fragment shaders can be found in the data/shaders/gltf/
folder. The code for animation-specific utilities can be found in shared/UtilsAnim.cpp
and shared/UtilsAnim.h
.