O'Reilly logo

Expert Delphi by Paweł Głowacki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required