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

  1.  NAME:            specular
  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. |    (specular.v01 - specular.v02) use "Polygon3" as the facets.
  21. |    (specular.v03 - specular.v04) use "Fill_area_set3" as the facets.
  22. |    (specular.v05 - specular.v06) use "Triangle3" as the facets.
  23. |    (specular.v07 - specular.v08) use "Quad_mesh3" as the facets.
  24. |    (specular.v09 - specular.v10) use "Index_polygon3" as the facets.
  25. |    (specular.v11 - specular.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.      Backface_processing 1 0 ;    % backface_identify but cull_none %
  33.      Background_color           .3 .3 .8
  34.      Interior_style             solid
  35.      Interior_color             1.0 1.0 1.0
  36.      Backface_interior_color     1.0 1.0 1.0
  37.          % backface_identify but cull_none %
  38.          Backface_processing         1 0 ;    
  39.      Interior_lighting         4    (Specular)
  40.          HLHS_Removal             hlhs_enable 
  41.      Edge_flag             disable
  42.      Text_prec            Stroke
  43.      Char_exp            1
  44.      Char_height            30
  45.      Text_color            1 1 1
  46.  
  47.        Surface_properties
  48.          % Ambient reflection coefficient    % 0.2
  49.          % Diffuse reflection coefficient    % 0.25
  50.          % Specular reflection coefficient   % VARIABLE
  51.          % Specularity true-color components % 0 0 1
  52.          % Specular exponent                 % 8
  53.          % Transparency coefficient          % 1.0
  54.  
  55.        Backface_properties
  56.          % Ambient reflection coefficient    % 0.2
  57.          % Diffuse reflection coefficient    % 0.25
  58.          % Specular reflection coefficient   % VARIABLE
  59.          % Specularity true-color components % 0 0 1
  60.          % Specular exponent                 % 8
  61.          % Transparency coefficient          % 1.0
  62.  
  63.     Define_light
  64.       % Index in light source table   %  1
  65.       % Light source color components %  1.0    0.0    0.0  % Red %
  66.       % Non-directional light source  %  Ambient_light
  67.      ;
  68.     Define_light
  69.       % Index in light source table   %  2
  70.       % Light source color components %  0.5    1.0    0.5  % Greenish %
  71.       % Directional     light source  %  Directional_light {
  72.       % Direction                     %  1      1     -1       }
  73.     ;
  74.     Define_light
  75.       % Index in light source table   %  3
  76.       % Light source color components %  0.5    0.5    1.0  % Bluish %
  77.       % Positional      light source  %  Positional_light {
  78.       % Position                      %  0      100    200
  79.       % Attenuation                   %  0.500  0.005          }
  80.     ;
  81.     Define_light
  82.       % Index in light source table   %  4
  83.       % Light source color components %  1.0    0.5    0.5
  84.       % Spot            light source  %  Spot_light      {
  85.       % Position                      %  0     -100    500
  86.       % Direction                     %  0      0      1
  87.       % Concentration                 %  10.00000
  88.       % Spread angle in radians       %  0.558505
  89.       % Attenuation                   %  1.000000    0.000000   }
  90.     ;
  91.  
  92.  PER FILE VARIABLES:
  93.      Default_view_specification    parallel/perspective
  94.  
  95.  RANDOM VARIABLES:
  96.    Interior_pattern_index ( interior_pattern_index should have no effect 
  97.                 since interior_style is fiexd as solid )
  98.  
  99.  COLUMN VARIABLES:
  100.                  Column
  101.              1        2        3        4
  102.    Variable:          ____        ____    ____        ____
  103.    Interior_shading    1(FLAT)        2(GOURAUD)    3(DOT)        4(PHONG)
  104.    Surface_properties:  Specular reflection coeficient 
  105.                0        0.33    0.66        1
  106.    Backface_properties: Specular reflection coeficient 
  107.                1        0.66    0.33        0
  108.    Call/Execute        Exec        Call    Exec        Call
  109.      
  110.  
  111.  ROW VARIABLES:    
  112.  
  113.    Row        Light_state (those on )
  114.    1        2 (Directional_light    )
  115.    2        3 (Positional_light      )
  116.    3        4 (Spot_light        )
  117.    4        1,2,3,4 (Ambient_light & the other three )
  118.  
  119.  
  120.  ROW/COLUMN VARYING VARIABLES:
  121.  NONE
  122.  
  123.  COMMENTS ON PHOTOGRAPHS:
  124.  
  125.      *  Backface processing and specular highlights are being ignored 
  126.          in the photographs.  What you should see is depicted
  127.          below:
  128.  
  129.     _____             _____             _____             _____            
  130.    /     \ _____     /     \ _____     /     \ _____     /     \ _____     
  131.   /     3 /     \   /     2 /     \   /     1 /     \   /       /     \    
  132.   \      /       \  \      /       \  \      /       \  \      /       \   
  133.    \_____\       /   \_____\ 1     /   \_____\ 2     /   \_____\ 3     /   
  134.           \_____/           \_____/           \_____/           \_____/    
  135.     _____             _____             _____             _____            
  136.    /     \ _____     /     \ _____     /     \ _____     /     \ _____     
  137.   /  3    /     \   /  2    /     \   /   1   /     \   /       /     \    
  138.   \      /       \  \      /       \  \      /       \  \      /       \   
  139.    \_____\       /   \_____\    1  /   \_____\ 2     /   \_____\3      /   
  140.           \_____/           \_____/           \_____/           \_____/    
  141.     _____             _____             _____             _____            
  142.    /     \ _____     /     \ _____     /     \ _____     /     \ _____     
  143.   /       /     \   /       /     \   /       /     \   /       /     \    
  144.   \      /       \  \      /       \  \      /       \  \      /       \   
  145.    \_____\       /   \_____\       /   \_____\       /   \_____\       /   
  146.           \_____/           \_____/           \_____/           \_____/    
  147.     _____             _____             _____             _____            
  148.    /   3 \ _____     /   2 \ _____     /   1 \ _____     /     \ _____     
  149.   /       /     \   /       /    1\   /       /2    \   /       /     \    
  150.   \      /       \  \  2   /       \  \    1 /       \  \      /3      \   
  151.    \3____\       /   \_____\       /   \_____\ 2     /   \_____\ 3     /   
  152.           \_____/           \_____/           \_____/           \_____/    
  153.        
  154.    
  155.      Were the number indicates the locations and intensity of a blue
  156.          specular highlight.  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.