Coder Social home page Coder Social logo

akeelmedina22 / webgl-flight-simulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 37 KB

A simple flight simulator with varying terrain is implemented in WebGL.

License: MIT License

JavaScript 91.00% HTML 9.00%
flight-simulator perlin-noise webgl

webgl-flight-simulator's Introduction

About the Project

This is project #1 from CS 440 Computer Graphics, offered at Habib University at Fall 2021. Updated Summer 2022 for refactoring purposes, for a more efficient implementation. Some features have been removed and some will be added.

There are 5 main features implemented in this project:

  1. A height map is used to generate a terrain mesh. A grid, once generated, has it's y-coordinate randomly perturbed, giving the appearance of mountains.
  2. A flyby view of the generated terrain is implemented. This is the perspective view obtained from a plane flying at a certain y-coordinate, facing parallel to the ground. The bounds of the view can be dynamically altered within reasonable limits.
  3. The terrain is colored such that the 'mountains' have snowy tops, a grassy base, and lakes surrounding them.
  4. The pitch, roll, and yaw of the plane is implemented to determine the orientation, within constraints.
  5. The terrain is infinite. When the plane approaches the boundary of a patch it is currently flying over, a new patch is dynamically computed and added so the plane never flies out of terrain.

Instructions

The HTML file titled 'simulator.html' must be opened in a chromium based browser for the simulation to appear. The browser must also be compatible with WebGL. Control instructions are listed in the simulator.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

webgl-flight-simulator's People

Contributors

akeelmedina22 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.