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

AndroidAppmethodDemoFiremonkeyIOSOSXWindows

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
AndroidC++BuilderDelphiDemoFiremonkeyWindows

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

AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

Sign up for our Newsletter and
stay informed

Leave a Reply