CS 455 Lecture 7 – Diffuse Lighting and Rotational Power
February 12, 2013 by Chris Johnson. Filed under cs455, lectures, spring 2013.
Before Class
Dot Product and Diffuse
Accumulating Transformations and Rotation++
In Class
- Implement a renderer that lets you spin a shaded cylinder (in cylinder.obj in W455). The cylinder is aligned with the Y axis and has a radius of 0.5. Like a sphere, its normals are derivable from its vertex positions. Think with your partner how they might be calculated, but call upon me if the answer doesn’t well up in your brain after a minute of thinking.
- If you have time, make your light source move. Here’s where you can make the sun orbit Earth.
Haiku
Darkness is scary
Not because of what it is
It’s that there’s no light
show