Rasterisation 1

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

1/18

flashcard set

Earn XP

Description and Tags

Learn about the basics of rasterisation!

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

object based 1

loop over all objects and vertices to transform them to pixels

2
New cards

object-based 2

works well with pipelined architectures but needs large amounts of memory

3
New cards

object-based 3

struggles to model interactions between objects like reflections, these need to be approximated or fudged

4
New cards

image based 1

loop over all pixels to determine what objects affect their value

5
New cards

image based 2

common for global illumination models

6
New cards

result of each fragment belonging to one primitive

there can be many fragments per pixel. some of them will occlude others so we need to decide which determines the pixel colour (z buffer)

7
New cards

dda

digital differential analyser

8
New cards

when do we use the modified dda algorithm?

where |m| > 1

9
New cards

what do we do in the modified dda algorithm?

swap x and y - advance vertically one pixel at a time, calculate the change in x and round to the nearest pixel

10
New cards

motivation for Bresenham’s algorithm

dda is efficient but requires floating point addition, bresenham uses only integer operations

11
New cards

what two assumptions do we make with bresenham’s

pixel centers are halfway between integers, 0 <= m <= 1

12
New cards

given 0 <= m <= 1, what pixels do we need to consider

exactly to the right of the current pixel, and the pixel above that

13
New cards

removing bresenham floating point arithmetic step 1

change our increment to delta y

14
New cards

removing bresenham floating point arithmetic step 2

multiply by 2 to avoid comparing to 0.5

15
New cards

removing bresenham floating point arithmetic step 3

compare to 0 instead of 1

16
New cards

removing bresenham floating point arithmetic step 4

update d and y when d >= 0

17
New cards

odd even test

counts number of crossings of polygon edges - points with an even number are inside

18
New cards

when is odd even test not ideal?

self-intersecting polygons

19
New cards

winding number test

how many times a point is encircled, or, if following the edges from point p, how many full turns are needed. increase for anti-clockwise, decrease for clockwise. a point is considered inside if the winding number is non zero