This is a simple C++ and OpenGL project to render a 3d room space with diverse objects.
The only prerequisites are:
- OpenGL, GLUT and GLEW
- C++ Compiler
There are two ways of running the program
To compile the program just run the following command
g++ main.cpp -o main -lglut -lGLU -lGL -lGLEW
And once compiled, simply run the following command to execute it
./main
P.S: The above commands are for the g++ compiler
If you have all the prerequisites already installed, you can simply run the make command to compile and run. But you will need to have the Make installed as well
make
Command Key | Action | Description |
---|---|---|
W, A, S, D | Move Forwards, Left, Backwards and Right | Capslock cannot be active |
Q, E | Move Up and Down | Capslock cannot be active |
Mouse | Look Around | Hold left click and move the mouse to look around |
Command Key | Action | Description |
---|---|---|
P | Open and Close the door | Capslock cannot be active |
J | Open and Close the window | Capslock cannot be active |
L | Turn on and off the table lamp | Capslock cannot be active |
V | Turn on and off the fan | Capslock cannot be active |
As this was a project made for study purposes only, pull requests are not welcome. But feel free to fork the repository and modify it as you wish.