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

  1.  NAME:            diffuse
  2.  
  3.  CELL CONTENTS:
  4.      Each cell contains two hemispheres.  One hemisphere is 
  5.      positioned to the lower left of the other.  The hemisphere to the
  6.      lower left partially occludes the other.  The radius of each 
  7.      hemisphere is 80.  The center of the sphears the hemispheres were 
  8.      cut from are positioned at 20, -20, 100 for the front (lower left) 
  9.      and -20, 20 -100 for the back (lower left).  The front hemisphere 
  10.      is constructed with frontfacing facets while the back hemisphere 
  11.      is constructed with backfacing facet (thier per-vertex/per_facet 
  12.      normals are given as back facing, but if calculated by the rules 
  13.      for each primitive they would be frontfacing.  Within a cell all 
  14.      attributes are constant, however some attributes will effect the 
  15.      frontfacing facet and others will effect the backfacing facet.
  16.  
  17.      Of the 10 variations of this test the output primitive used 
  18.      to create the facet is:
  19.  
  20. |    (diffuse.v01 - diffuse.v02) use "Polygon3" as the facets.
  21. |    (diffuse.v03 - diffuse.v04) use "Fill_area_set3" as the facets.
  22. |    (diffuse.v05 - diffuse.v06) use "Triangle3" as the facets.
  23. |    (diffuse.v07 - diffuse.v08) use "Quad_mesh3" as the facets.
  24. |    (diffuse.v09 - diffuse.v10) use "Index_polygon3" as the facets.
  25. |    (diffuse.v11 - diffuse.v12) use "Non_uniform_bspline_surface" as the facets.
  26.  
  27.  CELL LAYOUT:
  28.      Cells are arranged on the screen in a matrix of 4 rows and
  29.      4 columns.
  30.  
  31.  CONSTANTS:
  32.      Background_color           .3 .3 .8
  33.      Interior_style             solid
  34.      Interior_color             1.0 1.0 1.0
  35.      Backface_interior_color     1.0 1.0 1.0
  36.          % backface_identify but cull_none %
  37.      Backface_processing         1 0 ;    
  38.      Interior_lighting         3  (diffuse )
  39.      HLHS_Removal             hlhs_enable 
  40.      Edge_flag             disable
  41.      Text_prec            Stroke
  42.      Char_exp            1
  43.      Char_height            30
  44.      Text_color            1 1 1
  45.  
  46.        Surface_properties
  47.          % Ambient reflection coefficient    % 0.2
  48.          % Diffuse reflection coefficient    % VARIABLE
  49.          % Specular reflection coefficient   % 0.00
  50.          % Specularity true-color components % 0.0 0.0 0.0
  51.          % Specular exponent                 % 0.0
  52.          % Transparency coefficient          % 1.0
  53.  
  54.        Backface_properties
  55.          % Ambient reflection coefficient    % 0.2
  56.          % Diffuse reflection coefficient    % VARIABLE
  57.          % Specular reflection coefficient   % 0.00
  58.          % Specularity true-color components % 0.0 0.0 0.0
  59.          % Specular exponent                 % 0.0
  60.          % Transparency coefficient          % 1.0
  61.  
  62.     Define_light
  63.       % Index in light source table   %  1
  64.       % Light source color components %  1.0    0.0    0.0  % Red %
  65.       % Non-directional light source  %  Ambient_light
  66.      ;
  67.     Define_light
  68.       % Index in light source table   %  2
  69.       % Light source color components %  0.5    1.0    0.5  % Greenish %
  70.       % Directional     light source  %  Directional_light {
  71.       % Direction                     %  1      1     -1       }
  72.     ;
  73.     Define_light
  74.       % Index in light source table   %  3
  75.       % Light source color components %  0.5    0.5    1.0  % Bluish %
  76.       % Positional      light source  %  Positional_light {
  77.       % Position                      %  0      100    200
  78.       % Attenuation                   %  0.500  0.005          }
  79.     ;
  80.     Define_light
  81.       % Index in light source table   %  4
  82.       % Light source color components %  1.0    0.5    0.5
  83.       % Spot            light source  %  Spot_light      {
  84.       % Position                      %  0     -100    500
  85.       % Direction                     %  0      0      1
  86.       % Concentration                 %  10.00000
  87.       % Spread angle in radians       %  0.558505
  88.       % Attenuation                   %  1.000000    0.000000   }
  89.     ;
  90.  
  91.  PER FILE VARIABLES:
  92.      Default_view_specification    parallel/perspective
  93.  
  94.  RANDOM VARIABLES:
  95.    Interior_pattern_index ( interior_pattern_index should have no effect 
  96.                 since interior_style is fixed as solid )
  97.  
  98.  COLUMN VARIABLES:
  99.                  Column
  100.              1        2        3        4
  101.    Variable:          ____        ____    ____        ____
  102.    Interior_shading    1(FLAT)        2(GOURAUD)    3(DOT)        4(PHONG)
  103.    Surface_properties:  Diffuse reflection coeficient 
  104.                0        0.33    0.66        1
  105.    Backface_properties: Diffuse reflection coeficient 
  106.                1        0.66    0.33        0
  107.    Call/Execute        Exec        Call    Exec        Call
  108.      
  109.  
  110.  ROW VARIABLES:    
  111.  
  112.    Row        Light_state (those on )
  113.    1        2 (Directional_light    )
  114.    2        3 (Positional_light      )
  115.    3        4 (Spot_light        )
  116.    4        1,2,3,4 (Ambient_light & the other three )
  117.  
  118.  
  119.  ROW/COLUMN VARYING VARIABLES:
  120.  NONE
  121.  
  122.  COMMENTS ON PHOTOGRAPHS:
  123.  
  124.      *  Backface processing is being ignored in the photographs.  
  125.          What you should see is depicted below:
  126.          (Note: for rows 1,2 and 3 each hemispheres should have
  127.              only one light spot)
  128.  
  129.     _____             _____             _____             _____            
  130.    /   3 \ _____     /   2 \ _____     /   1 \ _____     /     \ _____     
  131.   /       /     \   /       /     \   /       /     \   /       /     \    
  132.   \      /       \  \      /       \  \      /       \  \      /       \   
  133.    \_____\       /   \_____\ 1     /   \_____\ 2     /   \_____\ 3     /   
  134.           \_____/           \_____/           \_____/           \_____/    
  135.     _____             _____             _____             _____            
  136.    /     \ _____     /     \ _____     /    1\ _____     /     \ _____     
  137.   /2      /     \   /2      /     \   /       /     \   /       /     \    
  138.   \      /       \  \      /       \  \      /       \  \      /       \   
  139.    \_____\       /   \_____\     2 /   \_____\3      /   \_____\2      /   
  140.           \_____/           \_____/           \_____/           \_____/    
  141.     _____             _____             _____             _____            
  142.    /     \ _____     /     \ _____     /     \ _____     /     \ _____     
  143.   /     1 /     \   /   3   /     \   /    2  /     \   /       /     \    
  144.   \      /       \  \      /       \  \      /       \  \      /       \   
  145.    \_____\       /   \_____\     2 /   \_____\2      /   \_____\       /   
  146.           \_____/           \_____/           \_____/           \_____/    
  147.     _____             _____             _____             _____            
  148.    /   3 \ _____     /   3 \ _____     /    2\ _____     /     \ _____     
  149.   /       /     \   /       /    1\   /       /2    \   /       /1    \    
  150.   \      /       \  \ 2    /       \  \1     /       \  \      /       \   
  151.    \1____\       /   \_____\ 1     /   \_____\ 2     /   \_____\ 3     /   
  152.           \_____/           \_____/           \_____/           \_____/    
  153.        
  154.  
  155.      Were the number indicates the locations and intensity of a white
  156.          diffuse highilght.  Intensity are listed below:
  157.  
  158.          number    intensity
  159.          -----    ---------
  160.          1    Dim
  161.          2    Brighter
  162.          3    Brightest
  163.  
  164.      *  The text size (for the text at toe bottom of the screen )
  165.          was reduced from the size on the photograph.  Additional
  166.          information has been added to that text.
  167.