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

  1.  NAME:             backface
  2.  
  3.  CELL CONTENTS:
  4.      Each cell contains two facets.  Both facets are at the same
  5.      Z value.  Neither facet contains per-vertex or per-facet 
  6.      attributes.  HLHS_removal is always disabled.  The two facets
  7.      overlay.  The upper left of these facets occludes the lower
  8.      right one.  The upper left facet is front facing while the
  9.      lower right one is backfacing.  Within a cell all attributes 
  10.      are constant, however some attributes will affect the
  11.      frontfacing facet and others will affect the backfacing facet.
  12.      Of the 28 variations of this test the output primitive used to 
  13.      create the facet is:
  14.  
  15. |    (backface.v01 - backface.v04) use "Polygon" as the facets.
  16. |    (backface.v05 - backface.v08) use "Polygon3" as the facets.
  17. |    (backface.v09 - backface.v10) use "Fill_area_set" as the facets.
  18. |    (backface.v13 - backface.v16) use "Fill_area_set3" as the facets.
  19. |    (backface.v17 - backface.v20) use "Triangle3" as the facets.
  20. |    (backface.v21 - backface.v24) use "Quad_mesh3" as the facets.
  21. |    (backface.v25 - backface.v28) use "Index_polygon3" as the facets.
  22. |    (backface.v29 - backface.v32) use "Non_uniform_bspline_surface" as the facets.
  23.  
  24.  CELL LAYOUT:
  25.      Cells are arranged on the screen in a matrix of 5 rows and
  26.      6 columns.
  27.  
  28.  CONSTANTS:
  29.      Background_color        .3 .3 .8
  30.      Background_color_index        16
  31.      Edge_color             1  .8  .6 
  32.      Edge_color_index         17 
  33.      Interior_style            solid
  34.      HLHS_Removal            hlhs_disable
  35.      Edge_flag            enable
  36.      Edge_type            0
  37.      Edge_width            1
  38.      Interior_shading        1
  39.      Interior_lighting        1
  40.      Define_color %  i     red    green    blue             %
  41.                   8     1    0    0    % Red     %
  42.                   9     0    1    0    % Green  %
  43.                   10     0    0    1    % Blue     %
  44.                   11     1    1    0    % Yellow %
  45.                   12     0    1    1    % Cyan     %
  46.                   13     1    0    1    % Magenta%
  47.                   14     1    1    1    % White     %
  48.                   15     0    0    0    % Black     %
  49.                   16     0.3    0.3    0.8
  50.              17     1    0.8    0.6 
  51.  
  52.              20       0.00      0.00      1.00
  53.              21       0.25      0.00      0.75
  54.              22       0.50      0.00      0.50
  55.              23       0.75      0.00      0.25
  56.              24       1.00      0.00      0.00
  57.  
  58.              25       1.00      1.00     0.00
  59.              26       0.75      1.00     0.25
  60.              27       0.50      1.00      0.50
  61.              28       0.25      1.00      0.75
  62.              29       0.00      1.00      1.00
  63.  
  64.      Text_prec            Stroke
  65.      Char_exp            1
  66.      Char_height            30
  67.      Text_color            1 1 1
  68.      Text_color_index        14
  69.  
  70.  PER FILE VARIABLES:    ( See also Appendix B )
  71.      Devault_view_specification    parallel/perspective
  72.      Configuration            true_color/pseudo_color
  73.  
  74.  COLUMN VARIABLES:
  75.                      Column
  76.              1    2    3    4    5    6
  77.    Variable:          ____    ____    ____    ____    ____    ____ 
  78.    Backface_processing
  79.      identify_backface    0    0    0    1    1    1
  80.        (0=BACKFACE_IGNORE   ) 
  81.        (1=BACKFACE_IDENTIFY )
  82.      iculling        0    1    2    0    1    2
  83.        (0=CULL_NONE         )
  84.        (1=CULL_BACKFACE     )
  85.        (2=CULL_FRONTFACE    )
  86.    Call/Execute        Exec    Call    Exec    Call    Exec    Call
  87.  
  88.      
  89.  ROW VARIABLES:
  90.  
  91.    Row    Interior_color        Backface_interior_color
  92.  
  93.    1    0.00  0.00  1.00    1.00      1.00     0.00
  94.    2    0.25  0.00  0.75    0.75      1.00     0.25
  95.    3    0.50  0.00  0.50    0.50      1.00      0.50
  96.    4    0.75  0.00  0.25    0.25      1.00      0.75
  97.    5    1.00  0.00  0.00    0.00      1.00      1.00
  98.  
  99.    Row    Interior_color_index    Backface_interior_color_index
  100.  
  101.    1    20            25
  102.    2    21            26
  103.    3    22            27
  104.    4    23            28
  105.    5    24            29
  106.  
  107.  
  108.  ROW/COLUMN VARYING VARIABLES:
  109.      NONE
  110.  
  111.  COMMENTS ON PHOTOGRAPHS:
  112.  
  113.      *  Backface processing is being ignored in the photographs.
  114.          What you should see is depicted below:
  115.  
  116.    ______      ______      ______      ______      ______                
  117.    |     |__   |     |__   |     |__   |     |__   |     |        ______   
  118.    | 20  |  |  | 20  |  |  | 20  |  |  | 20  |  |  | 20  |        |     |  
  119.    |_____|20|  |_____|20|  |_____|20|  |_____|25|  |_____|        |   25|  
  120.       |_____|     |_____|     |_____|     |_____|                 |_____|  
  121.    ______      ______      ______      ______      ______                
  122.    |     |__   |     |__   |     |__   |     |__   |     |        ______   
  123.    | 21  |  |  | 21  |  |  | 21  |  |  | 21  |  |  | 21  |        |     |  
  124.    |_____|21|  |_____|21|  |_____|21|  |_____|26|  |_____|        |   26|  
  125.       |_____|     |_____|     |_____|     |_____|                 |_____|  
  126.    ______      ______      ______      ______      ______                
  127.    |     |__   |     |__   |     |__   |     |__   |     |        ______   
  128.    | 22  |  |  | 22  |  |  | 22  |  |  | 22  |  |  | 22  |        |     |  
  129.    |_____|22|  |_____|22|  |_____|22|  |_____|27|  |_____|        |   27|  
  130.       |_____|     |_____|     |_____|     |_____|                 |_____|  
  131.    ______      ______      ______      ______      ______                
  132.    |     |__   |     |__   |     |__   |     |__   |     |        ______   
  133.    | 23  |  |  | 23  |  |  | 23  |  |  | 23  |  |  | 23  |        |     |  
  134.    |_____|23|  |_____|23|  |_____|23|  |_____|28|  |_____|        |   28|  
  135.       |_____|     |_____|     |_____|     |_____|                 |_____|  
  136.    ______      ______      ______      ______      ______                
  137.    |     |__   |     |__   |     |__   |     |__   |     |        ______   
  138.    | 24  |  |  | 24  |  |  | 24  |  |  | 24  |  |  | 24  |        |     |  
  139.    |_____|24|  |_____|24|  |_____|24|  |_____|29|  |_____|        |   29|  
  140.       |_____|     |_____|     |_____|     |_____|                 |_____|  
  141.  
  142.  
  143.      The number indicates the color of the facet:
  144.  
  145.          index    red    green    blue
  146.          -----    -----    -----    -----
  147.          20    0.00    0.00    1.00    
  148.          21    0.25    0.00    0.75
  149.          22    0.50    0.00    0.50    
  150.          23    0.75    0.00    0.25
  151.          24    1.00    0.00    0.00
  152.          
  153.          25    1.00    1.00    0.00    
  154.          26    0.75    1.00    0.25
  155.          27    0.50    1.00    0.50    
  156.          28    0.25    1.00    0.75
  157.          29    0.00    1.00    1.00
  158.  
  159.      *  The text size (for the text at toe bottom of the screen )
  160.          was reduced from the size on the photograph.  Additional
  161.          information has been added to that text.
  162.