Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Quickly Build An Animated 3D Planet Scene With Firemonkey For Android And IOS

Firemonkey 3D Planets Android IOSDavid Intersimone from Embarcadero has a post up about building a 3D scene of Earth and Mars using Firemonkey. The tutorial is for C++Builder but is effectively the same as Delphi except for 5 lines of C++ which are easy to translate to Object Pascal. This scene should easily work across all supported platforms including Android, IOS, Windows, and OSX. The tutorial shows how to use a TViewPort3D, hook it up to the 2D interface, use a custom TCamera, and how easy it is to assign textures to spheres using Firemonkey. It also talks about how to animate the scene using TFloatAnimation and using the Loop property to have the animation automatically loop. The Loop property of the animation components is very powerful because you can use it to loop particle effects (using TPlane objects). Normally you might use object pools to put keep from having to create and destroy lots of particle effect objects all the time but Loop lets you bypass all of that extra code. Lastly there is a full example project that you can download and check out.

Head over and read the full blog post about building a 3D scene using Firemonkey.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply