72 lines
5.2 KiB
Markdown
72 lines
5.2 KiB
Markdown
# CG
|
|
|
|
This repository contains codes, write-ups, lab manuals, lab notes and question papers for **Computer Graphics.**
|
|
|
|
---
|
|
|
|
## Index
|
|
|
|
### Codes
|
|
|
|
#### Lab Codes:
|
|
1. [Assignment A-1 (Scan Fill)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-1%20%28Scan%20Fill%29.cpp)
|
|
2. Assignment A-2 (Cohen Sutherland Line Clipping)
|
|
- [Using DDA](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-2%20%28Cohen%20Sutherland%20Line%20Clipping%29%20%28using%20DDA%29.cpp)
|
|
- [Using built-in functions](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-2%20%28Cohen%20Sutherland%20Line%20Clipping%29%20%28using%20built-in%20function%29.cpp)
|
|
3. [Assignment A-3a (Pattern using DDA Line and Bresenham Circle Algorithm)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-3a%20%28Pattern%20using%20DDA%20Line%20and%20Bresenham%20Circle%20Algorithm%29.cpp) (Circle inside a triangle which is inside a bigger circle)
|
|
4. [Assignment A-3b (Pattern using DDA Line and Bresenham Circle Algorithm)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20A-3b20%28Pattern%20using%20DDA%20Line%20and%20Bresenham%20Circle%20Algorithm%29.cpp) (Circle inside a rhombus which is inside a rectangle)
|
|
5. [Assignment B-4 (Transformations)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-4%20%28Transformations%29.cpp)
|
|
6. [Assignment B-5a (Snowflake)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5a%20%28Snowflake%29.cpp)
|
|
7. [Assignment B-5b (Hilbert Curve)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5b%20%28Hilbert%20Curve%29.cpp)
|
|
8. [Assignment B-5c (Koch Curve)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20B-5c%20%28Koch%20Curve%29.cpp)
|
|
9. [Assignment C-6c (Sunrise and Sunset)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20C-6c%20%28Sunrise%20and%20Sunset%29.cpp)
|
|
10. [Assignment C-7b (Bouncing Ball)](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Assignment%20C-7b%20%28Bouncing%20Ball%29.cpp)
|
|
|
|
#### Digital Differential Analyzer (DDA):
|
|
> Digital Differential Analyzer (DDA) is a line-drawing algorithm for digital displays, using incremental calculations to plot points between endpoints.
|
|
|
|
1. [Line](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-line.cpp)
|
|
2. [Triangle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-triangle.cpp)
|
|
3. [Circle](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/DDA-circle.cpp)
|
|
|
|
#### Miscellaneous Codes:
|
|
- [Scan Line Fill](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/Scan%20Line%20Fill.cpp)
|
|
|
|
### Lab Manual
|
|
- [Full lab manual](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/CGL%20Lab%20Manual.pdf)
|
|
|
|
#### Printable format:
|
|
1. [Assignment 1](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%201.pdf)
|
|
2. [Assignment 2](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%202.pdf)
|
|
3. [Assignment 3](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%203.pdf)
|
|
4. [Assignment 4](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%204.pdf)
|
|
5. [Assignment 5](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%205.pdf)
|
|
6. [Assignment 6](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%206.pdf)
|
|
7. [Assignment 7](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-manual/Assignment%207.pdf)
|
|
|
|
- [**Assignment Solutions 1-7 (ALL)**](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/assignments/CGL%20Assignments%20%281-7%29.pdf)
|
|
|
|
### Notes
|
|
1. [Unit 1 - Graphics Primitives and Scan Conversion Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%201)
|
|
2. [Unit 2 - Polygon, Windowing and Clipping](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%202)
|
|
3. [Unit 3 - 2D, 3D Transformations and Projections](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%203)
|
|
4. [Unit 4 - Light, Colour, Shading and Hidden Surfaces](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%204/)
|
|
5. [Unit 5 - Curves and Fractals](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/notes/Unit%205)
|
|
|
|
#### Lab Notes (Computer Graphics **Lab**)
|
|
1. [Equilateral Triangle Logic](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Equilateral%20Triangle%20Logic.pdf)
|
|
2. [Koch and Snowflake Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Koch%20and%20Snowflake%20Curves.pdf)
|
|
3. [Transformation Algorithms](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/lab-notes/CGL%20-%20Transformation.pdf)
|
|
|
|
### Question Papers
|
|
1. [IN-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/IN-SEM)
|
|
2. [END-SEM](https://git.kska.io/sppu-se-comp-codes/CG/src/branch/main/question-papers/END-SEM)
|
|
|
|
---
|
|
|
|
Maintained by:
|
|
- [notkshitij](https://git.kska.io/notkshitij)
|
|
- [TanmaySpamzzz](https://git.kska.io/TanmaySpamzzz)
|
|
- [shh_itsourlittlesecret (Afan)](https://git.kska.io/shh_itsourlittlesecret)
|
|
- [Kalaskar_admin03](https://git.kska.io/Kalaskar_admin03/)
|