CG pr oral Flashcards
(15 cards)
What is computer graphics?
Computer graphics is the field of creating, manipulating, and displaying visual images using computers.
What is seed fill algorithm in CG?
It’s a technique to fill a connected area starting from a seed point, spreading to neighboring pixels until a boundary is reached.
What is the difference between window and viewport?
A window defines the portion of the scene to be displayed; a viewport defines where on the display device the window content appears.
What is the world coordinate system and viewport coordinate system?
The world coordinate system defines the object’s position in the scene, while the viewport coordinate system maps the scene onto the display area.
What is Weiler Atherton algorithm?
It’s a polygon clipping algorithm used to clip complex polygons against a clipping window.
What is homogenous coordinate system?
It’s a coordinate system using an extra dimension to simplify transformations like translation, scaling, and rotation.
What are types of projection in CG?
They are mainly orthographic projection and perspective projection.
What is the Phong illumination model?
It’s a model that simulates the way light reflects off a surface using ambient, diffuse, and specular components.
What is Gouraud shading?
It’s a shading technique that interpolates vertex colors across a surface for smooth lighting effects.
What are hidden surface removal algorithms?
They are techniques used to determine and remove surfaces not visible to the viewer, like Z-buffer and Painter’s algorithm.
What is interpolation and approximation?
Interpolation passes exactly through given points; approximation creates a curve close to the points without necessarily passing through them.
applications of OpenGL
Video Editing (Adobe Premiere)
Graphics rendering
CAD software
Driving simulation
openGL libraries
GLUT utility toolkit (window creation, mouse input)
GLEW extension wrangler (all extensions configured for more functions)
GLFW (modern alternative to GLUT) - input keyboard, mouse, joystick and gamepads
openGl creations
1992
Silicon Graphics, Inc (SGI)
command line for Ubuntu
g++ main.cpp -o main -lGL -lGLU -lglut
./main.out