Skip to content

Computer Graphics Assignment(Auth Spring Semester 2021)

License

Notifications You must be signed in to change notification settings

tasoslio/Computer-Graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer-Graphics

This assignment took place in the course "Computer Graphics" of Aristotle University of Thessaloniki at 8th Semester. It contains three parts which described below.

📒 Description

Part 1 - Filling Triangles

This part implements scanline algorithm for filling triangles. It uses two methods for colouring the triangles:

  1. Flat Method : This method applies a colour to each triangle based on the mean of the three colours of triangle's vertices.
  2. Gouraud Method : This method applies a colour to each triangle's side based on the linear interpolation of the two colours of the corresponding vertices.

There are two different demo scripts that present the results of the two methods.

1st Part Assignment's Presentation(only in Greek) : here

Part 2 - Transformations and Projections

This part implements the proper functions in order to apply transformations and projections in an object. In the demo script presented examples of translations by a constant vector v and rotation by a constant matrix R.

2nd Part Assignment's Presentation(only in Greek) : here

Part 3 - Illumination of an object.

This part implements the illumination of an object with three methods: ambient, diffusion and specular. For the painting of the object used two methods:

  1. Gouraud Method : (The method described in the first part.)
  2. Phong Method : Info about this method -> here

3rd Part Assignment's Presentation(only in Greek) : here

🔧 Development

The files of the assignment were created with MATLAB R2018b.

❓ FAQ

If there are any questions, create an issue in this repository.

🔒 Licenses

MIT License

About

Computer Graphics Assignment(Auth Spring Semester 2021)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages