Chapter 3
Computer Graphics
PU BCA past exam questions
Past questions and answers
58 questions set from this chapter, 4 of them more than once; 4 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.
- Most repeated · 3 of 5 exams
- Asked 2 times
- 2025 Spring · 7 marks
- 2024 Spring · 7 marks
Define projection. Explain perspective projection with the expression and matrix representation.
Similar questions: Parallel and perspective projection (2023 Spring)
Answer
Projection is the transformation of a 3D object onto a 2D view plane. Each point is mapped along projectors (lines of projection) to its intersection with the plane. The two main kinds are parallel projection (projectors parallel) and perspective projection (projectors meet at a centre of projection).
Perspective projection
All projectors converge at the centre of projection (eye point). Objects farther away look smaller (perspective foreshortening), which gives a realistic view, but parallel lines (not parallel to the view plane) converge and sizes/angles are not preserved.
Take the centre of projection at the origin and the view plane at . A point projects to . By similar triangles:
Matrix form (homogeneous coordinates):
Dividing by gives , , .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 5 exams
- Asked 2 times
- 2024 Spring · 7 marks
- 2023 Spring · 8 marks
Explain RGB and CMYK color model, Why CMYK is called subtractive color?
Similar questions: RGB and CMYK color models (2025 Spring)
Answer
RGB colour model
RGB uses Red, Green and Blue as primary colours of light. Colours are produced by mixing these lights in different intensities (0-255 each, giving about 16.7 million colours). It is used in monitors, TVs, cameras and scanners. R + G = yellow, G + B = cyan, R + B = magenta, R + G + B = white, and no light = black. It is an additive model.
CMYK colour model
CMYK uses Cyan, Magenta, Yellow and Key (Black) inks. It is the model for printing. . Black ink is added because overlaying C, M, Y gives only a dull dark brown and black text would otherwise need three inks.
Why CMYK is subtractive
Printing starts with white paper, which reflects all wavelengths. Each ink acts as a filter that absorbs (subtracts) some part of the white light: cyan absorbs red, magenta absorbs green and yellow absorbs blue. Adding more ink subtracts more light, and all inks together absorb almost all light, giving black; with no ink the paper stays white. Since colours are obtained by subtracting wavelengths from white light, the model is called subtractive.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 5 exams
- 2025 Spring · 8 marks
Explain RGB and CMYK color model, Why CMYK is called subtractive color and RGB is called additive color model?
Similar questions: RGB, CMYK, subtractive color (2024 Spring)
Answer
RGB colour model
RGB uses Red, Green and Blue as primary colours. Every colour is made by mixing these three lights in different intensities; each is typically 8 bits (0-255), giving million colours. It is used by light-emitting devices such as monitors, TVs, cameras and scanners.
- R + G = Yellow, G + B = Cyan, R + B = Magenta
- R + G + B = White, none = Black
CMYK colour model
CMYK uses Cyan, Magenta, Yellow and Black (K). It is used in printing. Cyan, magenta and yellow are the complements of R, G and B (, , ). Black ink is added because mixing C, M and Y gives a muddy dark brown rather than true black, and black ink is cheaper and sharper for text.
Why RGB is additive
Colours are produced by adding light to a black (dark) screen. Starting with no light (black), adding red, green and blue light together gives white. More light means a brighter colour.
Why CMYK is subtractive
Printing starts with white paper that reflects all colours. Each ink absorbs (subtracts) part of the white light: cyan absorbs red, magenta absorbs green, yellow absorbs blue. Adding more ink removes more light, and all inks together absorb nearly everything, giving black. Hence it is a subtractive model.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 5 exams
- 2023 Spring · 7 marks
Define parallel and perspective projection. Derive the expression and matrix representation for Perspective Projection.
Similar questions: Oblique parallel projection (2025 Spring) · Perspective projection expression and matrix (2025 Spring)
Answer
Parallel projection
Projectors are parallel to each other, so the centre of projection is at infinity. Sizes and parallel lines are preserved but there is no depth effect. Types: orthographic (projectors perpendicular to the plane) and oblique (cavalier, cabinet). Used in engineering drawing.
Perspective projection
Projectors converge at a centre of projection (the eye). Objects farther away look smaller (perspective foreshortening) and parallel lines meet at vanishing points, giving realistic views, but true sizes are not preserved.
Derivation of perspective projection
Take the centre of projection at the origin and the view plane at . A point projects to . By similar triangles:
Matrix representation
Using homogeneous coordinates:
Dividing by : , , .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2025 Spring · 8 marks
- 2023 Spring · 8 marks
Why do we need clipping? Explain Cohen-Sutherland Line Clipping algorithm with necessary example.
Similar questions: Clipping, Cohen-Sutherland (2025 Spring)
Answer
Need for clipping
Clipping removes the part of a picture lying outside a clipping window (or volume). It is needed because:
- only the portion inside the window is to be displayed, so objects partly outside must be cut;
- it avoids wasted processing/drawing of invisible parts and saves time and memory;
- it prevents writing outside the frame buffer/viewport (which would corrupt other regions);
- it is used in viewing transformation, windowing, 3D hidden-part removal and multi-window displays.
Cohen-Sutherland line clipping
The plane is divided into 9 regions by the window edges. Each end point gets a 4-bit region code (outcode) = Top, Bottom, Right, Left:
- bit 1 (Left) = 1 if
- bit 2 (Right) = 1 if
- bit 3 (Bottom) = 1 if
- bit 4 (Top) = 1 if
The window itself has code 0000.
Algorithm:
- Compute codes of both end points.
- If both codes are 0000 (OR = 0): line is completely inside, accept (trivial accept).
- If the logical AND of codes is not 0000: line is completely outside one edge, reject (trivial reject).
- Otherwise pick an end point outside the window, find the intersection with a window edge it violates, replace the end point with the intersection, recompute its code, and go back to step 2.
Intersection formulas, with :
- vertical edge :
- horizontal edge :
Example
Window: . Line to .
- : so code . : so code .
- OR is , AND is , so clipping is required.
- .
- Clip with : gives , code 0000.
- Clip with : gives , code 0000.
Both codes are now 0000, so the visible part is the line from to .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2025 Spring · 5 marks
- 2024 Spring · 5 marks
Write short notes on: Graphics and Image Processing
Answer
Graphics and image processing
Computer graphics is the creation and manipulation of pictures from descriptions or models (points, lines, polygons, equations) using a computer. Input is a description of objects, output is an image. Examples: games, CAD, animation, GUIs.
Image processing is the analysis and modification of existing images (photos, scans, satellite images) to improve them or extract information. Input is an image, output is an improved image or data. Operations include enhancement, noise removal, restoration, compression, segmentation and recognition. Examples: medical imaging, remote sensing, face recognition, OCR.
| Computer graphics | Image processing |
|---|---|
| Synthesises images from data | Analyses/changes existing images |
| Model to image | Image to image (or features) |
| Uses geometry, rendering | Uses filtering, transforms, statistics |
The two fields overlap: e.g. texture mapping and augmented reality use both.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Why do we need clipping? Explain Cohen-Sutherland Line Clipping algorithm.
Similar questions: Clipping, Cohen-Sutherland with example (2025 Spring)
Answer
Why clipping is needed: only the part of a picture lying inside the viewing window (clip window) is to be displayed. Clipping removes the portions outside the window, so that processing and display time is not wasted on invisible parts, and the drawing does not overflow into other screen areas or memory.
Cohen-Sutherland line clipping
The plane is divided into 9 regions by the window edges. Every endpoint gets a 4-bit region code (outcode) :
- bit 1 = 1 if (left)
- bit 2 = 1 if (right)
- bit 3 = 1 if (below)
- bit 4 = 1 if (above)
The window itself has code 0000.
Steps
- Find the codes of both endpoints .
- Trivially accept if both codes are 0000 (OR of codes = 0000): draw the whole line.
- Trivially reject if the logical AND of the codes is non-zero (both endpoints on the outer side of the same edge): discard the line.
- Otherwise (partially inside): choose an endpoint outside the window (non-zero code), and find the intersection with a window edge for the first set bit, using the slope :
- left/right edge:
- bottom/top edge:
- Replace the outside endpoint by the intersection point, recompute its code, and repeat from step 2 until the line is accepted or rejected.
Example: a line with codes 0001 and 1000 has AND = 0000, so it cannot be rejected immediately; it is clipped against the left edge, then the top edge, until the remaining segment is accepted or rejected.
Advantage: quickly accepts or rejects most lines without computing intersections. Disadvantage: may need several intersection computations for lines that are outside but not trivially rejected.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Define projection. Derive the expression and matrix representation for oblique parallel projection.
Similar questions: Parallel and perspective projection (2023 Spring)
Answer
Projection
Projection is the transformation of 3D object coordinates onto a 2D view plane. In parallel projection the projectors are parallel; in oblique parallel projection they are parallel to each other but not perpendicular to the view plane.
Derivation
Let the view plane be . A point projects to on the plane. The projector makes angle with the view plane; the projection of the projector onto the plane makes angle with the -axis. Let be the point lying directly below on the plane, and the length of the line from to .
Then , so where . From the geometry:
Matrix form
Special cases:
- Cavalier projection: , so and lengths perpendicular to the plane are preserved.
- Cabinet projection: (), so and perpendicular lengths are halved.
- For orthographic projection and the matrix reduces to dropping .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
What is the difference between computer graphics and image processing? Explain the Application of computer graphics.
Answer
Computer graphics vs image processing
| Computer graphics | Image processing |
|---|---|
| Creates (synthesizes) images from models, descriptions or data. | Analyses and modifies existing images. |
| Input: geometric data, equations, objects. Output: an image. | Input: an image. Output: an improved image or information about it. |
| Concerned with rendering, modelling, animation. | Concerned with enhancement, restoration, compression, recognition. |
| Example: drawing a 3D model, a game scene. | Example: removing noise from a photo, medical image enhancement. |
Applications of computer graphics
- User interfaces: windows, icons, menus (GUI).
- Computer-aided design (CAD): design of buildings, machines, circuits, cars.
- Presentation graphics: charts, graphs, bar and pie diagrams for reports.
- Computer art: painting and drawing packages, commercial art, advertising.
- Entertainment: movies, animation, video games, special effects.
- Education and training: simulators for pilots, drivers, surgeons.
- Visualization: scientific and business data (weather maps, molecular structures).
- Medical imaging: CT, MRI visualization.
- Cartography and GIS: maps and terrain.
- Virtual reality and simulation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
List out the merits and demerits of penetration techniques? Explain color generation technique in CRT monitor.
Answer
Beam penetration technique (random-scan colour CRT): the screen is coated with two phosphor layers, red (outer) and green (inner). The colour depends on how deeply the electron beam penetrates, which is controlled by the beam's accelerating voltage.
Merits
- Simple and inexpensive compared with shadow-mask.
- Good for random-scan (line drawing) displays.
- Gives high resolution, because there is no mask and only one gun.
Demerits
- Only four colours: red, green, orange and yellow.
- Poor colour quality and picture quality compared with the shadow-mask method.
- Slow and hard to control; voltage changes are needed for colour change.
Colour generation in a CRT (shadow-mask method)
- The screen is coated with a large number of triads of phosphor dots: red, green and blue.
- There are three electron guns (R, G, B), one for each colour, and a shadow mask, a metal plate with small holes behind the screen, positioned so that each gun's beam can reach only its own colour dots.
- The beams are converged on a hole of the mask, and each excites only its own phosphor dot. The intensity of each gun is varied.
- Because the dots are very close, the eye blends them into one colour. Different intensities of R, G, B give a wide range of colours (e.g. equal R+G+B gives white, R+G gives yellow). With 8 bits per gun, about 16 million colours are possible.
- A convergence system keeps the three beams aligned.
R gun \
G gun --> [shadow mask] --> R G B triads on screen
B gun /
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Digitize the necessary pixel positions of a line between starting coordinate (20,10) and ending coordinates (26,15) by using Bresenham's line drawing algorithm.
Answer
Given: , .
. Slope , so is incremented by 1 at every step.
Initial decision parameter:
Rules:
- If : next point and .
- If : next point and .
| k | next point | ||
|---|---|---|---|
| 0 | 4 | (21, 11) | 2 |
| 1 | 2 | (22, 12) | 0 |
| 2 | 0 | (23, 13) | -2 |
| 3 | -2 | (24, 13) | 8 |
| 4 | 8 | (25, 14) | 6 |
| 5 | 6 | (26, 15) | 4 |
Pixels plotted: (20,10), (21,11), (22,12), (23,13), (24,13), (25,14), (26,15).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Define Scan Conversion. Derive midpoint circle algorithm for drawing a circle.
Answer
Scan conversion is the process of converting a geometric primitive (point, line, circle, polygon) described by coordinates and equations into the set of pixels on the raster display that best represents it. It is also called rasterization.
Midpoint circle algorithm
Circle centred at origin, radius : , which is
- for points inside the circle,
- for points on it,
- for points outside it.
By eight-way symmetry, only the octant from to is computed (clockwise), where increases by 1 each step and either stays or decreases by 1.
Given the current pixel , the next candidates are and . Their midpoint is . Define the decision parameter
- If , the midpoint is inside the circle, so the pixel is closer: choose it.
- If , the midpoint is outside, so choose .
Incremental form. At step :
Subtracting:
- If , : .
- If , : (using ), so .
Initial value at :
(rounding is allowed since is an integer).
Algorithm
- Input and centre ; set .
- Plot the eight symmetric points , .
- While : ; if , ; else , ; plot the symmetric points.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Find the transformation matrix the transforms that rectangle ABCD whose center is at (4,2) is reduced to half of its size, the center will remain same. The co-ordinate of ABCD are A (0,0), B (0,4), C (8,4) and D (8,0). Find Coordinate of new, square. Also derive the transformation matrix to convert this rectangle to square.
Answer
Rectangle: A(0,0), B(0,4), C(8,4), D(8,0); width 8, height 4, centre .
(a) Reduce to half size keeping the centre fixed
Scale by about the point : translate the centre to the origin, scale, translate back.
So .
New coordinates: (a 4 by 2 rectangle, centre still ).
(b) Converting the rectangle to a square
The rectangle is 8 wide and 4 high, so the scale factors must differ: choose , (width becomes 4). Scaling about the centre :
Generally , .
New square: , , , . It is a square with centre .
(Equivalently, applying about to the half-size rectangle of part (a) gives the same square.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Prove the statements:
i. Two successive rotations are always additive
ii. Two successive translations are always additive
Answer
(i) Two successive rotations are additive
Using 2D homogeneous matrices:
By the sum formulas for sine and cosine:
Hence two successive rotations about the origin equal a single rotation through the sum of the angles. Since the sum is commutative, the order does not matter.
(ii) Two successive translations are additive
So two successive translations equal one translation whose distances are the sums of the individual distances.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
How Geometric tables are used to represent a 3D object? Explain with example. Give conditions to generate error free table.
Answer
Geometric (polygon) tables are used to store the data of a 3D object represented by polygon surfaces (a polygon mesh). They have two groups of data: geometric data (vertices, edges, surfaces) and attribute data (colour, transparency, texture, reflectivity). Three tables are used:
- Vertex table: coordinates of each vertex.
- Edge table: each edge as a pair of vertices.
- Surface (polygon) table: each polygon as a list of its edges.
Example: a triangular pyramid-like shape with vertices .
| Vertex table | |
|---|---|
| 0,0,0 | |
| 1,0,0 | |
| 0,1,0 | |
| 0,0,1 |
| Edge table | |
|---|---|
| Surface table | |
|---|---|
Storing edges separately avoids repeating shared vertices, and lets each edge be drawn once.
Conditions for an error-free table
- Every vertex is listed at least once, and every vertex is part of at least one edge.
- Every edge is part of at least one polygon, and every polygon is closed.
- Every edge appears in at least two polygons for a closed solid (and the edge's two ends are different vertices).
- Each polygon has at least one shared edge with another polygon.
- No vertex coordinate is duplicated or missing, and a surface's edges form a closed loop.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Define the term Rendering. How Phong shading is better than Gouraud shading to calculate intensities. Explain.
Answer
Rendering is the process of generating the final 2D image from a 3D scene model by applying hidden-surface removal, illumination (lighting), shading, texture and colour, so that the objects appear realistic on screen.
Gouraud shading (intensity interpolation)
- Find the average unit normal at each polygon vertex (average of the normals of polygons sharing it).
- Apply the illumination model at each vertex to get its intensity.
- Linearly interpolate the vertex intensities along edges and then across scan lines.
Phong shading (normal-vector interpolation)
- Find the vertex normals as above.
- Linearly interpolate the normal vectors along edges and across scan lines.
- Apply the illumination model at every pixel using its interpolated normal.
Why Phong is better
- Specular highlights are rendered accurately; Gouraud interpolates only intensities, so a highlight inside a polygon (not at a vertex) is missed or smeared, and the shape of the highlight is wrong.
- It removes the Mach-band effect much better, giving a smoother and more realistic surface.
- Intensity at each pixel is calculated from the proper normal, so the result is more accurate for curved surfaces.
Cost: Phong needs far more computation (illumination for every pixel), while Gouraud is faster because it uses only the vertex calculation and linear interpolation. So Phong gives higher quality at higher cost.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
What is MIDI? Explain the MIDI hardware, software and communication between them.
Answer
MIDI (Musical Instrument Digital Interface) is a standard protocol and hardware interface that lets electronic musical instruments, computers and other devices communicate. It transmits instructions about music (which note, how long, how loud, which instrument), not the sound itself, so files are very small.
MIDI hardware
- Controllers/keyboards/synthesizers: produce MIDI messages when played and generate sound.
- Sequencers: record, edit and play back MIDI data.
- Sound modules (sound generators): receive messages and produce the sound.
- Interface and cables: 5-pin DIN connectors with ports MIDI IN, MIDI OUT and MIDI THRU, running at 31.25 kbaud, serial.
- Computer interface (sound card or USB MIDI adapter).
MIDI software
- Sequencing software (e.g. Cubase) records and edits tracks.
- Notation software prints sheet music.
- Patch editors/librarians and soft synthesizers that produce sound on the computer.
- Standard MIDI files (.mid) and General MIDI to ensure instrument numbers are the same on all devices.
Communication MIDI messages are sent as bytes: a status byte (message type and channel number, 16 channels) followed by data bytes. Examples: Note On (key, velocity), Note Off, Program Change, Pitch Bend, Control Change. The OUT port of a controller is connected to the IN port of the sound module; THRU passes the incoming data to a third device (daisy chain). Each device listens on its own channel.
Keyboard (OUT) ---> (IN) Sound module (THRU) ---> (IN) Another module
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
How video works? Explain various video compression techniques.
Answer
How video works
Video is a sequence of still images (frames) displayed fast enough, 24-30 frames per second (fps), that the eye (persistence of vision) perceives continuous motion. In analog video (NTSC 30 fps, PAL 25 fps) a CRT's electron beam scans each frame line by line; in many systems with interlacing, odd and even lines are drawn in two fields to reduce flicker. Digital video is obtained by sampling and quantizing each frame as pixels (e.g. RGB or YUV colour space), forming a very large amount of data: for example, pixels at 24 bits and 30 fps is about MB/s. So compression is essential.
Video compression techniques
Lossless vs lossy: lossless gives exact reconstruction (low ratio); lossy discards information that is not noticeable (high ratio).
- Spatial (intra-frame) compression: compresses each frame independently, as an image, removing redundancy within the frame, e.g. JPEG/DCT-based coding, quantization and entropy coding (Motion JPEG).
- Temporal (inter-frame) compression: consecutive frames are very similar, so only the differences are stored. Uses motion estimation and compensation: a frame is divided into macroblocks, a motion vector is found to a similar block in a reference frame, and only the vector and the small residual are stored.
- MPEG frame types:
- I-frame (intra): coded independently, the reference points.
- P-frame (predicted): predicted from the earlier I or P frame.
- B-frame (bidirectional): predicted from both past and future frames; gives the highest compression.
- Other techniques: run-length encoding, Huffman/arithmetic (entropy) coding, chroma sub-sampling (4:2:0), and standards such as H.261, MPEG-1/2/4, H.264/AVC and H.265/HEVC.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Illumination Models
Answer
Illumination model (lighting model) is a formula to calculate the intensity of light at a point on a surface, based on the light sources, the surface properties and the viewer's position. It is used by shading methods to give realism.
Components of the basic (Phong) model
- Ambient light: uniform background light from the surroundings: .
- Diffuse reflection: light scattered equally in all directions from a rough surface, following Lambert's cosine law: .
- Specular reflection: bright highlight on shiny surfaces, seen near the mirror direction: , where is the specular exponent (larger for shinier surfaces).
Total intensity:
with intensity falling with distance by an attenuation factor for point sources.
Kinds of light source: point source, directional (distant) source, spotlight, and area/ambient light.
Other models include Lambertian, Blinn-Phong (using the halfway vector ) and global models like ray tracing and radiosity.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Types of Animation
Answer
Animation is the process of creating the illusion of motion by displaying a sequence of still images (frames) quickly one after another.
Types of animation
- Traditional (cel) animation: each frame is hand-drawn on transparent cels, layered over a background and photographed. Very labour intensive.
- Stop-motion animation: physical objects (clay, puppets, models) are moved slightly and photographed frame by frame.
- 2D computer animation: drawings are created or interpolated on a computer, using key frames and in-betweening (tweening), as in Flash.
- 3D computer animation: objects are modelled in 3D, rigged with skeletons, and moved with keyframes, motion capture or physics, then rendered. Used in modern films and games.
- Motion graphics: animated text and graphic design elements (titles, logos).
- Path / morphing animation: an object moves along a path, or one shape smoothly changes into another (morphing).
- Procedural/physics-based animation: motion produced by rules or simulation (particles, cloth, fluids).
Methods: key-frame animation, motion capture, and procedural animation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: Image formats
Answer
Image formats are the file formats used to store digital images. They differ in compression, colour depth and features.
| Format | Compression | Features and use |
|---|---|---|
| BMP | Usually none | Simple, large file size, Windows bitmap. |
| GIF | Lossless (LZW) | Up to 256 colours, supports transparency and simple animation; for logos and icons. |
| JPEG/JPG | Lossy (DCT) | 24-bit colour, small files, ideal for photographs; no transparency; quality drops with repeated saving. |
| PNG | Lossless (deflate) | 24-bit colour plus alpha transparency; for web graphics; replaced GIF. |
| TIFF | Lossless or none | High quality, used in printing and scanning, large files. |
| SVG | Vector (XML) | Resolution independent, scalable graphics. |
| WebP | Lossy and lossless | Small web images, supports transparency. |
| RAW | None | Unprocessed camera sensor data. |
Formats are broadly raster (bitmap), made of pixels, and vector, made of mathematical shapes. Choice depends on quality, file size, transparency and the intended use.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Define Computer Graphics? How has the evolution of computer graphics technology impacted the gaming industry in terms of realism and player immersion?
Answer
Computer graphics is the field of computer science concerned with creating, storing, manipulating and displaying pictures and images (2D and 3D) by computer, using hardware and software.
Impact of its evolution on gaming
Early stage: games such as Pong used simple monochrome shapes and text (1970s). 8-bit and 16-bit consoles introduced sprites and tile-based 2D with limited colours.
Realism
- 3D polygons and texture mapping (1990s) replaced flat sprites, giving real 3D worlds.
- Hardware GPUs allow millions of polygons per second, with high resolution and frame rate.
- Shading and lighting: Gouraud/Phong shading, per-pixel shaders, shadows, bump/normal mapping and HDR lighting make surfaces look real.
- Real-time ray tracing and global illumination give physically accurate reflections and light.
- Realistic characters through motion capture, facial animation and physics simulation (water, cloth, destruction).
Player immersion
- Large open worlds with seamless detail.
- Virtual reality and augmented reality headsets place the player inside the game.
- Realistic motion and sound, high frame rates, and responsive controls increase the feeling of presence.
- Better visual storytelling makes emotional connection with characters stronger.
- Cinematic quality of cutscenes and in-game graphics are now close.
Overall: progress in graphics hardware and algorithms moved games from simple abstract shapes to near-photorealistic, immersive interactive worlds, and made the gaming industry a major driver of graphics research and GPU development.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
Define frame buffer. Differentiate between raster and random scan display system.
Answer
(a) Frame buffer
A frame buffer (refresh buffer) is a dedicated block of memory that stores the intensity/colour value of every pixel of the screen. The display controller reads it repeatedly (about 60 times per second) and sends the values to the monitor, so whatever is written into the frame buffer appears on the screen. Its size is ; for example a screen with 24 bits per pixel needs MB.
(b) Raster scan vs random scan
| Basis | Raster scan | Random scan (vector) |
|---|---|---|
| Beam movement | Sweeps the whole screen row by row, left to right, top to bottom | Beam moves directly only along the lines to be drawn |
| Picture storage | Pixel intensities in the frame buffer | Display commands in a display file (refresh display file) |
| Memory needed | Large | Small |
| Picture definition | Set of pixels | Set of line-drawing commands |
| Lines | Staircase (jagged) effect, drawn by scan conversion | Smooth lines |
| Filled areas / shading | Easily displayed, realistic images | Poor for filled areas and shading |
| Refresh | Fixed rate, independent of picture complexity | Rate depends on number of lines; flicker if too complex |
| Colour | Millions of colours possible | Limited colours |
| Cost | Cheaper, used in TV, monitors | Costlier, used in plotters/CAD (older) |
| Examples | Monitors, TVs, LCD | Pen plotters, vector displays |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Describe the DDA Algorithm by calculating necessary derivatives. Compare DDA Algorithm and Bresenham's Line Algorithm.
Answer
DDA (Digital Differential Analyzer) algorithm
DDA is a scan-conversion method that uses the differential equation of a line. For a line from to :
Sampling at unit intervals gives the increments:
- If (sample in ): , so and .
- If (sample in ): , so and .
(For lines drawn right-to-left use and instead.)
Steps:
- Read the end points and find , .
- .
- , .
- Plot rounded; then repeat times: , , plot .
Comparison with Bresenham's line algorithm
| DDA | Bresenham |
|---|---|
| Uses floating-point arithmetic | Uses only integer arithmetic |
| Uses multiplication/division (slope) and rounding | Uses only addition, subtraction and sign test of a decision parameter |
| Rounding errors accumulate, so line may drift | No accumulation of error; more accurate |
| Slower | Faster |
| Simple to implement | Slightly more complex |
| Decision made by rounding | Decision made by parameter ( or ) |
| Hardware implementation costly | Easy hardware implementation |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
How can decision parameter be used to draw circle? Calculate all pixels of a circle in the first quadrant where radius=5 and center at (10, 5).
Answer
Decision parameter in circle drawing
In the midpoint circle algorithm the circle is . Inside the circle , outside , on it . Starting at and moving in unit steps of , the next pixel is either or . The decision parameter is the value of at the midpoint of these two candidates:
- If : midpoint is inside, so choose and .
- Else: choose and .
Initial value: . Only the first octant () is calculated; the other octants come from symmetry.
Numerical: , centre
, start .
| k | |||
|---|---|---|---|
| 0 | (<0) | ||
| 1 | (<0) | ||
| 2 | (≥0) |
The loop stops when (the next point would have , so the octant is complete). First-octant points (relative to centre): . Reflecting by gives .
First-quadrant pixels (relative): .
Translate by adding the centre :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
What do you mean by homogeneous coordinate? Find the composite transformation matrix for anti-clockwise rotation of 45 degree about a point (2,3). Use it to rotate a triangle ABC with vertices A (0,0), B (6,2) and C (3,4).
Answer
Homogeneous coordinates
In homogeneous coordinates a 2D point is represented by three numbers with (usually , so the point is ). This allows translation, rotation and scaling to be expressed all as matrix multiplications, so a sequence of transformations can be combined into a single composite matrix.
Composite matrix for rotation by about
Steps: translate to origin, rotate, translate back.
With :
Rotating triangle A(0,0), B(6,2), C(3,4)
- A: gives
- B: gives
- C: gives
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Differentiate between 2D and 3D graphics? In graphics which dimensional is more applicant and explain why?
Answer
2D vs 3D graphics
| Basis | 2D graphics | 3D graphics |
|---|---|---|
| Dimensions | Width and height () | Width, height and depth () |
| Coordinates | Point | Point |
| Transformations | homogeneous matrices | homogeneous matrices |
| Realism | Flat, no depth | Realistic, depth and perspective |
| Extra processes | Little | Projection, hidden-surface removal, lighting, shading, texture |
| Computation and memory | Low | High |
| Hardware | Simple | Needs GPU for good performance |
| Examples | Drawings, charts, GUIs, Paint | Games, CAD, simulation, animation films |
Which is more applicable?
3D graphics is more widely applicable today, because the real world is three-dimensional. It gives realistic visualisation with depth, lighting, shadows and perspective, and lets the viewer rotate and inspect objects from any angle. It is used in games, movies and animation, architecture, CAD/CAM, medical imaging, virtual reality and scientific simulation. Modern GPUs make its cost manageable. 2D remains best for simple interfaces, charts and text, but for realistic applications 3D is preferred.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
Explain the importance of shading method. Compare and contrast between Gouraud and Phong shading model.
Answer
Importance of shading
A polygon mesh model approximates a curved surface with flat polygons. Without shading each polygon is displayed with one flat colour and the facets and edges are clearly visible. Shading calculates intensity across the surface using a lighting model, which:
- gives the object a smooth, realistic appearance with the illusion of depth and curvature;
- shows the effect of light sources, highlights and shadows;
- hides the polygon facets without increasing the number of polygons;
- helps the viewer understand the shape of 3D objects.
Gouraud vs Phong shading
| Gouraud shading | Phong shading |
|---|---|
| Interpolates intensity | Interpolates normal vectors |
| Lighting computed only at vertices; the intensities are then interpolated along edges and scan lines | Normals are interpolated along edges and scan lines; lighting computed at every pixel |
| Steps: vertex normals (averaged), vertex intensities, interpolate | Steps: vertex normals, interpolate normals, apply lighting model per pixel |
| Faster, less computation | Slower, more computation |
| Specular highlights may be missed or appear distorted, Mach-band effect | Accurate highlights, smoother and more realistic |
| Lower quality | Higher quality |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 8 marks
What is multimedia technology? Explain about the multimedia teams.
Answer
Multimedia technology
Multimedia is the integrated use of several media elements (text, graphics, images, audio, video and animation) in a computer-controlled, usually interactive, system. Multimedia technology covers the hardware, software, storage (CD/DVD), compression, authoring and delivery methods used to create and present such content. It is used in education, entertainment, advertising, games, training, web and kiosks.
Multimedia team
A multimedia project needs people with different skills:
- Project manager: plans, schedules, budgets, coordinates the team and communicates with the client.
- Multimedia designer / instructional designer: designs the content structure, navigation and interface, and the learning objectives.
- Content specialist / subject expert: supplies and checks the information.
- Scriptwriter: writes text, narration and scripts.
- Graphic artist / illustrator: creates images, icons and layouts.
- Animator: creates animation and 2D/3D models.
- Audio specialist: records, edits and mixes sound, music and narration.
- Video specialist (producer, camera, editor): shoots and edits video.
- Programmer / author: integrates the elements using authoring tools or code and adds interactivity.
- Quality tester: tests the product for errors and usability.
- Marketing and support staff: release, distribute and support the product.
One person may play several roles in small projects.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 7 marks
What is Animation? Explain the principles of Animation for todays' development.
Answer
Animation
Animation is the process of creating the illusion of motion by displaying a rapid sequence of still images (frames), each slightly different from the previous one. Because of persistence of vision, the viewer sees continuous movement when frames are shown at about 12-30 or more frames per second (24 fps for film, 25/30 fps for video).
Principles of animation (from the Disney animators, still used in 2D, 3D and game animation today)
- Squash and stretch: deforming an object during motion to show weight and flexibility.
- Anticipation: a preparatory action before the main action (e.g. crouching before a jump).
- Staging: presenting the idea clearly so the viewer's attention is on the important thing.
- Straight-ahead action and pose-to-pose: two drawing approaches, frame by frame or via key poses with in-betweens.
- Follow-through and overlapping action: parts of a body continue moving after the main body stops (hair, tail, clothes).
- Slow in and slow out: more frames at the start and end of a movement, fewer in the middle, for natural acceleration.
- Arcs: natural motion follows curved paths.
- Secondary action: supporting actions that enrich the main action.
- Timing: number of frames for an action controls speed and mood.
- Exaggeration: emphasising actions for impact.
- Solid drawing: keeping volume, weight and perspective in the 3D form.
- Appeal: characters should be interesting and believable.
Today these principles guide game character design, films, web/UI animation, advertisements and e-learning, making motion look natural and engaging.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: LCD vs LED
Answer
LCD vs LED
An LCD (Liquid Crystal Display) controls light passing through liquid-crystal cells placed between polarisers, lit from behind by a light source. The term "LED display" usually means an LCD that uses LEDs as its backlight (LED-backlit LCD); older LCDs used CCFL (fluorescent) tubes.
| LCD (CCFL backlight) | LED (LED backlight) |
|---|---|
| Backlight is a cold-cathode fluorescent lamp | Backlight uses light-emitting diodes |
| Thicker and heavier | Thinner and lighter |
| Higher power consumption | Lower power consumption |
| Less contrast, uneven brightness | Better brightness and contrast, local dimming possible |
| Shorter life, contains mercury | Longer life, no mercury |
| Cheaper (older) | Slightly costlier, now standard |
In both, the liquid crystals form the image; only the light source differs. (OLED, in contrast, has self-emitting pixels and needs no backlight.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2025 Spring · 5 marks
Write short notes on: OpenGL
Answer
OpenGL
OpenGL (Open Graphics Library) is a cross-platform, cross-language, hardware-independent API for rendering 2D and 3D graphics, originally developed by Silicon Graphics (1992) and now managed by the Khronos Group. It provides a set of functions (the pipeline) that the application calls to talk to the graphics hardware (GPU).
Main features:
- Drawing of primitives: points, lines, polygons, triangles.
- Transformations (translate, rotate, scale), viewing and projection (perspective and orthographic).
- Lighting, shading (flat, smooth), materials and texture mapping.
- Hidden surface removal with the depth (z) buffer, blending, fog and anti-aliasing.
- Programmable shaders written in GLSL in modern versions.
- Works as a state machine; companion libraries are GLU, GLUT/freeGLUT for windows and input, and GLEW.
Uses: games, CAD, simulation, visualisation and virtual reality. Example: glBegin(GL_TRIANGLES); glVertex2f(...); glEnd();.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Explain the need and use of graphics in the field of IT.
Answer
Need of graphics in IT
- Pictures convey large amounts of information quickly and are easier to understand than text or numbers.
- Graphical user interfaces (windows, icons, menus) make computers easy to use.
- Visual representation of data helps analysis and decision-making.
- Realistic simulation and modelling reduce cost and risk compared with real experiments.
- Interactive communication between user and computer becomes natural.
Uses of graphics in IT
- User interfaces: GUI of operating systems, applications and web pages.
- Computer-aided design (CAD/CAM): design of buildings, machines, circuits, vehicles.
- Presentation graphics and data visualisation: bar charts, pie charts, graphs, dashboards, scientific visualisation.
- Entertainment and games: video games, movies, animation and special effects.
- Education and training: simulators for pilots, doctors; e-learning content.
- Medical imaging: CT, MRI, ultrasound displays.
- Virtual reality and augmented reality.
- Simulation and modelling: weather, engineering, scientific work.
- Image processing: photo editing, satellite images, pattern recognition.
- Art, advertising and multimedia: posters, logos, websites.
- GIS and cartography: digital maps.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Define Aspect ratio. Compare and contrast Random scan display and Raster scan display.
Answer
Aspect ratio
Aspect ratio is the ratio of the width to the height of a display (or of the number of horizontal pixels to vertical pixels, or of the horizontal to vertical points required to give equal-length lines). For example, , . A screen of pixels has aspect ratio . Keeping the aspect ratio avoids distortion of pictures.
Random scan vs raster scan
| Basis | Random scan | Raster scan |
|---|---|---|
| Beam | Directed only to the parts of the screen where picture is to be drawn | Sweeps the whole screen row by row |
| Picture stored as | Line-drawing commands in display file | Intensity values of all pixels in frame buffer |
| Memory | Small | Large |
| Resolution | High; smooth lines | Lower; lines look jagged (aliasing) |
| Filled areas, shading | Difficult | Easy, realistic images |
| Colour range | Limited | Millions of colours |
| Refresh | Depends on picture complexity; flicker if too many lines | Constant rate (e.g. 60 Hz) |
| Editing | Easy to modify by changing commands | Pixels must be changed |
| Cost | More expensive | Cheaper |
| Use | CAD, plotters, vector displays | TVs, monitors, games, photos |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Digitize the necessary pixel position of a circle with radius 7 and centre (70,90) in first and second quadrants using mid-point circle algorithm.
Answer
Midpoint circle algorithm, , centre
Start at with . At each step: if then , (with the new ); else , , (new ). Stop when .
| k | next | ||
|---|---|---|---|
| 0 | |||
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
The octant relative points are . Using gives the rest of the first quadrant: .
First quadrant (add centre ):
Second quadrant (reflect , i.e. ):
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
What is Homogeneous coordinates system? Explain window to viewport transformation in details.
Answer
Homogeneous coordinate system
A point is represented by with , (normally , i.e. ). Translation, rotation, scaling and other 2D transformations then all become matrix multiplications, so any sequence can be combined into one composite matrix.
Window to viewport transformation
A window is a rectangular area of the world-coordinate scene to be displayed; a viewport is the rectangular area of the display device (screen) where it is shown. The transformation maps a point in the window to in the viewport, keeping the relative position.
Window: . Viewport: .
Relative position must be the same:
so
Steps (composite transformation):
- Translate the window corner to the origin: .
- Scale the window to viewport size: .
- Translate to the viewport position: .
If the picture is distorted; if the shape is preserved.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Consider the given triangle ABC with vertices A(0,5) B(9,12), C(3,14) and perform given calculations.
(i) Rotate at Origin
(ii) Rotate it about Fixed point B(5,0) by .
Answer
Triangle , , . Anticlockwise rotation by (, ) is assumed for both parts.
(i) Rotation about the origin
(ii) Rotation about the fixed point
Composite matrix :
So , .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Define polygon rendering methods. Explain Gouraud Shading and Phong Shading in details.
Answer
Polygon rendering methods
Polygon (surface) rendering applies an illumination model to a polygon-mesh surface to compute the colour/intensity of its pixels. The methods are:
- Constant (flat) shading: one intensity is computed per polygon and used for all its pixels. Fast, but facets are visible.
- Gouraud shading: interpolates intensities.
- Phong shading: interpolates normal vectors.
Gouraud shading (intensity interpolation)
- Find the normal at each vertex by averaging the normals of all polygons sharing that vertex: .
- Apply the illumination model at each vertex using to get the vertex intensity.
- Linearly interpolate intensities along the polygon edges:
- Interpolate along each scan line between the edge intensities to get the pixel intensities.
Advantages: smooth shading, removes intensity discontinuities between polygons, less computation than Phong. Disadvantages: highlights may be missed or distorted, Mach-band effect.
Phong shading (normal-vector interpolation)
- Compute the vertex normals by averaging, as above.
- Linearly interpolate the normal vectors along the edges, then along each scan line.
- Apply the illumination model at every pixel using its interpolated normal.
Advantages: accurate specular highlights, smoother and more realistic, fewer Mach bands. Disadvantages: much more computation, so slower.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Define Multimedia and Multimedia Product? Explain Multimedia Team with their roles and skills.
Answer
Multimedia
Multimedia is the integration of two or more media elements (text, graphics, images, audio, video, animation) delivered by a computer, normally with interactivity.
Multimedia product
A multimedia product is an application/package made of these elements, such as an educational CD, computer game, encyclopaedia, kiosk, website, e-learning course or presentation.
Multimedia team: roles and skills
| Role | Responsibility | Skills |
|---|---|---|
| Project manager | Planning, budget, schedule, coordination, client contact | Management, communication, risk handling |
| Multimedia designer / instructional designer | Design of content structure, interface and navigation | Creativity, design, learning theory, storyboarding |
| Subject/content expert | Accuracy of content | Domain knowledge |
| Scriptwriter | Writes scripts, narration, text | Writing, storytelling |
| Graphic artist | Images, icons, backgrounds | Photoshop/Illustrator, colour, layout |
| Animator | 2D/3D animation | Flash/Maya/Blender, timing |
| Audio engineer | Records, edits sound and music | Audio editing, MIDI |
| Video producer/editor | Shooting and editing video | Camera, editing software, compression |
| Programmer / author | Integrates elements, builds interactivity | Authoring tools, scripting, programming |
| Tester / QA | Checks bugs and usability | Testing, attention to detail |
| Marketing / support | Distribution, user help | Marketing, documentation |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 7 marks
Explain the terms Jaggies, Bitmap, True type and Fontographer.
Answer
Jaggies
Jaggies are the stair-step or saw-tooth appearance of diagonal and curved lines on raster displays, caused by representing a smooth line with square pixels (aliasing). They are reduced by anti-aliasing, which blends edge pixels using intermediate colours, or by increasing resolution.
Bitmap
A bitmap (raster) image is a grid of pixels, each with its own colour value (1 bit per pixel for monochrome, 8 or 24 bits for colour). Bitmap fonts store each character as a fixed pixel pattern for a given size. They are quick to display but lose quality when scaled (jaggies appear) and use more memory. Formats: BMP, JPEG, GIF, PNG.
TrueType
TrueType is an outline font technology developed by Apple and Microsoft. Each character is stored as a mathematical outline (straight lines and quadratic Bezier curves) rather than pixels, so it can be scaled to any size and rendered smoothly on both screen and printer, with hinting to improve small sizes. It is the standard font format in Windows and Mac (file extension .ttf).
Fontographer
Fontographer is a font-editing/design program (originally by Altsys, later Macromedia, now FontLab) used to create new fonts or modify existing ones. The designer draws or imports character outlines with Bezier curves, adjusts spacing and kerning, and exports the font as TrueType or PostScript fonts for use in documents and multimedia.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 8 marks
Define Red book standard. Differentiate between MIDI and Digital audio.
Answer
Red Book standard
The Red Book is the standard (Philips and Sony, 1980) that defines the audio Compact Disc (CD-DA). It specifies:
- sampling rate 44.1 kHz,
- 16 bits per sample,
- 2 channels (stereo, PCM),
- a data rate of about 1.41 Mbps (44100 × 16 × 2),
- about 74-80 minutes of audio per disc, with error correction (CIRC) and a pit/land track format.
MIDI vs digital audio
| MIDI | Digital audio |
|---|---|
| Musical Instrument Digital Interface: stores instructions (notes, instrument, duration, velocity), not sound | Stores the actual sampled sound waveform |
| Very small files (a few KB per minute) | Large files (about 10 MB per minute for CD quality) |
| Sound quality depends on the playback synthesiser/sound card | Same quality on every device |
| Easy to edit notes, tempo and instruments | Editing is at waveform level, harder |
| Cannot record voice or natural sound | Can record any sound, including speech |
| Needs MIDI instruments/sequencer | Needs sampling (ADC) and playback (DAC) |
| Format: .mid | Formats: WAV, MP3, AIFF |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Animation Techniques
Answer
Animation techniques
- Cel animation (traditional): each frame is hand-drawn on transparent celluloid sheets laid over a background and photographed. Time consuming.
- Path animation: an object moves along a defined path (line or curve) across frames.
- Frame-by-frame animation: every frame is created individually.
- Tweening (key-frame animation): the artist makes key frames and the computer generates the in-between frames (motion tween, shape tween/morphing).
- Morphing: one image smoothly transforms into another.
- Stop-motion (clay animation): physical models are moved slightly and photographed frame by frame.
- Computer (2D/3D) animation: objects are modelled, rigged, animated and rendered (e.g. Maya, Blender).
- Motion capture: real actor movements are recorded and applied to a digital model.
- Procedural/physics-based animation: motion is generated by rules or simulation (particles, fluids).
- Rotoscoping: drawing over live-action footage frame by frame.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2024 Spring · 5 marks
Write short notes on: Video broadcasting service
Answer
Video broadcasting service
Video broadcasting is the transmission of video (with audio) from a source to many receivers at once. Broadcasting can be:
- Terrestrial: radio waves from ground transmitters received by antennas.
- Satellite: signals via geostationary satellite to dish receivers (DTH).
- Cable: coaxial/fibre cable networks to homes.
- Internet / IPTV streaming: video delivered over IP networks (live streaming, video on demand).
Video is either analog or digital. Analog standards are NTSC (USA, 525 lines, 30 fps), PAL (Europe/Nepal, 625 lines, 25 fps) and SECAM (France, 625 lines, 25 fps). Digital standards include ATSC, DVB and ISDB, using MPEG-2/H.264 compression. Digital broadcasting gives better picture quality, more channels per frequency band, HD and interactive services.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Define the terms computer graphics, Interactive graphics and Non-interactive graphics. Explain the application of computer graphics in Visualization and Image processing in details.
Answer
Computer graphics
Computer graphics is the creation, storage and manipulation of pictures and images using a computer. It covers modelling, rendering and display of objects, from simple 2D drawings to realistic 3D scenes.
Interactive graphics
The user can control the picture in real time using an input device such as a mouse, keyboard or touch screen, and the system responds immediately (two-way communication). Examples: video games, CAD systems, flight simulators, drawing programs.
Non-interactive (passive) graphics
The user has no control over the picture; the image is only viewed. Communication is one-way. Examples: a screensaver, a pre-recorded animation, static printed charts, title sequences.
Application in visualisation
Visualisation converts numerical or abstract data into pictures so patterns and trends can be seen easily. Uses:
- scientific visualisation of weather, fluid flow, molecules and earthquakes (colour-coded contours, vector fields);
- business and statistical graphs (bar, pie, line charts, dashboards);
- medical visualisation of 3D organs from CT/MRI scans;
- engineering/architectural walkthroughs and simulation;
- GIS maps and terrain models.
Application in image processing
Image processing improves or analyses existing images. Uses:
- image enhancement (brightness, contrast, sharpening) and noise removal;
- restoration of old or blurred photographs;
- medical diagnosis (X-ray, MRI, CT enhancement and tumour detection);
- satellite and remote sensing for land use, crops and disasters;
- pattern recognition: face and fingerprint recognition, OCR;
- compression and transmission of images and video;
- industrial inspection and robot vision.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Define CRT display. Compare and contrast beam penetration method and shadow mask method.
Answer
CRT display
A Cathode Ray Tube is a vacuum glass tube in which an electron gun (cathode, heater, control grid, focusing and accelerating anodes) emits a beam of electrons. Deflection coils steer the beam to points on the front screen, which is coated with phosphor; the phosphor glows when hit, producing the image. Because the glow fades quickly, the picture must be refreshed continuously.
Beam penetration vs shadow mask
| Beam penetration | Shadow mask |
|---|---|
| Used with random scan displays | Used with raster scan displays |
| Screen has two phosphor layers: red (outer) and green (inner) | Screen has dots/stripes of red, green and blue phosphors in triads |
| One electron gun; colour depends on beam speed (slow = red, fast = green, intermediate = yellow/orange) | Three electron guns (R, G, B) aimed through a perforated metal mask |
| Only about 4 colours | Millions of colours possible |
| Cheap | More expensive |
| Poor picture quality and colour | Better picture quality and resolution |
| Poor for realistic images | Used in colour TVs and monitors |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
Draw a circle of radius 7 units which is centred at (100,100) using mid-point circle algorithm.
Answer
Midpoint circle algorithm, , centre
Start at , . If : next , . Otherwise next , , (new ). Stop when .
| k | next | ||
|---|---|---|---|
| 0 | |||
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
Octant points relative to the centre: .
Translating by gives the first octant pixels:
Using 8-way symmetry, the first quadrant is completed with . The remaining quadrants follow by plotting for every relative point found above and its mirror , e.g. second quadrant gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Consider the given Right Angle Triangle ABC with vertices A(1,0) B(5,0), C(5,5).
i. Scale ABC by its double size at Origin
ii. Rotate it about Fixed point B(5,0) by .
Answer
Triangle , , .
(i) Scaling by 2 about the origin ()
(ii) Rotation by (anticlockwise) about
so .
For the original triangle ABC:
- (fixed point)
If the rotation is applied to the scaled triangle :
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
What is Bezier curve? Explain the various methods for generating non-planner surface?
Answer
Bezier curve
A Bezier curve is a parametric curve defined by a set of control points . It is generated by
Properties: it passes through the first and last control points, the tangent at the ends is along the first and last control segments, it lies within the convex hull of the control points, and the blending functions sum to 1. For (cubic):
Used in font design, CAD and animation paths.
Methods for generating non-planar (curved) surfaces
- Polygon mesh: the surface is approximated by many small planar polygons (triangles/quads).
- Quadric surfaces: defined by second-degree equations (sphere, ellipsoid, cylinder, cone, paraboloid), e.g. sphere .
- Bezier surface: a tensor product of two Bezier curves: with a grid of control points.
- B-spline surfaces: like Bezier but with local control of the shape.
- Sweep representations: translational sweep (extrusion) of a 2D shape along a path, and rotational sweep (surface of revolution) about an axis.
- Superquadrics, blobby objects (metaballs): generalised quadrics and organic shapes.
- Fractal methods: terrain, clouds and trees generated by recursive subdivision.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
Define lightning model and ambient light. Differentiate Phong shading and Gouraud shading method.
Answer
Lighting (illumination) model
A lighting model is a set of equations that computes the intensity/colour at a point on a surface from the light sources, surface properties and viewing direction. A basic model combines ambient, diffuse and specular reflection:
Ambient light
Ambient light is the uniform, non-directional background light coming from all directions after repeated reflection in the environment. It lights every surface equally, even those not facing a source, so no surface is completely black. Its contribution is , with the ambient coefficient and the ambient intensity.
Phong vs Gouraud shading
| Phong shading | Gouraud shading |
|---|---|
| Interpolates surface normals | Interpolates intensities |
| Lighting model applied at each pixel | Lighting model applied only at vertices |
| Slow, high computation | Fast, low computation |
| Correct specular highlights, even inside a polygon | Highlights may be lost or blurred |
| Smoother, less Mach banding | More visible Mach bands |
| More realistic | Less realistic |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 8 marks
What is Multimedia Product Development? Explain elements of multimedia with examples.
Answer
Multimedia product development
It is the process of planning and building a multimedia application. The usual stages are:
- Idea / analysis: identify the audience, objectives and requirements.
- Planning and costing: schedule, team, tools, budget.
- Design: structure, navigation, interface and storyboards.
- Production: create or collect text, graphics, audio, video and animation.
- Authoring / integration: combine elements and add interactivity with authoring tools.
- Testing: fix errors and check usability on target platforms.
- Delivery and maintenance: release on CD/DVD/web, then update and support.
Elements of multimedia
- Text: headings, captions, menus, documents (e.g. the content of an e-book).
- Graphics/images: photographs, drawings, icons, charts (e.g. map or logo in JPEG/PNG).
- Audio: speech, music and sound effects (e.g. narration in MP3 or WAV, MIDI music).
- Video: moving pictures with sound (e.g. a recorded lecture or a movie clip in MP4).
- Animation: moving drawings or models (e.g. a cartoon or an animated diagram of the heart).
- Interactivity: buttons, hyperlinks and menus that let the user control the content (e.g. a quiz or a game).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 7 marks
What is animation and video? Describe major broadcasting video standards.
Answer
Animation
Animation is creating the illusion of motion by displaying a sequence of still images, each slightly different, at a sufficient rate (persistence of vision), e.g. cartoons and 3D films.
Video
Video is the electronic capture, storage and playback of a sequence of images (frames) with synchronised sound, usually recorded from the real world with a camera. Analog video is stored as continuous signals; digital video is stored as sampled pixels and is usually compressed (MPEG, H.264). Quality depends on frame rate, resolution and colour depth.
Major broadcasting video standards
| Standard | Region | Lines | Frame rate | Colour encoding |
|---|---|---|---|---|
| NTSC (National Television System Committee) | USA, Canada, Japan | 525 (about 480 visible) | 30 fps (29.97) | YIQ |
| PAL (Phase Alternating Line) | Europe, Nepal, India, Australia | 625 (about 576 visible) | 25 fps | YUV |
| SECAM (Sequential Couleur avec Memoire) | France, parts of Africa and Eastern Europe | 625 | 25 fps | YDbDr |
All use interlaced scanning (two fields per frame). Digital and HD standards are ATSC (USA), DVB (Europe) and ISDB (Japan), supporting resolutions such as 720p, 1080i/p and 4K.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: Animation Principles
Answer
Animation principles
The twelve principles of animation (Disney animators Ollie Johnston and Frank Thomas) make movement look believable:
- Squash and stretch: shows weight and flexibility.
- Anticipation: preparation before the main action.
- Staging: presents the idea clearly.
- Straight-ahead action and pose-to-pose: two drawing methods.
- Follow-through and overlapping action: parts continue moving after the body stops.
- Slow in and slow out: more frames at start and end of motion.
- Arcs: natural motion follows curved paths.
- Secondary action: supports the main action.
- Timing: number of frames sets speed and mood.
- Exaggeration: increases impact.
- Solid drawing: gives volume and weight.
- Appeal: makes characters attractive and believable.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: Color Palette
Answer
Colour palette
A colour palette (colour look-up table, CLUT) is a table of the colours available to an image or display. In indexed-colour images each pixel stores a small index (e.g. 8 bits) pointing to an entry in the palette, where the actual RGB value (e.g. 24 bits) is stored, so only up to 256 colours are used but the file is small. For a -colour image the palette has 256 entries.
Types:
- System palette: fixed set of colours defined by the operating system.
- Web-safe palette: 216 colours that display consistently in all browsers.
- Adaptive/optimised palette: built from the colours actually used in the image.
- Custom palette: chosen by the designer.
Advantages: less memory and faster loading; changing a palette entry changes all pixels using it. Disadvantages: limited colours, dithering needed to simulate others. Used in GIF and 8-bit PNG/BMP.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2023 Spring · 5 marks
Write short notes on: MIDI vs. Digital Audio
Answer
MIDI vs digital audio
MIDI (Musical Instrument Digital Interface) is a protocol that stores music as instructions (note on/off, pitch, duration, velocity, instrument) rather than sound. It needs a synthesiser or sound card to play it.
Digital audio is sound recorded by sampling the analog waveform at regular intervals (sampling rate, e.g. 44.1 kHz) and quantising each sample (e.g. 16 bits). CD quality stereo needs about 10 MB per minute.
| MIDI | Digital audio |
|---|---|
| Stores commands | Stores sampled sound |
| Very small files | Large files |
| Quality depends on playback device | Quality same on any device |
| Easy to edit notes and instruments | Edited at waveform level |
| Cannot capture voice | Captures voice and any sound |
| Format .mid | Formats .wav, .mp3 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from PU BCA 2024 Spring Visual Programming (Pokhara University BCA, Spring 2024), PU BCA 2025 Spring Database Management System (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2025 Spring Database Management System (Old) (Pokhara University BCA, Spring 2025, old syllabus), PU BCA 2024 Spring Database Management System (Pokhara University BCA, Spring 2024), PU BCA 2025 Spring Computer Graphics and Multimedia Technology (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2025 Spring Computer Graphics and Multimedia Technology (Old) (Pokhara University BCA, Spring 2025, old syllabus), PU BCA 2024 Spring Computer Graphics and Multimedia Technology (Pokhara University BCA, Spring 2024), PU BCA 2023 Spring Computer Graphics and Multimedia (Pokhara University BCA, Spring 2023), PU BCA 2025 Spring Probability and Statistics (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2025 Spring Fundamentals of Probability and Statistics (Pokhara University BCA, Spring 2025), PU BCA 2024 Spring Fundamentals of Probability and Statistics (Pokhara University BCA, Spring 2024), PU BCA 2023 Spring Fundamentals of Probability and Statistics (Pokhara University BCA, Spring 2023), PU BCA 2025 Spring Software Engineering (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2025 Spring Software Engineering (Pokhara University BCA, Spring 2025), PU BCA 2024 Spring Software Engineering (Pokhara University BCA, Spring 2024), PU BCA 2023 Spring Software Engineering (Pokhara University BCA, Spring 2023), PU BCA 2022 Fall Software Engineering (Pokhara University BCA, Fall 2022), PU BCA 2021 Spring Software Engineering (Pokhara University BCA, Spring 2021), PU BCA 2025 Spring Web Technologies II (New) (Pokhara University BCA, Spring 2025, new syllabus), PU BCA 2025 Spring Web Technologies II (Pokhara University BCA, Spring 2025), PU BCA 2024 Spring Web Technologies II (Pokhara University BCA, Spring 2024) and PU BCA 2023 Spring Web Technologies II (Pokhara University BCA, Spring 2023). Answers are written for this site; check them against your class notes.