This project is a simple 3D engine written in Python with pygame, and includes projection using matrices and rotation using quaternions.
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the
main.py
file:python main.py
-
To run the project on a website using
pygbag
:cd .. pygbag Pygame3DProjection
You can access the project at http://localhost:8000/.
- W: Move forward
- S: Move backward
- A: Move left
- D: Move right
- Q: Move up
- E: Move down
- Arrow Keys: Rotate the camera (relative to world)
- ESC: Exit
- Projection: Matrices for projecting 3D points onto a 2D screen.
- Rotation: Quaternions for rotation of the camera while avoiding gimbal lock.
This project is licensed under the MIT License.