Skip to content

AhnafSHL/CSE423-Computer-Graphics-Labs

Repository files navigation

CSE423 Computer Graphics Labs

This repository contains my lab assignments for CSE423: Computer Graphics at BRAC University.

Lab List

Lab 01: OpenGL Introduction

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

Lab 02: Midpoint Line Drawing Algorithm

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

Lab 03: 3D Graphics and Transformation

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

Technologies Used

  • Python
  • PyOpenGL
  • GLUT
  • OpenGL primitives and transformations

How to Run

Install the required packages:

pip install -r requirements.txt

Then 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.py

Note

These assignments were completed as part of my Computer Graphics lab coursework.

About

CSE423 Computer Graphics lab assignments using Python, PyOpenGL, and GLUT.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages