How wide is the dark side of a cylinder and where do I stop the shadow?

Cylinder is the same idea as the sphere, just straight.

  1. Top faces the light, so its the brightest.
  2. The side toward the light gets light.
  3. The side away from the light is the darkest.
  4. Mid tone goes in between.

How wide the dark band is depends on where your light is. Light more from the side, wider dark band. Light more from the front, thinner dark band. Pick it once and keep it the same for every object in the scene.

The top is an ellipse. The closer it is to eye level, the flatter it gets. The further above or below eye level, the rounder it gets.

Rocks in lecture 44 are built the same way: ellipse on top, cylinder sides.

In the course

  • Lecture 28: Shading and Lighting a Cylinder
  • Lecture 30: Shading and Lighting a Cone
  • Lecture 44: Rock On! Crafting Pixel-Perfect Rocks

Related questions