forked from ajbeach2/Flight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
58 lines (45 loc) · 1.75 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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