This project demonstrates a 3D modeling application using OpenGL and GLUT. It includes interactive features like camera movement, player actions, and dynamic adjustments for shooting mechanics.
- 3D Models: Visualize and interact with 3D objects.
- Camera Control: Navigate the scene using keyboard inputs.
- Player Mechanics: Move, aim, and shoot with the player-controlled cannon.
- Customizable Shots: Adjust shot speed and trajectory.
To compile and run the project, you need:
- A C++ compiler supporting C++11 or later.
- OpenGL and GLUT libraries. (If using windows)
- SOIL (Simple OpenGL Image Library) for texture handling. (Already in the project root)
3DModeling-GC/
├── assets/ # Textures and 3D models
├── include/ # Header files for modular components
├── lib/ # SOIL library for image processing
├── src/ # Source code for application logic
├── Makefile # Build instructions
└── Trabalho 2 Computação Gráfica.pdf # Original project documentation
Use the provided Makefile to compile the project:
makeThe generated executable will be in the root project directory.
After compilation, run the executable:
./bin/3DModeling-GC| Key | Action |
|---|---|
W |
Move forward |
S |
Move backward |
A |
Look left |
D |
Look right |
Q |
Raise the player's cannon |
E |
Lower the player's cannon |
| Spacebar | Fire a shot |
[ |
Decrease shot speed |
] |
Increase shot speed |
The project includes the following resources:
- Textures: Located in
assets/textures/, includinggrass.pngandbrick.png. - 3D Models: Located in
assets/models/, such astank.obj,tree.obj, andstar.obj.
This project is distributed under the MIT License. See LICENSE for details.