This project is a collection of computer graphics algorithms implemented in Unity for a university course. It serves as a practical demonstration of several fundamental concepts in computer graphics.
The application showcases the following algorithms and features:
- Slope Intercept: The basic method using the y = mx + b equation.
- Slope Intercept (Fixed Point): An integer-only version of the slope-intercept algorithm.
- Digital Differential Analyzer (DDA): An incremental algorithm for line drawing.
- Bresenham's Line Algorithm: An efficient integer-only line drawing algorithm.
- Bresenham's Circle Algorithm: An algorithm for drawing circles.
- Translation: Move an object in 2D space.
- Rotation: Rotate an object around a point.
- Scaling: Resize an object.
- Shear: Skew an object.
- Reflection: Reflect an object across a line.
- Sierpinski Triangle: A classic fractal based on a triangle.
- Koch Snowflake: A fractal curve.
- Mandelbrot Set: A famous fractal set generated from complex numbers.
- Julia Set: Another fractal set closely related to the Mandelbrot set.
- Iterated Function Systems (IFS): A method for generating fractals, like Barnsley's Fern.
- Pong: A simple implementation of the classic game Pong, with movable paddles and a ball.
To run this project, you need to have Unity installed.
- Clone this repository to your local machine.
- Open the project in the Unity Hub.
- Select the Unity Version
2020.3.18f1or a compatible version. - Once the project is open in the Unity Editor, locate the
Mainscene inAssets/Scenes/. - Press the "Play" button in the editor to run the application.
- Unity - Game Engine (Version: 2020.3.18f1)