Ready-to-use 3D objects
In the first part of this chapter, we looked into some of the low-level and direct APIs for building 3D apps in FireMonkey. Now let’s start looking in more detail into the ready-to-use components.
There are different 3D objects that we can use in our Delphi FireMonkey apps, from really simple ones, such as TStrokeCube
or TGrid3D
, that just render a few lines in 3D space, to more complex components that maintain their own vertex and index buffers for drawing complex geometries with triangles. This is a typical approach for rendering arbitrary geometries in 3D apps such as mobile games and it requires quite a lot of coding.
At the lowest level, all 3D objects inherit from the TControl3D
class, which introduces location and transformations in 3D space. This class also adds interactivity to all 3D controls by implementing different mouse events that are translated to touch events on mobile targets. These user events have different parameters that provide...