An open API service indexing awesome lists of open source software.

https://github.com/caneroj1/graphics

Repository for projects I worked on while in TCNJ's Computer Graphics Course. The PoolBall directory contains my final project for the course. It is a 9-ball simulator.
https://github.com/caneroj1/graphics

Last synced: about 2 months ago
JSON representation

Repository for projects I worked on while in TCNJ's Computer Graphics Course. The PoolBall directory contains my final project for the course. It is a 9-ball simulator.

Awesome Lists containing this project

README

        

compGraphics
============

Repository for projects I worked on while in TCNJ's Computer Graphics Course. The PoolBall directory contains my final project for the course. It is a 9-ball simulator.

My final project is pretty cool. It creates a Pool Table and initializes the setup into one typical for a game of 9-ball. Collision resolution is handled by treating each ball-ball collision as perfectly elastic. As I was in Linear Algebra at the time, mathematical techniques for projection were used to rescale each ball's movement vectors and then swap them, resulting in realistic looking collisions.

Some work still needs to be done on this project:

I'd like to add:


  • Game win conditions

  • Game loss conditions

  • Improved quality textures

  • Improved texture mapping for painting striped textures onto rotating spheres (this is an algorithm I am working on in my spare time.)