CPP
,OpenGL
- Analog Clock
- Sphere to/ From Octahedron
- Cube motion in a floor
- Sphere motion in a floor
- Half Octahedron
Implementation of Raster based graphics pipeline.
Stage 1:
modeling transformationStage 2:
view transformationStage 3:
projection transformationStage 4:
clipping & scan conversion using Z-buffer algorithm
A demo of the input can be found in Test Cases
folder. There are 5 testcases, from which one of the output is given above.
This project implements the following :
- A fully controllable camera : camera moves in all directions by pressing different keys.
- Creates plane and shapes of different structure: takes input from a file and draws spheres, triangle, quadric surface, Pyramids and a floor(2d plane).
- Illumination with the Phong Lighting Model : computes the ambient, specular and diffuse component of each object and light them accordingly.
- Recursive Reflection : reflection is computed recursively for an object according to the variable
recursion_level
. - Snapshot : A snapshot can be taken pressing "0" button
- Texture : Texture can be added in the floor pressing "space" button. Otherwise, floor will be without texture in the snapshot.