NZ - Digital Technology NCEA Year 13 Computer Graphics External Exam Notes

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/76

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

77 Terms

1
New cards

What are bitmap graphics?

Bitmap graphics (raster graphics) are images composed of a grid of tiny squares called pixels, where each pixel has a specific color and position, forming the complete image.

2
New cards

What is a pixel?

A pixel is a tiny square in a bitmap image, short for "picture element," representing a single color at a specific position.

3
New cards

How is the quality of a bitmap image measured?

By its resolution, measured in pixels per inch (PPI) or dots per inch (DPI). Higher resolution means more pixels and sharper images.

4
New cards

Name common bitmap file formats.

JPEG, PNG, GIF, BMP, TIFF.

5
New cards

What are the pros of bitmap graphics?

  • Ideal for photographs, detailed textures, and complex images with many colors

  • Widely supported across software and devices

  • Easy to edit pixel-by-pixel for fine adjustments (e.g., photo retouching)

6
New cards

What are the cons of bitmap graphics?

  • Loses quality when scaled up (pixelation)

  • Large file sizes for high-resolution images

  • Not suitable for logos or graphics that need to scale to different sizes

7
New cards

Give examples of bitmap graphics usage.

  • Digital photography (portraits, landscapes)

  • Textured artwork (digital paintings)

  • Web images (banners, thumbnails)

8
New cards

What are vector graphics?

Vector graphics are images created using mathematical equations, lines, curves, and shapes, rather than defining individual pixels.

9
New cards

How do vector graphics differ from bitmap graphics?

Vector graphics scale infinitely without losing quality, because they are based on mathematical formulas, whereas bitmaps depend on pixels and resolution.

10
New cards

What are vectors in vector graphics?

Points, lines, and curves defined by mathematical formulas that form an image’s geometry.

11
New cards

Name a common file format for vector graphics.

SVG (Scalable Vector Graphics).

12
New cards

What are the pros of vector graphics?

  • Perfect for logos, icons, and scalable illustrations

  • Small file sizes for simple designs

  • Easy to edit shapes, colors, and paths with precision

13
New cards

What are the cons of vector graphics?

  • Not suitable for complex images like photographs

  • Requires vector-compatible software (e.g., Adobe Illustrator)

  • Can be time-consuming to create intricate designs

14
New cards

Give examples of vector graphics usage.

Logos, icons, typography, and scalable illustrations.

15
New cards

What is a matrix in computer graphics?

A matrix is a rectangular array of numbers arranged in rows and columns, used to represent transformations of objects in 2D or 3D space.

16
New cards

Why do we use matrices in graphics?

They provide a mathematical way to efficiently transform objects (move, scale, rotate) and allow multiple transformations to be combined into a single matrix.

17
New cards

What matrix sizes are commonly used in 2D and 3D graphics?

2D: 2x2 or 3x3 matrices; 3D: 4x4 matrices.

18
New cards

How are matrices used differently in vector vs bitmap graphics?

Vector: Transformations manipulate paths directly, maintaining quality.
Bitmap: Transformations adjust pixel coordinates, which can cause pixelation when scaling or rotating.

19
New cards

What types of transformations are commonly applied using matrices?

Translation (moving), scaling (resizing), and rotation (turning).

20
New cards

What is translation in graphics?

Translation moves an object by shifting its coordinates by a distance (tx, ty) along the x and y axes.

21
New cards

How is translation represented as a 3x3 matrix using homogeneous coordinates?

[ 1 0 tx ]

[ 0 1 ty ]

[ 0 0 1 ]

22
New cards

Example: Translate the point (2,3) by tx=4 and ty=1. What is the new coordinate?

(6, 4) after using the translation matrix and homogeneous coordinates (2,3,1).

23
New cards

What is the shortcut for simple translation?

Simply add tx to x and ty to y (e.g., 2+4, 3+1). This only works for translation.

24
New cards

What is scaling in graphics?

Scaling changes the size of an object by multiplying its coordinates by scale factors (sx, sy).

25
New cards

How is scaling represented as a 3x3 matrix?

[ sx 0 0 ]

[ 0 sy 0 ]

[ 0 0 1 ]

26
New cards

Example: Scale the point (4,5) by sx=3 and sy=2. New coordinate?

(12, 10)

27
New cards

What is rotation in graphics?

Rotation shifts a point around the origin by an angle θ. The transformation involves trigonometric functions (sin and cos).

28
New cards

How is rotation represented as a 3x3 matrix?

[ cosθ -sinθ 0 ]

[ sinθ cosθ 0 ]

[ 0 0 1 ]

29
New cards

What are homogeneous coordinates and why are they used?

Homogeneous coordinates add an extra coordinate (usually 1) to simplify matrix multiplication for translation, scaling, and rotation.

30
New cards

What is the general rule for all matrix transformations in graphics?

Matrix multiplication follows the same pattern for translation, scaling, and rotation. Always multiply the transformation matrix by the point in homogeneous coordinates.

31
New cards

Why is drawing lines on a computer screen important in graphics?

Lines are fundamental for shapes, game visuals, and rendering vector designs on a pixel-based screen.

32
New cards

How are lines represented on a screen?

Screens use a pixel grid (bitmap), so drawing a line involves selecting pixels to approximate a continuous path between points.

33
New cards

What is rasterization?

Rasterization is the process of converting shapes or vector paths into pixels on a grid so they can be displayed on a screen.

34
New cards

What is Bresenham’s Line Algorithm?

An efficient method to draw straight lines on a pixel grid by selecting pixels closest to the true line between two points. Developed by Jack Bresenham in 1962.

35
New cards

Applications of Bresenham’s Line Algorithm?

- Computer graphics (games, CAD, UI)

  • Vector-to-bitmap conversion (PDFs, SVGs)

  • Embedded systems (low-power or resource-constrained devices)

36
New cards

Pros of Bresenham’s Line Algorithm?

- Efficient: uses integer arithmetic

  • Accurate: selects pixels closest to the true line

  • Simple to implement

  • Versatile: extends to circles and other shapes

37
New cards

Cons of Bresenham’s Line Algorithm?

- Limited to bitmaps

  • Slope restrictions (needs adjustment for steep lines)

  • No anti-aliasing by default (can produce jagged edges)

38
New cards

Why not just use y = mx + c for lines on a screen?

- Screens use a pixel grid, only integer coordinates can be plotted

  • y = mx + c gives decimals, requiring rounding, which causes gaps or inaccuracies

  • Floating-point calculations are slower; Bresenham uses integer arithmetic

39
New cards

What is the Midpoint Circle Algorithm?

An efficient method to draw circles on a pixel grid by selecting pixels closest to the circle’s edge. Similar in approach to Bresenham’s Line Algorithm.

40
New cards

How does Bresenham’s Midpoint Circle Algorithm work?

- Uses integer arithmetic to minimize error

  • Computes one octant (1/8 of the circle) and mirrors pixels to the other seven octants using symmetry

41
New cards

Pros of Bresenham’s Midpoint Circle Algorithm?

- Efficient (integer math)

  • Accurate (closest pixels to circle edge)

  • Simple to code

  • Symmetry reduces calculations

42
New cards

Cons of Bresenham’s Midpoint Circle Algorithm?

- Bitmap-specific (not for vector curves)

  • Produces slightly jagged circles without anti-aliasing

  • Only works for circles; ellipses need modified algorithms

43
New cards

What is anti-aliasing in graphics?

A technique used to smooth jagged edges on a pixel grid by blending edge pixels with the background.

44
New cards

Why is anti-aliasing needed?

- Pixels are square, so diagonal or curved lines appear “staircased”

  • Anti-aliasing softens these jagged edges to make lines look continuous

45
New cards

How does anti-aliasing work?

- Adjusts pixel color intensity based on coverage

  • Partially covered pixels are blended with line color and background

  • Common methods: supersampling, multisampling

46
New cards

Difference between bitmap and vector graphics regarding anti-aliasing?

Bitmap: anti-aliasing is crucial to smooth pixel edges
Vector: inherently smooth due to mathematical curves

47
New cards

What is image rendering in computer graphics?

The process of creating a visual image from a digital model or scene by turning data like shapes, colors, and lighting into pixels on a screen.

48
New cards

Where is image rendering used?

- Games

  • Movies

  • Digital displays
    It produces 2D images from 2D or 3D descriptions.

49
New cards

How can rendering be thought of?

Like the computer "drawing" a picture, deciding the color of each pixel based on objects, their positions, and light effects.

50
New cards

What is rasterization?

A fast method that converts shapes (lines, triangles) into pixels on a bitmap grid, projecting objects onto the screen and coloring pixels based on simple lighting and textures.

51
New cards

Which algorithms are commonly used in rasterization?

- Bresenham’s Line Algorithm (lines)

  • Midpoint Circle Algorithm (circles)

52
New cards

Pros and details of rasterization?

- Quick and efficient

  • Suitable for real-time applications (games)

  • Struggles with realistic lighting (reflections, shadows)

  • Produces jagged edges without anti-aliasing

53
New cards

What is ray tracing?

A realistic rendering method that traces light rays from the camera through each pixel, calculating interactions with objects (e.g., reflections and shadows).

54
New cards

Common algorithm used in ray tracing?

Whitted Ray Tracing – traces rays for reflections, refractions, and shadows.

55
New cards

Pros and details of ray tracing?

- Produces photorealistic images

  • Accurate lighting and realistic shadows/reflections

  • Slow, used in films or high-end games

  • Enhances realism but less common for simple bitmap tasks

56
New cards

Key difference between rasterization and ray tracing?

Rasterization is fast but less realistic; ray tracing is slow but produces photorealistic results.

57
New cards

Why is rasterization preferred in games?

Because it is quick, efficient, and suitable for real-time rendering, even though it approximates lighting and shadows.

58
New cards

Why is ray tracing used in films or high-end graphics?

It provides realistic lighting, shadows, and reflections for photorealistic visuals, even though it is computationally intensive.

59
New cards

What is lighting in computer graphics?

Lighting determines how light sources affect an object’s appearance, defining its color and brightness on a pixel grid.

60
New cards

Name the three main types of lighting in graphics.

- Ambient lighting

  • Diffuse lighting

  • Specular lighting

61
New cards

What is ambient lighting?

Uniform, non-directional light that illuminates all objects equally, providing baseline brightness and preventing areas from being completely dark.

62
New cards

How is ambient lighting applied in rendering?

It’s a simple constant added to pixel colors, used in both rasterization and ray tracing.

63
New cards

What is diffuse lighting?

Light that scatters evenly across a surface, with intensity depending on the angle between the light source and the surface’s normal, creating realistic shading.

64
New cards

How is diffuse lighting calculated?

Using Lambert’s cosine law to determine brightness based on the angle of incidence.

65
New cards

How is diffuse lighting implemented in rasterisation vs ray tracing?

- Rasterisation: computed per pixel for speed

  • Ray tracing: traced more precisely, accounting for exact light angles and global illumination

66
New cards

What is specular lighting?

Shiny highlights on reflective surfaces, depending on the light source, surface normal, and viewer position.

67
New cards

Which shading model is commonly used for specular lighting?

Phong shading – intensity peaks when reflected light aligns with the viewer’s perspective.

68
New cards

How is specular lighting handled in rasterisation vs ray tracing?

- Rasterisation: approximates highlights for speed

  • Ray tracing: accurately simulates reflections by tracing light rays

69
New cards

Name some lighting effects in graphics.

- Soft shadows

  • Global illumination

  • Caustics

  • Ambient occlusion

70
New cards

How do lighting effects differ between rasterisation and ray tracing?

- Ray tracing: naturally produces realistic effects

  • Rasterisation: approximates effects using shadow maps and other shortcuts

71
New cards

What are shadows in computer graphics?

Dark areas created when objects block light, adding depth and realism to a scene.

72
New cards

How are shadows implemented in rasterisation vs ray tracing?

- Rasterisation: shadow maps (fast but less precise, may need anti-aliasing)

  • Ray tracing: accurate shadows with soft or hard edges depending on light type

73
New cards

How do shadows affect bitmap rendering?

They interact with textures and lighting, requiring pixel color adjustments and careful computation to avoid visual artifacts.

74
New cards

What are reflections in computer graphics?

Simulations of light bouncing off surfaces, adding realism by showing mirrored or distorted images.

75
New cards

Types of reflections and examples of surfaces:

- Specular: mirrored images, polished mirrors, calm water

  • Imperfect specular: shiny but blurred/distorted, varnished wood, rippled water

  • Diffuse: scattered light, rough surfaces like stone, paper, clothing

76
New cards

How are reflections handled in rasterisation vs ray tracing?

- Ray tracing: accurately traces rays for realistic specular and imperfect reflections

  • Rasterisation: uses environment maps (precomputed textures) for faster but less precise reflections

77
New cards

Why are lighting, shadows, and reflections important in graphics?

They make scenes more lifelike, enhance realism in textures and objects, and are used heavily in films and games for visual impact.