05.06.2015 Views

quake's hidden-surface removal

quake's hidden-surface removal

quake's hidden-surface removal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

polygon A<br />

I I I I I I<br />

spans<br />

1 x = 22, y = 0, count = o I<br />

I x=22,v= 1,count=0<br />

I x=21.v=2,count=1 I<br />

I x = 20. v = 3. count = 2<br />

I<br />

I<br />

A and B composited<br />

visible spans<br />

A: x = 20, y = 0, count = 0 B: x = 22, y = 0, count = 0<br />

I , , , , ,<br />

A:x=20,y=l,count=l<br />

Ax=19,y=2,count=2<br />

B:x=22,y=l,count=O<br />

B:x=21,y=2,count=l<br />

Two sets of spans sorted and clipped against one another:<br />

Figure 66.2<br />

1 21 6 Chapter 66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!