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


Simple Raytracing Engine Source Code For Delphi XE7 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE7 Firemonkey Raytrace Engine Android IOS Windows OSX | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Paweł Głowacki from Embarcadero has translated an open source raytracing engine from C++ into Object Pascal for Delphi XE7 Firemonkey. The original raytracer is by Caleb Piercy who has 9 YouTube videos which guide you through the entire process of writing the raytrace engine in C++. Paweł translated the code from the guide into Object Pascal with support for both the VCL and FMX frameworks. The FMX version runs on Android, IOS, OSX, and Windows. The FMX code has some pretty good examples in there like directly writing colors to pixels using TMapAccess and TBitmapData.SetPixel(). The core of the raytracer is shared and usable by both the VCL and FMX frameworks. The entire raytracer comes in at only a few thousand lines of code. You can check out the original source code in C++ on SourceForge. This code should also compile in Appmethod.

Head over and check out the full blog post from Paweł about building a simple raytracing engine in Delphi XE7 Firemonkey.

Head directly to the Embarcadero Code Central site and download the source code for the multi device raytracing engine in Object Pascal.

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

Related posts

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


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

Sign up for our Newsletter and
stay informed

Leave a Reply