DEMO PROGRAMS

Here are various Demo Programs created using three.js. Some of these programs are newer programs created using WebGPU. Others are older programs created using WebGL.

Aircraft Dioramas

Here are a couple of aircraft dioramas:

In these dioramas, you can select the camera viewpoint, including level, locked and cockpit (FM2 only). You can pan around the aircraft using the mouse and you can pitch and bank and turn the aircraft using the buttons at the lower left. The FM2 has animated parts that you can activate with various buttons on the upper right.

Earth from Space

Here is a depiction of the earth from space. Creating an image of earth is a common exercise for three.js programmers and many examples are available online. This version is more complex and depicts the earth using the correct angles for the sun, moon, stars and some planets. The moon is displayed in the correct position for a specific year. The texture for the stars was obtained from NASA. Here is a discussion of many interesting facts that I learned while creating this example.

Great Circle Navigation

Here is a depiction of the great circle navigation used in long distance flights. This shows a typical ferry flight taken by a B-29 during WWII.

The Inner Planets

Here is a diorama showing the inner planets of the solar system. Not only are the orbits of the planets on slightly different planes, they are not perfect circles. To handle this, I used data look-up tables to compute the position of the planets at different places in their orbits. This program shows how to rotate rotating objects around a common center - a useful feature of three.js.