David Braben's "Frontier - Elite II" is among the most beloved Amiga games, and it has a very sophisticated 3D graphics engine. Did you know it runs in your webbrowser?
A couple of years ago, Mark Watson aka watsonmw on GitHub took on the biblical effort of reverse-engineering some of David Braben's Frontier program code, and re-implementing it in a portable way. The latest GitHub commits are from 2024, but the results actually surfaced around 2020, but they still are nothing short of stunning: An in-depth analysis of the 3D graphics engine, revealing countless clever details and coding tricks used by David Braben, and a portable version of Frontier's intro sequence that runs on PC, Amiga - and in your webbrowser.
![]() |
| Frontier intro, original 320x200 pixels on Amiga |
![]() |
| Frontier intro re-implemented by watsonmw, running in Firefox webbrowser |
Yes, you can watch the intro in any high resolution your browser and screen permits, with original music, it's just a click away:
https://watsonmw.com/fintro/fe2-intro.html
The web (WebAssembly) version looks fantastic, and runs super smooth on a modern computer with lots of CPU cores and gigahertzes, PC and Amiga versions support high resolutions, too - but maybe even more interesting than the eye-candy are the technical aspects of the remake.
It is based on a complete analysis of the graphics engine. Watsonmw has provided a fantastic summary of his findings, and it is proof of the enormous amount of brains that original author David Braben put into creating the original game more than 30 years ago.
Two examples of the sophisticated 3D-graphics engine are the use of bytecode ("model code") and sub-trees. A certain code associated with an object gives certain drawing instructions, like type of curve, or level of detail. A sub-tree of objects can be attached to an object, and act depending on that object's current properties, allowing for e.g. animation or optimization.
There are many more such tweaks and features in Frontier's source code - you can read about all the details on watsonmw's hompage:
It is a highly interesting read for the developer, and probably also for the passionate Frontier player.
Amiga & PC releases of watsonmw's Frontier intro are available here:
https://github.com/watsonmw/fe2-intro
https://amiga.abime.net/games/view/frontier-elite-ii


No comments:
Post a Comment