Chapter 13. Basic 3D Programming
3D programming is an extremely complex topic, which cannot be explained completely in a single chapter. However, here I will provide very basic knowledge about the LibGDX 3D API. In this chapter, you will learn how to generate basic models (such as sphere, box, and cylinder) as well as loading models exported from 3D modeling software (such as Blender). Furthermore, we will see how to improve performance using frustum culling.
Selecting items in a 3D world is quite different, yet simpler, than in a 2D game. We will see how a user can interact with objects inside a 3D world using ray picking.
In this chapter, you will learn about the following topics:
- Create a basic model using the LibGDX 3D API
- Load a 3D model exported from Blender
- 3D frustum culling
- Ray picking