Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Graphics Algorithms in Unity

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.

Features

The application showcases the following algorithms and features:

Line Drawing Algorithms

  • 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.

2D Geometric Transformations

  • 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.

Fractals

  • 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.

Other

  • Pong: A simple implementation of the classic game Pong, with movable paddles and a ball.

Getting Started

To run this project, you need to have Unity installed.

  1. Clone this repository to your local machine.
  2. Open the project in the Unity Hub.
  3. Select the Unity Version 2020.3.18f1 or a compatible version.
  4. Once the project is open in the Unity Editor, locate the Main scene in Assets/Scenes/.
  5. Press the "Play" button in the editor to run the application.

Built With

  • Unity - Game Engine (Version: 2020.3.18f1)

About

Computer Graphics application developed in unity

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages