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 ...

Get Expert Delphi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.