flight-simulator

Flight Simulator

Introduction

This flight simulator was designed as part of the course CS 440 Computer Graphics at Habib University, Karachi. The simulator is designed to be a simple flight simulator with a few controls and a simple environment. The simulator is designed using WebGL and JavaScript.

Controls

The simulator has the following controls:

Viewing Models

The simulator has three viewing models:

Shaders

The simulator has two shaders:

Terrain

The terrain is generated using a height map. The height map is a 2D array of values between 0 and 1. The simulator uses the height map to generate a terrain. Perlin noise is used to generate the height map.

Usage

Clone the repository and run the following command in the root directory of the repository:

python -m http.server

Then open the following URL in your browser: http://localhost:8000/simulator.html

Screenshots

Following are some screenshots of the simulator:

Faces
Viewing Mode: Triangles, Shader: Phong
Wireframe
Viewing Mode: Wireframe, Shader: Phong
Points
Viewing Mode: Point, Shader: Phong

Acknowledgements

Authors