Project 2b ©Jorg Peters

Points: 25+10 (+10 +5 BONUS)

Purpose

Learn hierarchical transformations and lighting

Task 4: Keyboard interaction

Points: 5+5+5+10

Moving the robot arm:

Indicate the selected part by drawing it in a brighter color.

Task 5: Light up the scene

Points: 10

  • Add two lights to the scene.
    For each light, supply position, diffuse color, ambient color and specular color.
    Position the lights near the camera so that one light comes from the left and another one from the right.
    You are free to choose any light colors and positions as long as the scene looks good.
  • Set diffuse and ambient material of the objects to the color of the object. Set specular as a multiple (eg one tenth) of the diffuse color.

    BONUS: Teleporting

    Points: 10

  • When s is pressed have a Platonic solid exit the tip of Arm2 with tangent equal to Arm2 and derivative in length equal to the length of Arm2.
  • The solid follows an arc according to Newton's law under gravity until it hits the grid. (Hint: use the BB-form of degree 2)
  • Animate the projectile and, on impact, move the robot arm to the impact location.

    BONUS: Picking

    Points: 5

    Implement picking for selecting the parts of the robot arm. Use your knowledge acquired in Project 1. You might also find the original tutorial on picking helpful.

    WHAT TO SUBMIT