1 / 24

Interaction and Animation

Interaction and Animation. 고려대학교 컴퓨터 그래픽스 연구실. 2D Polygon. Reshape. Result – Reshape. Animation – Rotating a Square. Four Vertices of the Square to Lie at Four Equally Spaced Points on a Circle. (-sin θ , cos θ ). (cos θ , sin θ ). (-cos θ , -sin θ ). (sin θ , -cos θ ). Class Wizard.

pello
Download Presentation

Interaction and Animation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Interaction and Animation 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr

  2. 2D Polygon kucg.korea.ac.kr

  3. Reshape kucg.korea.ac.kr

  4. Result – Reshape kucg.korea.ac.kr

  5. Animation – Rotating a Square • Four Vertices of the Square to Lie at Four Equally Spaced Points on a Circle (-sinθ, cosθ) (cosθ, sinθ) (-cosθ, -sinθ) (sinθ, -cosθ) kucg.korea.ac.kr

  6. Class Wizard kucg.korea.ac.kr

  7. New Variables kucg.korea.ac.kr

  8. Constructor kucg.korea.ac.kr

  9. OnCreate( ) kucg.korea.ac.kr

  10. OnSize( ) kucg.korea.ac.kr

  11. DrawScene( ) kucg.korea.ac.kr

  12. Math Header File kucg.korea.ac.kr

  13. OnTimer( ) kucg.korea.ac.kr

  14. Result – Rotating a Square kucg.korea.ac.kr

  15. Double Buffering (1/2) kucg.korea.ac.kr

  16. Double Buffering (2/2) kucg.korea.ac.kr

  17. Interaction by the Keyboard kucg.korea.ac.kr

  18. Key Event Handling kucg.korea.ac.kr

  19. Interaction by the Menu kucg.korea.ac.kr

  20. Resources – Menu (1/2) kucg.korea.ac.kr

  21. Resources – Menu (2/2) kucg.korea.ac.kr

  22. Class Wizard kucg.korea.ac.kr

  23. Callback Function kucg.korea.ac.kr

  24. Exercises • Rotate a square in the reverse direction if ‘R’ or ‘r’ is pressed • Change the color of square randomly whenever the left mouse button is clicked kucg.korea.ac.kr

More Related