20.01.2015 Views

CS-184: Computer Graphics Today - Inst.eecs.berkeley.edu ...

CS-184: Computer Graphics Today - Inst.eecs.berkeley.edu ...

CS-184: Computer Graphics Today - Inst.eecs.berkeley.edu ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Bad Idea<br />

Simplest (and fastest)<br />

approach is to<br />

compute texture<br />

coordinates for<br />

polygon vertices and<br />

interpolate in screen<br />

space.<br />

This gives the image on<br />

the right.<br />

7<br />

7<br />

Undoing Homogenization<br />

Let P i = (x i ,y i ,z i ,h i ) be the i th point of some<br />

polygon, after projection, but before<br />

homogenization<br />

The homogenized point S i = P i /h is the<br />

location of on the screen.<br />

P i<br />

Let X be a point we wish to shade, we have<br />

its barycentric coordinates in screen space:<br />

X = ! b i S i<br />

i<br />

8<br />

8

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

Saved successfully!

Ooh no, something went wrong!