In this section, you will learn how to build your first 3D application. We need to learn how to set up a 3D viewport and to deal with lights and materials.
There are basically two ways to enable 3D capabilities in your applications:
- Build a 3D FMX application that basically has a TForm3D inherited-from instance as the main form.
- Build a regular (2D) FMX cross-platform application and use a TViewport3D component to host 3D controls inside of it.
The choice among the two options largely depends on the kind of application you're building. The first option may be the best choice while building a 3D virtual environment. The user usually expects an immersive experience, with a first-person view. In this case, in games, the 3D-world simulation of players and some similar applications are typical use case examples.
The second option (a regular 2D application with a 3D scene container) can be more appropriate when you need to provide standard user interface...