This repository contains my lab assignments for CSE423: Computer Graphics at BRAC University.
A 2D house and rainfall scene using PyOpenGL. Features include:
- House drawing using basic OpenGL primitives
- Rain animation
- Day/night background change
- Keyboard and mouse interaction
A simple 2D catching game built using the midpoint line drawing algorithm. Features include:
- Midpoint line algorithm with zone conversion
- Catcher and falling diamond
- Collision detection
- Score system
- Play, pause, restart, and exit buttons
A 3D shooter-style game using PyOpenGL transformations. Features include:
- 3D player model
- Enemies and bullets
- Camera movement
- First-person and third-person views
- Cheat mode
- Score, lives, and miss system
- Python
- PyOpenGL
- GLUT
- OpenGL primitives and transformations
Install the required packages:
pip install -r requirements.txtThen run any lab file:
python Lab-01-OpenGL-Introduction/lab01_house_rain.py
python Lab-02-Midpoint-Line-Algorithm/lab02_diamond_catcher.py
python Lab-03-3D-Graphics-Transformation/lab03_3d_shooter.pyThese assignments were completed as part of my Computer Graphics lab coursework.