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

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

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

Barycentric Coordinates<br />

X<br />

can be expressed as<br />

!P 1 + "P 2 + #P 3<br />

where<br />

! + " + # = 1<br />

or, alternatively as<br />

X<br />

P 1<br />

P 2<br />

P 3<br />

(1 − ! − ")P 1 + !P 2 + "P 3<br />

5<br />

5<br />

Barycentric Coordinates<br />

We can use barycentric<br />

coordinates to interpolate<br />

any quantity (color,<br />

texture coordinates, etc)<br />

stored at vertices, not just<br />

positions.<br />

X<br />

P 1<br />

P 2<br />

P 3<br />

6<br />

6

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

Saved successfully!

Ooh no, something went wrong!