YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Swivel Light Control - Interactive 3D Graphics

Get Embed Code
2 Languages

Showing Revision 2 created 05/25/2016 by Udacity Robot.

  1. In this exercise, you'll start with a directional light pointing at the back of
  2. the bird. It doesn't look very good. I want you to hook up a slider to the
  3. light. Use the slider to vary the light's x and z direction by the cosine and
  4. sine of the angle. In other words, x is related to cosine, z is related to
  5. sine. And by the way, save your solution. You'll reuse it in the next exercise.
  6. When you've got the code running, the program should look like this as you vary
  7. the angle. Also don't forget the cosine and sine want to be fed radians, not
  8. degrees.