24. Translation & Rotation II

  • 18 views
Uploaded on

 

More in: Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
18
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. From last time… • Briefly saw recursion! • Drew arbitrary shapes with beginShape(), vertex(), and endShape() • Saw lots of methods that simulate 3D:! ! translate() and rotate()! ! pushMatrix() and popMatrix()
  • 2. git/GithubPro Git, Scott Chacon! http://git-scm.com/book
  • 3. –Former Co-Worker “Unless you have a hacksaw or a screwdriver, you can’t break anything…”
  • 4. CAP Translation &! Rotation II
  • 5. Rotation & Scaling • ‘Simple’ rotation (rotate()) implies 2D rotation, i.e. rotating around the z-axis! • rotateX() // around the x axis • rotateY() // around the y axis • rotateZ() // around the z axis • scale()
  • 6. Demo! Square Rotation
  • 7. Learning Processing, p. 246 “A nice rule of thumb… is to use pushMatrix() and popMatrix() before and after translation and rotation for all shapes so that they can be treated as individual entities.”
  • 8. Demo! Guilty Pleasure https://www.youtube.com/watch?v=Eje28TK4D00
  • 9. For next time… • Read Shiffman, pp. 255–264, Images I