Implementing a scene conversion tool
In Chapter 5, Working with Geometry Data, we implemented a geometry conversion tool capable of loading meshes in various formats supported by the Assimp library, such as .gltf
or .obj
, and storing them in our runtime format, which is suitable for fast loading and rendering. In this recipe, we will extend this tool into a full scene converter that will handle all our materials and textures. Let's get started and learn how to do this.
Getting ready
The source code for the scene conversion tool described in this chapter can be found in the Chapter7\SceneConverter
folder. The entire project is covered in this recipe. If you want to start with a simpler version of the tool that only deals with geometry data, take a look at the Implementing a geometry conversion tool recipe in Chapter 5, Working with Geometry Data.
Before we look at this recipe, make sure you're familiar with the Implementing a material system and Importing materials...