Moving Earth
We are going to start with something simple and create an interactive 3D visualization of the rotating Earth in deep space. To make it interactive, we will implement a 3D touch event to move Earth closer and further from the viewer. This first example will be as minimal as possible to demonstrate how quickly you can build a 3D app with FireMonkey.
Create a new Delphi multi-device project and select 3D Application
as the application type. Save the form unit as uFormEarth
and the project as MovingEarth. Change the Name
property of the form to FormEarth
and its Color
to Black.
The next step is to add a TDummy
component to the form. This component acts as a container for other 3D components and is very useful for applying common transformations to a group of 3D objects. It does not have any visual representation at runtime. In the FireMonkey 2D world, the TLayout
component plays a similar role. In the world of FireMonkey 3D, the concept of parenting is also very important. Most FireMonkey...