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

  1.  NAME:            transp
  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 spheres 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 (their 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. |    (transp.v01 - transp.v02) use "Polygon3" as the facets.
  21. |    (transp.v03 - transp.v04) use "Fill_area_set3" as the facets.
  22. |    (transp.v05 - transp.v06) use "Triangle3" as the facets.
  23. |    (transp.v07 - transp.v08) use "Quad_mesh3" as the facets.
  24. |    (transp.v09 - transp.v10) use "Index_polygon3" as the facets.
  25. |    (transp.v11 - transp.v12) use "Non_uniform_bspline_surface" as the facets.
  26.  
  27.  CELL LAYOUT:
  28.      Cells are arranged on the screen in a marix 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.      HLHS_Removal             hlhs_enable 
  39.      Edge_flag             disable
  40.      Text_prec            Stroke
  41.      Char_exp            1
  42.      Char_height            30
  43.      Text_color            1 1 1
  44.  
  45.        Surface_properties
  46.          % Ambient reflection coefficient    % 0.4
  47.          % Diffuse reflection coefficient    % 0.25
  48.          % Specular reflection coefficient   % 1.00
  49.          % Specularity true-color components % 0.0 0.0 1.0
  50.          % Specular exponent                 % 8.0
  51.          % Transparency coefficient          % VARIABLE
  52.  
  53.        Backface_properties
  54.          % Ambient reflection coefficient    % 0.4
  55.          % Diffuse reflection coefficient    % 0.25
  56.          % Specular reflection coefficient   % 1.00
  57.          % Specularity true-color components % 0.0 0.0 1.0
  58.          % Specular exponent                 % 8.0
  59.          % Transparency coefficient          % VARIABLE
  60.  
  61.     Define_light
  62.       % Index in light source table   %  1
  63.       % Light source color components %  1.0    0.0    0.0  % Red %
  64.       % Non-directional light source  %  Ambient_light
  65.      ;
  66.     Define_light
  67.       % Index in light source table   %  2
  68.       % Light source color components %  0.5    1.0    0.5  % Greenish %
  69.       % Directional     light source  %  Directional_light {
  70.       % Direction                     %  1      1     -1       }
  71.     ;
  72.     Define_light
  73.       % Index in light source table   %  3
  74.       % Light source color components %  0.5    0.5    1.0  % Bluish %
  75.       % Positional      light source  %  Positional_light {
  76.       % Position                      %  0      100    200
  77.       % Attenuation                   %  0.500  0.005          }
  78.     ;
  79.     Define_light
  80.       % Index in light source table   %  4
  81.       % Light source color components %  1.0    0.5    0.5
  82.       % Spot            light source  %  Spot_light      {
  83.       % Position                      %  0     -100    500
  84.       % Direction                     %  0      0      1
  85.       % Concentration                 %  10.00000
  86.       % Spread angle in radians       %  0.558505
  87.       % Attenuation                   %  1.000000    0.000000   }
  88.     ;
  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 fiexd 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.    Call/Execute        Exec        Call    Exec        Call
  104.      
  105.  
  106.  ROW VARIABLES:    
  107.  
  108.    Row        Light_state (those on )        Interior_lighting
  109.    1        2 (Directional_light    )    2    (Gouraud)
  110.    2        3 (Positional_light      )    3    (Dot)
  111.    3        4 (Spot_light        )    4    (Phong)
  112.    4        1,2,3,4 (Ambient_light &    4    (Phong)
  113.                           the other three )
  114.  
  115.  
  116.  ROW/COLUMN VARYING VARIABLES:
  117.    Surface_properties:  Transparency reflection coefficient 
  118.          Column 1:   Column 2:   Column 3:   Column 4:
  119.    Row 1:    1.000000    0.866667    0.733333    0.600000
  120.    Row 2:    0.866667    0.733333    0.600000    0.466667
  121.    Row 3:    0.733333    0.600000    0.466667    0.333333
  122.    Row 4:    0.600000    0.466667    0.333333    0.200000
  123.  
  124.    Backface_properties: Transparency reflection coefficient 
  125.          Column 1:   Column 2:   Column 3:   Column 4:
  126.    Row 1:    0.200000    0.333333    0.466667    0.600000
  127.    Row 2:    0.333333    0.466667    0.600000    0.733333
  128.    Row 3:    0.466667    0.600000    0.733333    0.866667
  129.    Row 4:    0.600000    0.733333    0.866667    1.000000
  130.  
  131.  COMMENTS ON PHOTOGRAPHS:
  132.  
  133.      *  Transparency is being ignored in the photographs.
  134.          Transparency values for front and backfacing polygons
  135.          are given above (Note 1.0 means totally opaque while
  136.          0.2 means mostly transparent).
  137.        
  138.      *  The text size (for the text at toe bottom of the screen )
  139.          was reduced from the size on the photograph.  Additional
  140.          information has been added to that text.
  141.