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

Building an interactive 3D scene

In the first example, we wanted to keep things simple. This time, we are going to build an interactive visualization of three 3D arrows marking the beginning and orientation of the 3D coordinate system used in FireMonkey. For this we will just use some cylinder and cone 3D objects, color materials, lights, and an explicit TCamera component. We will also see how to implement looking at the scene from different points of view and distances.

Create a new Delphi multi-device project. This time, make sure to select Blank Application template and not 3D Application. Save the form unit as uFormArrows3D and the project as Arrows3D. Change the Name property of the form to FormArrows3D.

Now, drop on the form, TViewport3D ...

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