Page 158 - DCAP313_LAB_ON_COMPUTER_GRAPHICS
P. 158

Lab on Computer Graphics



                   Notes           12.  Corrects meaning is the address of memory………………….
                                       (  a)  physical address.        (b)  bus address.
                                       (  c)  Both a and b             (d)  None of these.

                                   13.  A bilinear transformation can be simulated by the …………………
                                       (  a)  transformation, rotation and stretching

                                       (  b)  translation and rotation
                                       (  c)  rotation, stretching and inversion
                                       (  d)  rotation, stretching, inversion and translation.
                                   14.  What is the translating address?

                                       (  a)  Physical and virtual addresses   (b)  Bus address.
                                       (  c)  Physical address.        (d)  Virtual address.

                                   15.  What is address generator retrieves data from memory locations?
                                       (  a)  Memory locations.        (b)  Memory control unit
                                       (  c)  Bus address              (d)  None of these.

                                 9.6 Summary

                                    •  Translation is one of the simplest transformations. A translation moves all points of an
                                      object a fixed distance in a specified direction.
                                    •  Translation  is  a  simple  straight  line  movement  of  the  object  in  x  and  y  direction.
                                      Transformation is refer to transform from one position to another position depends upon
                                      their transformation.
                                    •  The  address  generator  retrieves  data  from  memory  locations  memory  access  request
                                      directly to a memory control unit.

                                    •  The bus address is exactly the same as the physical address, and things are very simple
                                      indeed.

                                 9.7 Keywords


                                 Bus Address: This is the address of memory as seen by other devices, not the CPU.
                                                                     
                                                                         , )
                                 Coordinates of Point: Given a frame F =  (, , wo  and a point P that has coordinates (u, v,
                                                                    uv
                                 w) in F, if we apply the transformation to the coordinates of the point.
                                 Matrix/Vector of the Translations: A translation can also be represented by a pair of numbers,
                                 t=(tx, ty) where tx is the change in the x-coordinate and ty is the change in y coordinate.
                                 Translation Matrix: This function takes as parameters a reference to the matrix that holds the
                                 current state of the transformation and the X and Y translation values.

                                 9.8 Review Questions


                                    1.  Write a C program in 2Dimensional of the translation.
                                    2.  Write a C program in 3Dimensional of the translation.




        152                               LOVELY PROFESSIONAL UNIVERSITY
   153   154   155   156   157   158   159   160   161   162   163