Many modern games take place in 3D worlds. Graphics processing units are constantly evolving, allowing developers to create more and more visually appealing and detailed worlds. While you can use OpenGL or Vulkan directly to render 3D objects, this can prove to be quite challenging. Luckily, the Qt 3D module provides an implementation of 3D rendering with a high-level API. In this chapter, we'll learn to use its capabilities and see how we can create a 3D game with Qt.
Qt 3D is not limited to rendering. You'll also learn to handle user input and implement game logic in a 3D game. Qt 3D was designed to be highly efficient and fully extensible, so it allows you to implement your own additions to all Qt 3D systems.
Qt 3D offers both C++ and QML API with mostly equivalent functionality. While the C++ API allows you to modify and extend the implementation...