"Myas' Dragon", a B-29 of the 6th Bomb Group based on Tinian Island during WWII.
Objectives

This website combines two of our favorite topics: aviation and computer flight simulations.

We initially created this website to share our Flight Module (which has been in development for several decades) and to discuss how you can use this module to create a computer flight simulation. But, since creating an interesting flight demo required us to create more interesting aircraft and scenery, we ended up creating several more useful modules.

We are using three.js to create the programs and Blender to create the models. Not only are these programs free, but once you have created your masterpiece, you can share the results over the internet.

This website also honors real-life aviators who helped inspire us in our pursuits.

The Flight Modules

The primary challenges involved in creating a computer flight simulation are creating a solution that is both realistic and easy to fly. When I purchased the original subLogic flight simulator in 1980, I enjoyed the apparent realism, but found the airplane almost impossible to fly. This led me on a multi-decade quest to create something better. The 1988 Amiga F/A-18 Interceptor demonstrated the proper geometry for a flight simulation. My further efforts and experiences as a pilot showed that you could create a fairly realistic simulation by using the 4 basic forces acting on an aircraft in flight: Thrust, Lift, Drag and Gravity. I eventually incorporated these computations in a JavaScript module using three.js. I was able to take advantage of three.js routines to vastly simplify the computation of flight geometry. And, computing the effects of the basic forces turned out to be fairly straightforward.

Why not more complicated? One could argue that a realistic flight simulation should be far more complex and should include computations for the wings, fuselage and control surfaces. But much of this additional complexity has very little incremental value and, in my experience, the more complicated you make things, the greater the likelihood of unexpected results. For example, consider the Japanese Zero. In a dive, as the aircraft gained speed, the ailerons became less effective, making the Zero harder to roll. A determined programmer might try to model the behavior of each of the ailerons to simulate this behavior. However, a simpler approach is to have the controls create a certain roll rate, which decreases as speed increases.

Additional complexity would also make the aircraft more difficult to fly. To make flying more fun, we assume that your pilot persona is an experienced pilot who automatically handles a lot of the minor adjustments. This includes handling adjustments to flight controls, such as trimming the aircraft, adjusting yaw in flight and keeping the aircraft centered on the runway during takeoff. This also includes handling adjustments to engine controls, such as adjusting fuel mixture and propeller rpm. Of course, you can easily add complexity. But, in my view, this would make the aircraft less fun to fly.

Airplane Flight Demos

The flight demos give you a chance to see the Flight Modules in action. The primary flight demos are:

To make these demos interesting, we created different sandboxes for each aircraft. Since the FM2 is a naval aircraft, the demo begins onboard an aircraft carrier and takes place mostly over the ocean. Since the Sopwith Camel was an army aircraft, the demo begins at an airbase and takes place over land.

Each aircraft also includes animated parts and a realistic cockpit. The Flight Module also includes provisions for handling tail dragger aircraft and for computing the effect of extra items like flaps and landing gear.

Helicopter Flight Demos

We also created a Helicopter Flight Module. The primary helicopter flight demos are:

The MD500 uses a Flight Module that allows the full range of motion. There is some instability in forward flight that needs work. The Huey uses a simpler Flight Module that limits pitch and bank. See here for more information about helicopter simulations.

Other Demo Programs

Here are other Demo Programs, which include displays of airplanes in flight, and views of earth and the solar system. These programs showcase the capabilities of three.js and include various animated effects, such as airplanes with moving parts and animated oceans.

Discussions

Here are links to discussions of topics of interest:

Three.js Three.js basics.
Modules The flight module and other useful modules for programmers.
Demos How to create demos with animated 3D aircraft and scenery.
CodePen CodePen examples of three.js programs
Aviators Some real-life aviators who inspired me to write these programs.
The GitHub Repository

The programs and modules and resources are generally available in my GitHub repository. You can view and run the programs, as explained in the GitHub ReadMe file. You can view the modules and resources and use them in your own programs. This allows you to run and debug your own programs locally.