Professional Documents
Culture Documents
Computer Grtapics - Unit III 2 Marks
Computer Grtapics - Unit III 2 Marks
Computer Grtapics - Unit III 2 Marks
Graphics Programming
IV-B
UNIT-III- 2 Marks
Color Models - RGB, YIQ, CMY, HSV - Animations - General Computer Animation, Raster,
Keyframe - Graphics programming using OPENGL - Basic graphics primitives - Drawing three
dimensional objects - Drawing three dimensional scenes
1. Define computer graphics animation.
Computer graphics animation is the use of computer graphics equipment where the graphics
output presentation dynamically changes in real time. This is often also called real time animation.
2. What is tweening?
It is the process, which is applicable to animation objects defined by a sequence of points, and
that change shape from frame to frame.
3. Define frame.
One of the shape photographs that a film or video is made of is known as frame.
4. What are key frames? (Nov/Dec 2011,Nov/Dec 2012)
A key frame is a detailed drawing of the scene at a certain time in the animation sequence.
Within each key frame, each object is positioned according to the time for that frame.
Some key frames are chosen at extreme positions in the action; others are spaced so that the
time interval between key frames is not too great.
One of the shape photographs that a film or video is made of the shape of an object is known
initially and for a small number of other frames called key frame.
Visual animation requires a playback of at least 25 frames per second
5. What is pseudo animation?
Pseudo animation is creating a sequence of stills, photographing or video graphing each still as
one frame, and then later playing back the frames at a faster speed.
6. What are the different tricks used in computer graphics animation?
a. Color look Up Table manipulation
b. Bit plane manipulation
c. Use of UDCS
d. Special drawing modes
e. Sprites
f. Bit blitting
7. What is color look up table?
In color display unit it is necessary to read 44-bit for each pixel from buffer. This is time
consuming process. To avoid this video controller uses look up table to store many entries of pixel
vales in RGB format. This look up table is commonly known as color look up table.
8. What is an intuitive interface?
The intuitive interface is one, which simulates the way a person would perform a
corresponding operation on real object rather than have menu command.
CS2401-Computer Graphics
Graphics Programming
IV-B
9. What is Sprite?
A Sprite is graphics shape in animation and games programs. Each sprite provided in the
system has its own memory area similar to but smaller than pixel RAM.
10. What is the UDC technique?
UDC stands for User Defined Character set. It is graphics animation trick, which is used in
early microcomputer system.
11. What is the use of hidden line removing algorithm?
The hidden line removal algorithm determines the lines, edges, surfaces or volumes that are
visible or invisible to an observer located at a specific point in space.
12. What is computer graphics realism?
The creation of realistic picture in computer graphics is known as realism. It is important in
fields such as simulation, design, entertainments, advertising, research, education, command, and
control.
13. How realistic pictures are created in computer graphics?
To create a realistic picture, it must be process the scene or picture through viewing-coordinate
transformations and projection that transform three-dimensional viewing coordinates onto twodimensional device coordinates.
14. What is chromaticity?
The term chromaticity is used to refer collectively to the two properties describing color
characteristics: Purity and dominant frequency.
15. Define Color model.
A Color model is a method for explaining the properties or behavior of color within some
particular context.
16. What are the uses of chromaticity diagram?
The chromaticity diagram is useful for the following:
Comparing color gamuts for different sets of primaries.
Identifying complementary colors.
Determining dominant wavelength and purity of a given color.
17. What is HSV model?(Nov/Dec-2014)
The HSV (Hue, Saturation, and Value) model is a color model which uses color descriptions
that have a more intuitive appeal to a user. To give a color specification, a user selects a spectral color
and the amounts of white and black that is to be added to obtain different shades, tint, and tones.
18. What for CMY color model used? (Nov / Dec 2012)(Nov/Dec-2014)
The printing process often used with the CMY model generates a color point with a collection
of four ink dots, somewhat as an RGB monitor uses a collection of three phosphor dots.
One dot is used for each of the primary colors (cyan, magenta, and yellow), and one dot is
black. A black dot is including because the combination of cyan, magenta, and yellow inks typically
CS2401-Computer Graphics
Graphics Programming
IV-B
produce dark gray instead of black. Some plotters produce different color combinations by spraying
the ink for three primary colors over each other and allowing them to mix before they dry.
19. What are the parameters in the HLS color model?
Hue, Lightness and Saturation.
20. Define Computer animation. (Nov/Dec 2011)
Computer animation refers to any time sequence of visual changes in a scene. In addition to
changing object position with translations or rotations, a computer generated animation could display
time variations in object size, color, transparency, or surface texture.
21. What are the steps in animation sequence? (Nov/Dec 2011)
Story board layout
Object definition
Key-frame specifications
Generation of in-between frames
22. How frame-by-frame animation works?
Here each frame of the scene is separately generated and stored. Later, the frames can be
recorded on film or they can be consecutively displayed in "real-time playback" mode.
23. What is morphing?
Transformation of object shapes from one form to another is called morphing.
24. What are the methods of motion specifications?
Direct motion specification
Goal-directed Systems
Kinematics and Dynamics.
25. Define primary color and complementary color.
Primary color:
The two or three colors used to produce other colors in such a color model are referred to as
primary colors.
Complementary colors:
If the two color sources combine to produce white light, they are referred to as complementary
colors.
26. What are the two types of mixing colors?
Two main principles for mixing colors:
Additive mixing: shining colored lights on a white ball
Subtractive mixing: mixing paint colors and illuminating with white light.
27. Define color gamut.
Color space is represented in a way a range of colors arranged in a 3D coordinate
system.
Color gamut is the range of all the possible colors for a color model.
CS2401-Computer Graphics
Graphics Programming
IV-B
28.Define OpenGL.
OpenGL (Open Graphics Library) is the computer industry's standard application program
interface ( API ) for defining 2-D and 3-D graphic images.
OpenGL specifies a set of "commands" or immediately executed functions. Each command
directs a drawing action or causes special effects.
A list of these commands can be created for repetitive effects.
OpenGL is independent of the windowing characteristics of each operating system, but
provides special "glue" routines for each operating system that enable OpenGL to work in that
system's windowing environment.
29. What are the basic primitive types supported by the OpenGL and how they are specified?
OpenGL Provides tools for drawing all the output primitives such as points, lines, triangles,
polygons, quads etc and it is defined by one or more vertices.
To draw such objects in OpenGL we pass it a list of vertices. The list occurs between the two OpenGL
function calls glBegin() and glEnd(). The argument of glBegin() determine which object is drawn.
These functions are
glBegin (int mode);
glEnd (void );
The parameter mode of the function glBegin can be one of the following:
GL_POINTS
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
GL_TRIANGLES
GL_TRIANGLE_STRIP
GL_TRIANGLE_FAN
GL_QUADS
GL_QUAD_STRIP
GL_POLYGON
30. Write down the format of glVertex command?
The main function used to draw objects is named as glVertex. This function defines a point (or a
vertex) and it can vary from receiving 2 up to 4 coordinates.
Format of glVertex Command:
When we wish to refer the basic command without regard to the specific arguments and datatypes it is
specified as glVertex*();
31. Write the viewing functions in OpenGL?
1. gluOrtho2D(): Specifies the coordinate system in two dimension void gluOrtho2D (GLdouble
left, GLdouble right, GLdouble bottom,GLdouble top);
Example: gluOrtho2D (0.0, 640.0, 0.0, 480.0);
2. glOrtho() : Specifies the coordinate system in three dimension
Example : glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
3. glFlush() : Ensures that the drawing commands are actually executed rather than stored in a
buffer awaiting (ie) Force all issued OpenGL commands to be executed.
4. glMatrixMode(GL_PROJECTION) : For orthographic projection.
CS2401-Computer Graphics
Graphics Programming
IV-B
CS2401-Computer Graphics
Graphics Programming
IV-B
CS2401-Computer Graphics
Graphics Programming
IV-B
CS2401-Computer Graphics
Graphics Programming
IV-B
CS2401-Computer Graphics
Graphics Programming
IV-B
gl
library
basic
command
number of
arguments
type of
argument
CS2401-Computer Graphics
Graphics Programming
IV-B
10