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

  1.  NAME:            ambient
  2.  
  3.  CELL CONTENTS:
  4.      Each cell contains two facets.  Neither facet contains
  5.      per-vertex or per-facet attributes.  Both facets are at the 
  6.      same Z value.  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 effect the
  11.      frontfacing facet and others will effect the backfacing facet.
  12.  
  13.      Of the 14 variations of this test the output primitive used 
  14.      to create the facet is:
  15.  
  16. |    (ambient.v01 - ambient.v02) use "Polygon" as the facets.
  17. |    (ambient.v03 - ambient.v04) use "Polygon3" as the facets.
  18. |    (ambient.v05 - ambient.v06) use "Fill_area_set" as the facets.
  19. |    (ambient.v07 - ambient.v08) use "Fill_area_set3" as the facets.
  20. |    (ambient.v09 - ambient.v10) use "Triangle3" as the facets.
  21. |    (ambient.v11 - ambient.v12) use "Quad_mesh3" as the facets.
  22. |    (ambient.v13 - ambient.v14) use "Index_polygon3" as the facets.
  23. |    (ambient.v15 - ambient.v16) use "Non_uniform_bspline_surface" as the facets.
  24.  
  25.  CELL LAYOUT:
  26.      Cells are arranged on the screen in a matrix of 3 rows and
  27.      4 columns.
  28.  
  29.  CONSTANTS:
  30.      Background_color           .3 .3 .8
  31.      Interior_style             solid
  32.      Interior_color             1.0 1.0 1.0
  33.      Backface_interior_color     1.0 1.0 1.0
  34.      Interior_lighting         2  (ambient)
  35.      HLHS_Removal            hlhs_disable
  36.      Edge_flag             enable
  37.      Edge_type             0
  38.      Edge_color             1.0 0.8 0.6
  39.      Text_prec            Stroke
  40.      Char_exp            1
  41.      Char_height            30
  42.      Text_color            1 1 1
  43.  
  44.        Surface_properties
  45.          % Ambient reflection coefficient    % VARIABLE
  46.          % Diffuse reflection coefficient    % 0.00
  47.          % Specular reflection coefficient   % 0.00
  48.          % Specularity true-color components % 0.0 0.0 0.0
  49.          % Specular exponent                 % 0.0
  50.          % Transparency coefficient          % 1.0
  51.  
  52.        Backface_properties
  53.          % Ambient reflection coefficient    % VARIABLE
  54.          % Diffuse reflection coefficient    % 0.00
  55.          % Specular reflection coefficient   % 0.00
  56.          % Specularity true-color components % 0.0 0.0 0.0
  57.          % Specular exponent                 % 0.0
  58.          % Transparency coefficient          % 1.0
  59.  
  60.      Define_light
  61.        % Index in light source table   % 1
  62.        % Light source color components % 1.0   1.0   1.0
  63.        % Non-directional light source  % Ambient_light
  64.       ; 
  65.      Define_light
  66.        % Index in light source table   % 2
  67.        % Light source color components % 1.0   0.66  0.66
  68.        % Non-directional light source  % Ambient_light
  69.       ; 
  70.      Define_light
  71.        % Index in light source table   % 3
  72.        % Light source color components % 1.0   0.33  0.33
  73.        % Non-directional light source  % Ambient_light
  74.       ; 
  75.      Define_light
  76.        % Index in light source table   % 4
  77.        % Light source color components % 1.0   0.0   0.0
  78.        % Non-directional light source  % Ambient_light
  79.       ; 
  80.  
  81.  PER FILE VARIABLES:
  82.      Default_view_specification    parallel/perspective
  83.  
  84.  COLUMN VARIABLES:
  85.                  Column
  86.              1        2        3        4
  87.    Variable:          ____        ____    ____        ____
  88.    Interior_shading    1(FLAT)        2(GOURAUD)    3(DOT)        4(PHONG)
  89.      (should have no effect)
  90.    Call/Execute        Exec        Call    Exec        Call
  91.  
  92.  
  93.      
  94.  ROW VARIABLES:    Backface_processing
  95.          identify_backface
  96.  
  97.    1        1 (BACKFACE_IDENTIFY)
  98.    2        2 (BACKFACE_IGNORE  )
  99.    3        1 (BACKFACE_IDENTIFY)
  100.  
  101.  
  102.  ROW/COLUMN VARING VARIABLES:
  103.  
  104.    Backface_processing: iculling
  105.          Column 1:    Cloumn 2:   Column 3:   Column 4:
  106.    Row 1:    0         0         0         0
  107.    Row 2:    1         2         0         1 (should have)
  108.    Row 3:    0         0         0         0 (no effect)
  109.  
  110.    Surface_properties: Ambient reflection coeficient 
  111.          Column 1:    Cloumn 2:   Column 3:   Column 4:
  112.    Row 1:    0.00         0.25     0.75         1.00
  113.    Row 2:    0.00         0.25     0.75         1.00
  114.    Row 3:    1.00         1.00     1.00         1.00
  115.  
  116.    Backface_properties: Ambient reflection coeficient 
  117.          Column 1:    Cloumn 2:   Column 3:   Column 4:
  118.    Row 1:    1.00         0.75    0.25         0.00
  119.    Row 2:    1.00         0.75    0.25         0.00
  120.    Row 3:    0.50         0.50    0.50         0.50
  121.  
  122.    Light_state:  Active light
  123.          Column 1:    Cloumn 2:   Column 3:   Column 4:
  124.    Row 1:    1         1         1         1
  125.    Row 2:    1         1         1         1
  126.    Row 3:    4         3         2         1
  127.  
  128.  
  129.  COMMENTS ON PHOTOGRAPHS:
  130.  
  131.      *  Backface processing is being ignored in the photographs.
  132.          What you should see is depicted below:
  133.  
  134.    ________        ________        ________        ________      
  135.    |       |____   |       |____   |       |____   |       |____ 
  136.    |   0   |    |  |   1   |    |  |   2   |    |  |   3   |    |
  137.    |       | 3  |  |       | 2  |  |       | 1  |  |       | 0  |
  138.    |_______|    |  |_______|    |  |_______|    |  |_______|    |
  139.         |_______|       |_______|       |_______|       |_______|
  140.    ________        ________        ________        ________      
  141.    |       |____   |       |____   |       |____   |       |____ 
  142.    |   0   |    |  |   1   |    |  |   2   |    |  |   3   |    |
  143.    |       | 0  |  |       | 1  |  |       | 2  |  |       | 3  |
  144.    |_______|    |  |_______|    |  |_______|    |  |_______|    |
  145.         |_______|       |_______|       |_______|       |_______|
  146.    ________        ________        ________        ________      
  147.    |       |____   |       |____   |       |____   |       |____ 
  148.    |  R1   |    |  |  R2   |    |  |  R3   |    |  |   3   |    |
  149.    |       |R1.5|  |       |R2.5|  |       |R3.5|  |       |R4.5|
  150.    |_______|    |  |_______|    |  |_______|    |  |_______|    |
  151.         |_______|       |_______|       |_______|       |_______|
  152.        
  153.    
  154.      Were the number indicates the color of the facet:
  155.  
  156.          index    red    green    blue
  157.          -----    -----    -----    -----
  158.          0    0.00    0.00    0.00
  159.          1    0.25    0.25    0.25
  160.          2    0.50    0.50    0.50
  161.          3    1.00    1.00    1.00
  162.  
  163.          R1    1.00    0.00    0.00
  164.          R2    1.00    0.33    0.33
  165.          R3    1.00    0.66    0.66
  166.  
  167.          R1.5    0.50    0.00    0.00
  168.          R2.5    0.50    0.16    0.16
  169.          R3.5    0.50    0.33    0.33
  170.          R4.5    0.50    0.50    0.50
  171.  
  172.      *  The text size (for the text at toe bottom of the screen )
  173.          was reduced from the size on the photograph.  Additional
  174.          information has been added to that text.
  175.