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:
Light clusters from the sun fall on an object, which reflect and reach our eye. This is how we see things. OpenGL ES allows us to create four types of light sources: