Giter VIP home page Giter VIP logo

flight's Introduction

This is a simple OpenGL demo that demonstrates quaternion based rotations  
for flight mechanics.  This project also uses the GLUT library so you must have 
glut installed to run this as a Visual Studio project.   
There is an executable in the downloads section that was compiled 
on a x64 windows 7 machine.  This exe will only run if you have glut32.dll on your  
machine.
 
Here is a video of the program in action:
http://youtu.be/X8DFgjuD4DI  //link may be broken, youtube is having problmes with 
							 //my uploads lately

 
Source files: 
FlightSim.cpp (contains main) 
Quaternion.cpp 
Vector3D.cpp 
Vector3D.h 
Quaternion.h 
 
To install glut in windows: 
 
1. Download the glut binaries for windows.  They can be found at this link:  
http://user.xmission.com/~nate/glut/glut-3.7.6-bin.zip 
 
2.  Create a folder called  
'GL' in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ 
copy glut.h to this folder.  The path of glut.h should be  
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\glut.h 
 
3. Copy glut32.lib to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib 
 
4. Copy glut32.dll to your SysWOW64 or System32 depending on if you you are running 
32bit or 64bit windows. To be safe you can just copy it to both directories 
 
Controls 
 
Flight-------------------------------- 
x - roll right 
z - roll left 
f - nose down 
v - nose up 
 
Camera-------------------------------- 
u - increase camera reference point 
j - decrease camera reference point 
o - move camera forward 
l - move camera backward 
i - move camera up 
k - move camera down 
 
Non rotational movements-------------- 
w - up 
d - down 
s - left 
d - right 
 
Esc - close program 
b - reset plane 

flight's People

Watchers

James Cloos avatar  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.