Cartoon rendering

Hi there, I'm a C++ beginner, missed a lot of labs and lectures (not my fault, honestly) and well I have an assignment to hand in next week. I've done most of it however, I need a bit of help/point in the right direction with a certain area.

I've been asked to implement a cartoon texture on to this skull thing. The part I'm stuck with is where the assignment says "Set the View and Normal Vector" and "Normalise the view vector" What exactly am I supposed to do? :S
1
2
3
4
5
6
7
8
9
//for every facet
proyection = dot( normal.normalize(), light.normalize() )
if proyection > alpha 
   coef = 0.9
else if proyection > beta
   coef = 0.6
else
   coef = 0.3
value = coef*color
Last edited on
Topic archived. No new replies allowed.