CG - Assignment 3
CG - Assignment 3
ASSIGNMENT 3
4. Which color model is used for specifying colors in printing and graphic design?
a) RGB b) CMY
c) YIQ d) HSV
6. Which shading model computes the lighting for each pixel based on the normal
vectors of the surface and the light sources?
a) Phong Shading b) Gouraud shading
c) Ray tracing d) Depth comparison
Page 1 of 7
7. Which shading model computes the lighting at each vertex and interpolates the
values across the surface?
a) Phong Shading b) Gouraud shading
c) Ray tracing d) Depth comparison
9.Which algorithm is used to determine whether a surface is facing the viewer or not?
a) Gouraud shading b) Back face detection
c) Ray tracing d) Depth comparison
10. Which lighting model is used to simulate the interaction of light with surfaces in
computer graphics?
a) Basic Illumination Model b) Gouraud shading
c) Phong Shading d) Ray tracing
Page 2 of 7
1. Point Sources
2. Parallel Sources
3. Distributed Sources
Surface: When light falls on a surface part of it is reflected and part of it is absorbed. The
surface structure decides the amount of reflection and absorption of light.
Observer: The observer’s position and sensor spectrum sensitivities also affect the lightning
effect.
The movement of objects without deforming the shape of the object is Translation. Here the
object is shifted from one position to another position and from one co-ordinate location to
another.
The translating polygon i.e., all vertex of the polygon is converted to a new position. Similarly,
curved objects are translated. To change the position of the circle or ellipse its centre
coordinates are transformed, then the object is drawn using the new co-ordinates.
It is a process of changing the angle of the object. Rotation can be clockwise or anticlockwise.
For rotation, we have to specify the angle of rotation and rotation point. Rotation point is also
called a pivot point. It is print about which object is rotated.
Types of Rotation:
1. Anticlockwise
2. Counter clockwise
The positive value of the pivot point (rotation angle) rotates an object in a counter-clockwise
(anti-clockwise) direction. The negative value of the pivot point (rotation angle) rotates an
object in a clockwise direction. When the object is rotated, then every point of the object is
rotated by the same angle.
Page 4 of 7
Output
Page 5 of 7
2. Write an algorithm Back face detection technique.
Back-Face detection, also known as Plane Equation method, is an object space method in
which objects and parts of objects are compared to find out the visible surfaces. Let us consider
a triangular surface that whose visibility needs to decided.
The idea is to check if the triangle will be facing away from the viewer or not. If it does so,
discard it for the current frame and move onto the next one. Each surface has a normal vector.
If this normal vector is pointing in the direction of the center of projection, then it is a front
face and can be seen by the viewer. If this normal vector is pointing away from the center of
projection, then it is a back face and cannot be seen by the viewer.
Page 6 of 7
Output
Page 7 of 7