zurich

Flight Simulator Example in Java3D

Version 0.91 (State of Aug-30-2014)

1. Overview

Under construction

2. Installation for Windows

Download the flightsim zip file and unzip it:   JPFlightSim.zip Version 0.91
Start the flightsim by doubleclicking the file JPFlightSim/FlightSim.jar

Requirements:

For any Windows system (XP, 7, 8, 8.1, 32bit or 64bit) the flight simulator requires a 32-bit Java Runtime, version 1.6 or later, which must be installed. You can get one here: Oracle.com Java Download Choose a version for Windows 32bit, which usually has a name of the form: " jre-(version)-windows-i586.exe " .
If you try to start the flightsim with a 64bit Java Runtime or Development Kit, the application will not be able to load some native dll libraries for joystick and 3d support.

3. Installation for Linux

Download the flightsim zip file and unzip it:   JPFlightSim.zip Version 0.91
Start the flightsim by doubleclicking the file JPFlightSim/FlightsimLinux.sh

Requirements:

The flight simulator requires a 64-bit Linux system with a 64-bit Java Runtime, version 1.6 or later, which must be installed. You can get one here: Java.com

4. How to fly

You can select some settings like window mode and size, used flight model and optional joystick options in the settings dialog, which is displayed initially:

Flightsim Setup

Once the simulator starts, your aircraft is in the final approach to a carrier, where it will touch down and bolter. Once in the air again, you should pull softly your joystick or move your mouse in the lower half of the flightsim window. Otherwise your aircraft will dive into the sea.

Flightsim Initial Approach
Initial path of the aircraft towards a carrier"s runway in front of an island.

5. Download source code (freeware)

Source code: Eclipse Kepler project folder:   Flightsim.src.zip Version 0.91
Note:   You still need the JPFlightSim folder at the same location as the Flightsim folder. However, if the Flightsim folder is not found, the application will display a dialog and tell you, where the resources should be located.

6. Technical remarks

The flightsim uses Java3D in retained mode. It can direct the JVM to use native and java libraries stored in the flightsim folders, so that Java3D does not have to be installed additionally (thanks to a tip from stackoverflow.com). Joystick support for Windows and Linux comes from SourceForge Java Joystick. The land is displayed using a ROAM like algorithm. Object meshes have been created using Autocad and 3d Studio. I took some of the meshes from the Internet. The flight model propagation is based on simple physics and known datasheets of some planes as material constants. Simple numerical explicit Euler integration is used.