Implementing automatic geometry conversion
In the previous chapters, we learned how to use the Assimp library to load and render 3D models stored in different file formats. In real-world graphics applications, the process of loading a model can be tedious and multistage. Besides just loading, we might want to optimize a mesh in some specific way, such as optimizing geometry and computing multiple LOD meshes. This process might become slow for sizable meshes, so it makes perfect sense to preprocess meshes offline, before an application starts, and load them later in the app as described in the previous recipe, Organizing mesh data storage. Let’s learn how to implement a simple framework for automatic geometry preprocessing and conversion.
In the previous edition of this book, we created a standalone tool for geometry conversion that needs to be executed before subsequent demo apps can load the converted data. It turned out to be a significant oversight on our part...