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

  1.  NAME:            depthcue
  2.  
  3.  CELL CONTENTS:
  4.      Each facet is constructed in the z=0 plane to the dimensions
  5.      shown below.  HLHS_Removal is enabled when this cell is drawn
  6.      in the first column (see CELL LAYOUT), and disabled when this
  7.      cell is drawn in the second column.  HLHS_Removal is then 
  8.      disabled and the line and text information is also constructed
  9.      in the z=0 plane.  This should cause them to be drawn on top 
  10.      of the facet with no z-buffer bleeding.  This cell is then 
  11.      scaled and translated into the correct position as described 
  12.      in CELL LAYOUT.  
  13.   
  14.          HLHS_Removal hlhs_disable ;
  15.  
  16.           -0.75x (begining of text and text3)
  17.           |
  18.           |
  19.      ____________________________    ____ +1 y  (top of facet)
  20.      |\                         /|
  21.      |  \                     /  |   ____ +0.9y (top of text3)
  22.      |    \                 /    |
  23.      |      \             /      |
  24.      |        \         /        |
  25.      |     This is a text3       |   ____ +0.1y (bottom of text3)
  26.      |            \ /            |
  27.      |            / \            |   ____ -0.1y (top of text)
  28.      |          /     \          |
  29.      |        /         \        |
  30.      |      /             \      |
  31.      |    /                 \    |
  32.      |  /  This is a text     \  |   ____ -0.9y (bottom of text)
  33.      |/_________________________\|   ____ -1 y  (bottom of facet)
  34.  
  35.      |                |
  36.      |                |
  37.      -1 x                +1 x
  38.  
  39.  
  40.  CELL LAYOUT:
  41.      Cells are arranged on the screen in two diagonal columns.  Each
  42.      column consists of 7 rows.  The primitive used to construct the
  43.      facet for each cell is listed below.  The cells in column 1
  44.      should appear to be depthcued correctly while the cells in
  45.      column 2 should appear to be depthcued backwards (this is because
  46.      HLHS_Removal is always disabled for this column.  Note that
  47.      perspective will also look funny for this column for the same
  48.      reason.  The cell in Column 1 Row 1 is the nearest.  The cell
  49.      in Column 2 Row 1 is the most distant.).
  50.  
  51.  
  52.    Column 1                                      Column 2
  53.  
  54.    ________                                      ________ 
  55.    |       |                                     |       |
  56.    |       |                                     |       |
  57.    |       |__                                ___|       |     : Row 1
  58.    |_______|  |                               |  |_______|
  59.       |       |                               |       |
  60.       |       |__                          ___|       |        : Row 2
  61.       |_______|  |                         |  |_______|
  62.          |       |                         |       |
  63.          |       |__                    ___|       |           : Row 3
  64.          |_______|  |                   |  |_______|
  65.             |       |                   |       |
  66.             |       |__              ___|       |              : Row 4
  67.             |_______|  |             |  |_______|
  68.                |       |             |       |
  69.                |       |__        ___|       |                 : Row 5
  70.                |_______|  |       |  |_______|
  71.                   |       |       |       |
  72.                   |       |__  ___|       |                    : Row 6
  73.                   |_______|  | |  |_______|
  74.                      |       | |       |
  75.                      |       | |       |                       : Row 7
  76.                      |_______| |_______|
  77.  
  78.  
  79.      Column 1 row 1:    uses "Polygon"         as the facets  z =    0.
  80.      Column 1 row 2:    uses "Polygon3"        as the facets  z =  -50.
  81.      Column 1 row 3:    uses "Fill_area_set"   as the facets  z = -100.
  82.      Column 1 row 4:    uses "Fill_area_set3"  as the facets  z = -150.
  83.      Column 1 row 5:    uses "Triangle3"       as the facets  z = -200.
  84.      Column 1 row 6:    uses "Quad_mesh3"      as the facets  z = -250.
  85.      Column 1 row 7:    uses "Index_polygon3"  as the facets  z = -300.
  86.  
  87.      Column 1 row 7:    uses "Polygon"         as the facets  z = -350.
  88.      Column 1 row 6:    uses "Polygon3"        as the facets  z = -400.
  89.      Column 1 row 5:    uses "Fill_area_set"   as the facets  z = -450.
  90.      Column 1 row 4:    uses "Fill_area_set3"  as the facets  z = -500.
  91.      Column 1 row 3:    uses "Triangle3"       as the facets  z = -550.
  92.      Column 1 row 2:    uses "Quad_mesh3"      as the facets  z = -600.
  93.      Column 1 row 1:    uses "Index_polygon3"  as the facets  z = -650.
  94.  
  95.  CONSTANTS:
  96.          Background_color   .1 .1 .3 
  97.      Interior_style solid 
  98.      Interior_color             1 1 1 
  99.      Backface_interior_color     1 1 1 
  100.      Interior_lighting         0 
  101.      Backface_processing         0 0     
  102.      Edge_flag             enable 
  103.      Edge_color             1 0 0 
  104.          Define_depthcue 
  105.                      1 Enable 
  106.                      {
  107.                              0.5  0.825 
  108.                               1  0
  109.                              .1 .1 .3 
  110.                      }
  111.      Depthcue_index             1 
  112.  
  113.      Text_prec             Stroke 
  114.      Char_exp             0.166 
  115.      Text_color             1 0 0 
  116.      Line_color             0 0 0
  117.      char_height             .80 
  118.      
  119.  PER FILE VARIABLES:
  120.      Default_view_specification    parallel/perspective
  121.  
  122.  RANDOM VARIABLES:
  123.      NONE
  124.  
  125.  COLUMN VARIABLES:
  126.                  Column
  127.              1            2
  128.    Variable:          ____            ____
  129.    HLHS_Removal     hlhs_enable        hlhs_disable
  130.      
  131.  ROW VARIABLES:
  132.      NONE
  133.  
  134.  ROW/COLUMN VARYING VARIABLES:
  135.      NONE
  136.  
  137.  COMMENTS ON PHOTOGRAPHS:
  138.  
  139.      *  Depthcue is malfunctioning in the photographs.
  140.          Column 1 Row 1 should have a white facet, black
  141.          lines, and red text.  This should fade toward the
  142.          background color until Column 2 Row 1 is all in
  143.          the background color and cannot be seen.
  144.  
  145.      *  Text is not being displayed.  See CELL CONTENTS for a
  146.          description of the text.
  147.  
  148.      *  The text size (for the text at toe bottom of the screen )
  149.          was reduced from the size on the photograph.  Additional
  150.          information has been added to that text.
  151.