Heavily inspired by https://github.com/gue-ni/OpenGL_Flightsim.
Should work on Windows with OpenGL, and on macOS with Metal.
FlightSimSmallDemo.mov
All dependencies are delivered with the code as submodule, so first call
git submodule update --init
to download all the dependencies.
Next use CMake to create a solution file on Windows, or an XCode project on macOS. You have to set the CMAKE variables FLIGHTSIM_ARCHITECTURE and FLIGHTSIM_PLATFORM to the correct values. The defaults are correct for Windows, but if you have macOS with an ARM processor, you have to change these values with CMake to arm
and macos
respectively.
W A S D : pitch and roll
Q E : rudder
J K : decrease / increase thrust
O : toggle camera
mouse : camera control in orbit mode
The terrain was generated with https://github.com/janm31415/HeightMap.