Page 148 - DCAP313_LAB_ON_COMPUTER_GRAPHICS
P. 148

Lab on Computer Graphics



                   Notes         Modelling Transformation: 2D transformations are used by the application for modeling
                                 transformations.
                                 Object: We scale an object by scaling the x and y coordinates of each vertex in the object.
                                 Scale: It is changing the size of an object.
                                 Scaling: It does not preserve angles between parts of objects (except when scaling is uniform x=sy).

                                 Transformations: These are used to position objects, to shape objects, to change viewing positions,
                                 and even to change how something is viewed.

                                 8.5 Review Questions


                                    1.  What are the points and edges in this picture of a house?
                                    2.  What are the transformations is required to move this house so that the peak of the roof
                                      is at the origin?
                                    3.  What are the different functions of transformation?
                                    4.  What is required to move the house as shown in animation?

                                    5.  Write a C program to implement 2D transformations.
                                    6.  Describe the transformation between translation and scale.
                                    7.  Define the 2D scaling from the origin.
                                    8.  What are the properties of scaling?

                                    9.  Discuss the scaling about a Particular Point.
                                   10.  Discuss the Homogeneous form of scale.

                                 Answers for Self Assessment Questions
                                     1.  (c)    2.  (a)       3.  (b)     4.  (c)         5.  (a)
                                     6.  mathematical         7.  virtual  8.  translate  9.  lengths
                                    10.  house  11.  window/model        12.   x and y coordinates

                                    13.  size   14.  homogeneous coordinates  15.   **

                                 8.6 Further Readings



                                                 “Computer Graphics”, by Steven Harington

                                                “Principles of Interactive Computer Graphics”, by Newman and Sproull
                                                “Computer Graphics”, by A.P. Godse



                                                http://web.iitd.ac.in/~achawla/public_html/429/transformations/2d-
                                                transformations.pdf










        142                               LOVELY PROFESSIONAL UNIVERSITY
   143   144   145   146   147   148   149   150   151   152   153