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.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Edit Tags For Ogg Vorbis And Flac Formats With Delphi XE5 Firemonkey On IOS And Android

Ogg Vorbis and Flac are two different audio file formats which are free from software patents and have very permissive...