home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / tests / matrix.DOC < prev    next >
Encoding:
Text File  |  1991-02-13  |  6.9 KB  |  187 lines

  1.  NAME:            matrix
  2.  
  3.  CELL CONTENTS:
  4.      Each cell consists of two cell components.  There are a total
  5.      of 8 possible cell components stored as BIF objects.  Each cell 
  6.      component is scaled, rotated, and/or translated into place to 
  7.      form the cell.  Each cell is then transformed to create the 
  8.      layout.  In this process All the BIF matrix primitives are 
  9.      exercised.
  10.  
  11.      The cell components are shown below:
  12.  
  13.          x= -1    x = +1
  14.      |        |
  15.      _________   __ y= +2
  16.      |        |                x= -1              x= +2
  17.      |        |                |                  |
  18.      |        |                ___________________   __ y= +1
  19.      |        |                |                  |
  20.      |        | object 1       |                  |  object 2
  21.      |        |                |                  |
  22.      |        |                |                  |
  23.      |________|  __ y= -1      |__________________|  __ y= -1
  24.  
  25.  
  26.  
  27.  
  28.          x= -1    x=  0     x= +1             x= 0   x= +1
  29.      |        |         |                 |      |
  30.               .           __ y= +1                 __ y= +1
  31.              / \                          |\
  32.            /     \                        | \
  33.          /         \ object 3             |  \  object 4
  34.        /             \                    |   \
  35.      /_________________\  __ y= 0         |    >   -- y= 0
  36.                                            |   /
  37.                                           |  /
  38.                                           | /
  39.                                           |/        __ y= -1
  40.  
  41.  
  42.          y= -1    y = +1
  43.      |        |
  44.      _________   __ z= +2
  45.      |        |                y= -1              y= +2
  46.      |        |                |                  |
  47.      |        |                ___________________   __ z= +1
  48.      |        |                |                  |
  49.      |        | object 5       |                  |  object 6
  50.      |        |                |                  |
  51.      |        |                |                  |
  52.      |________|  __ z= -1      |__________________|  __ z= -1
  53.  
  54.  
  55.  
  56.  
  57.          y= -1    y=  0     y= +1             y= 0   y= +1
  58.      |        |         |                 |      |
  59.               .           __ z= +1                 __ z= +1
  60.              / \                          |\
  61.            /     \                        | \
  62.          /         \ object 7             |  \  object 8
  63.        /             \                    |   \
  64.      /_________________\  __ z= 0         |    >   -- z= 0
  65.                                            |   /
  66.                                           |  /
  67.                                           | /
  68.                                           |/        __ z= -1
  69.  
  70.      Objects 1,2,3,and 4 are constructed with the "Polygon" primitive.
  71.      Objects 5,6,7,and 8 are constructed with the "Polygon3" primitive.
  72.  
  73.  
  74.  CELL LAYOUT:
  75.      Cells are arranged in 4 rows and 4 columns and should look
  76.      like 16 identical white arrows pointing up.
  77.  
  78.  
  79.  CONSTANTS:
  80.      HLHS_Removal         hlhs_enable 
  81.      Background_color           .1 .1 .3 
  82.      Backface_interior_color     1.0 1.0 1.0 
  83.      Interior_shading         1 
  84.      Interior_lighting         1 
  85.      Backface_processing     0 0 
  86.      Interior_style         solid 
  87.      Interior_color          .8 .8 .8 
  88.      Edge_flag             disabled 
  89.  
  90.      Text_prec             Stroke 
  91.      Char_exp             1 
  92.      Text_color             1 1 1 
  93.      char_height         30 
  94.      
  95.  PER FILE VARIABLES:
  96.      NONE
  97.  
  98.  RANDOM VARIABLES:
  99.      NONE
  100.  
  101.  COLUMN VARIABLES:
  102.      NONE
  103.      
  104.  ROW VARIABLES:
  105.      NONE
  106.  
  107.  ROW/COLUMN VARYING VARIABLES:
  108.  
  109.         /\            /\            /\            /\
  110.        /  \          /  \          /  \          /  \
  111.       / 17 \        / 14 \        / 13 \        / 14 \
  112.      /______\      /______\      /______\      /______\
  113.           ____          ____          ____          ____
  114.        |  |          |  |          |  |          |  |
  115.        |  |          |  |          |  |          |  |
  116.        |11|          |12|          |11|          |12|
  117.        |  |          |  |          |  |          |  |
  118.        |__|          |__|          |__|          |__|
  119.  
  120.  
  121.         /\            /\            /\            /\
  122.        /  \          /  \          /  \          /  \
  123.       / 18 \        / 13 \        / 17 \        / 18 \
  124.      /______\      /______\      /______\      /______\
  125.           ____          ____          ____          ____
  126.        |  |          |  |          |  |          |  |
  127.        |  |          |  |          |  |          |  |
  128.        |15|          |16|          |15|          |16|
  129.        |  |          |  |          |  |          |  |
  130.        |__|          |__|          |__|          |__|
  131.  
  132.  
  133.         /\            /\            /\            /\
  134.        /  \          /  \          /  \          /  \
  135.       / 17 \        / 14 \        / 13 \        / 14 \
  136.      /______\      /______\      /______\      /______\
  137.           ____          ____          ____          ____
  138.        |  |          |  |          |  |          |  |
  139.        |  |          |  |          |  |          |  |
  140.        |11|          |12|          |11|          |12|
  141.        |  |          |  |          |  |          |  |
  142.        |__|          |__|          |__|          |__|
  143.  
  144.  
  145.         /\            /\            /\            /\
  146.        /  \          /  \          /  \          /  \
  147.       / 18 \        / 13 \        / 17 \        / 18 \
  148.      /______\      /______\      /______\      /______\
  149.           ____          ____          ____          ____
  150.        |  |          |  |          |  |          |  |
  151.        |  |          |  |          |  |          |  |
  152.        |15|          |16|          |15|          |16|
  153.        |  |          |  |          |  |          |  |
  154.        |__|          |__|          |__|          |__|
  155.  
  156.  
  157.                  | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 
  158.      ------------------------+----+----+----+----+----+----+----+----+
  159.      Identity3        | X  | X  | X  | X  | X  | X  | X  | X  | 
  160.      Concat_matrix3        | X  | X  | X  | X  | X  | X  | X  | X  | 
  161.      Invert_matrix3        |    |    |    |    | X  |    |    |    | 
  162.      ------------------------+----+----+----+----+----+----+----+----+
  163.      Rotate3            |    | X  |    | X  | X  | X  | X  | X  | 
  164.      Rotate_xyz3        |    |    |    |    | X  | X  |    |    | 
  165.      Translate3        | X  | X  |    |    | X  | X  |    |    | 
  166.      ------------------------+----+----+----+----+----+----+----+----+
  167.      Scale3            | X  | X  |    | X  | X  | X  | X  | X  | 
  168.      Matrix3            |    |    | X  |    |    |    |    |    | 
  169.      Get_matrix3        |    |    | X  | X  |    |    |    |    | 
  170.      ------------------------+----+----+----+----+----+----+----+----+
  171.      Push_matrix3        | X  | X  | X  | X  | X  | X  | X  | X  | 
  172.      Pop_matrix3        | X  | X  | X  | X  | X  | X  | X  | X  | 
  173.      Global_Transformation3    |    |    |    |    |    |    |    | X  | 
  174.      ------------------------+----+----+----+----+----+----+----+----+
  175.      Local_transformation3    |    |    |    |    |    |    |    | X  | 
  176.      Apply_to_global3    | X  | X  | X  | X  | X  | X  | X  | X  | 
  177.      Apply_to_local3        | X  | X  | X  | X  | X  | X  | X  | X  | 
  178.      ------------------------+----+----+----+----+----+----+----+----+
  179.  
  180.  COMMENTS ON PHOTOGRAPHS:
  181.  
  182.      *  Looks just right.
  183.  
  184.      *  The text size (for the text at toe bottom of the screen )
  185.          was reduced from the size on the photograph.  Additional
  186.          information has been added to that text.
  187.