Depth sorting Flashcards

1
Q

What is Depth Sorting?

A

First draw the distant objects than the

closer objects. Pixels of each object overwrites the previous objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Depth sorting is also known as

A

painters algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is depth sort algorithm?

A
  • Sort all the polygons based on their farthest z -coordinate
  • Resolve ambiguities
  • Draw the polygons in order from back to front
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the complexity of the depth sort algorithm?

A

This algorithm would be very simple if the z coordinates of the
polygons were guaranteed never to overlap. Unfortunately that is
usually not the case, which means that step 2 can be somewhat
complex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When do ambiguities of two z extents arise?

A

Ambiguities arise when the Z extent of two surfaces overlap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The test’s in Depth Sort Algorithm

if any of this does the test fails

A

Do P and Q x’s and y’s overlap
Is P entirely on the opposite side of Q’s plane from the viewport?
Is Q entirely on the same side P’s plane as the viewport?
Do the projections P and Q onto the (x,y) not overlap?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What to do if all the tests fail?

A

Then reverse P and Q in the list of surfaces sorted by the maximum depth
Set a flag to say that the test has been performed
if the test fails a second time then it is necessary to split the surfaces and repeat the algorithm on the 4 new split surfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly