Programs, documentation, and output snapshots of implemented and designed experiments for the laboratory coursework in UCS1712: Graphics and Multimedia Lab, SSN College of Engineering, Chennai, India.
Link to Compiled Documentation of Experiments
-
2D Composite Transformations and Windowing in C++ using OpenGL
- Perform a combination of two transformations from translation, rotation, scaling, shearing, and reflection.
- Demonstrate all use-cases for the said transformations.
- Use matrix operations and homogeneous coordinates to perform the transformations.
- Transform an object from World coordinate system to a user-defined Viewport coordinate system.
- Outputs
- Report
-
Cohen Sutherland Line Clipping in C++ using OpenGL
- Perform line clipping using the Cohen Sutherland algorithm, for given line endpoints and viewing window bounds.
- Demonstrate all use-cases for line clipping.
- Indicate the intersection coordinates for clipped lines.
- Transform an object from World coordinate system to a user-defined Viewport coordinate system.
- Outputs
- Report
-
apt
packages required:- freeglut3-dev
- mesa-common-dev
-
Compilation command:
gcc -o <bin-name> <prog-name> -lGL -lGLU -lglut