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

  1. %
  2. /*--------------------------------------------------------------------*\
  3. |
  4. |   Copyright (c)1989,1990,1991 National Computer Graphics Association
  5. |
  6. |       Permission is granted to any individual or instititution 
  7. |  to use, copy, or redistribute this software so long as it is not
  8. |    sold for profit, provided this copyright notice is retained.
  9. |
  10. |                         Developed for the
  11. |               National Computer Graphics Association
  12. |                        2722 Merrilee Drive
  13. |                         Fairfax, VA  22031
  14. |                           (703) 698-9600
  15. |
  16. |                                 by
  17. |                SimGraphics Engineering Corporation
  18. |                   1137 Huntington Drive, Suite A
  19. |                      South Pasadena, CA  91030
  20. |                           (213) 255-0900
  21. |---------------------------------------------------------------------
  22. |
  23. | Author    :    SimGraphics Engineering Corporation
  24. | File          :    backface.v26
  25. | Date          :    Tue Jul 10 16:43:18 PDT 1990
  26. | Project       :    Picture Level Benchmark
  27. | Description    :    See backface.doc
  28. | Status    :    Version 1.02
  29. | Revisions     :    1.01: Apply_to_global3 removed from data file 
  30. |            and moved to inside test loop.  This eased
  31. |            problems for PHIGS ports.
  32. |
  33. |            1.02:
  34. |            Files backface.d02 backface.d03 backface.d04
  35. |            have been replaced with file backface.d01
  36. |
  37. |            Files backface.d06 backface.d07 backface.d08
  38. |            have been replaced with file backface.d05
  39. |
  40. |            Files backface.d10 backface.d11 backface.d12
  41. |            have been replaced with file backface.d09
  42. |
  43. |            Files backface.d14 backface.d15 backface.d16
  44. |            have been replaced with file backface.d13
  45. |
  46. |            Files backface.d18 backface.d19 backface.d20
  47. |            have been replaced with file backface.d17
  48. |
  49. |            Files backface.d22 backface.d23 backface.d24
  50. |            have been replaced with file backface.d21
  51. |
  52. |            Files backface.d26 backface.d27 backface.d28
  53. |            have been replaced with file backface.d2r5
  54. |
  55. \*--------------------------------------------------------------------*/
  56. %
  57.  
  58.     Configuration rgb double_buffer true_color;
  59.     Read_geometry_file "backface.d25";
  60.     Specify_report_file "backface.r26";
  61.     Default_view_specification  1  500 perspective;
  62.     Active_view  1  ; 
  63.  
  64. % *********************************************************************** % 
  65. % Set up static attributes                                                %
  66. % *********************************************************************** % 
  67.     Text_prec Stroke ;
  68.     Char_exp  1 ;
  69.     char_height  30 ;
  70.     Interior_style solid ;
  71.     Edge_flag enable ;
  72.     Edge_type  0 ;
  73.     Edge_width  1 ;
  74.     Interior_shading  1 ;
  75.     Interior_lighting  1 ;
  76.  
  77.     Background_color    0.300000   0.300000   0.800000 ;
  78.     Edge_color          1   0.800000   0.600000 ;
  79.     Text_color         1    1    1 ;
  80.  
  81.  
  82.     Identity3  0  ; 
  83.     Identity3  1  ; 
  84.     Apply_to_global3  1  ; 
  85.     Identity3  2  ; 
  86.     % Set Initial position  %
  87.     Translate3  0  -416.660004   416.660004  0 Postconcat  ; 
  88.     % Set Column offset     %
  89.     Translate3  1   166.660004     0     0 Postconcat  ; 
  90.     % Set Row offset        %
  91.     Translate3  2     0     -166.660004  0 Postconcat  ; 
  92.     % Push Initial position %
  93.     Push_matrix3  ;                 
  94.  
  95. % *********************************************************************** % 
  96. %                                                                         % 
  97. %                                                                         % 
  98. %                           Begin Test Loop                               % 
  99. %                                                                         % 
  100. % *********************************************************************** % 
  101. Begin_test  1  ; 
  102.     Text3  -450  -450  0 "Backface Test: IPOLY true perspective";
  103.     Text3  -450  -495  0 "backface.v26";
  104.  
  105. % *********************************************************************** % 
  106. %                           Row 1 Column 1                                %
  107. % *********************************************************************** %
  108.   HLHS_Removal hlhs_disable;
  109.   Interior_color  0.000000 0.000000 1.000000;
  110.   Backface_interior_color  1.000000 1.000000 0.000000;
  111.  
  112.   Backface_processing  0   0;
  113.  
  114.   Apply_to_global3  0  ; 
  115.   Execute_structure 20  ; 
  116.   
  117.  
  118. % *********************************************************************** % 
  119. %                           Row 1 Column 2                                %
  120. % *********************************************************************** %
  121.   HLHS_Removal hlhs_enable;
  122.   Interior_color  0.000000 0.000000 1.000000;
  123.   Backface_interior_color  1.000000 1.000000 0.000000;
  124.  
  125.   Backface_processing  0   1;
  126.  
  127.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  128.   Apply_to_global3  0  ; 
  129.   Call_structure 20  ; 
  130.   
  131.  
  132. % *********************************************************************** % 
  133. %                           Row 1 Column 3                                %
  134. % *********************************************************************** %
  135.   HLHS_Removal hlhs_disable;
  136.   Interior_color  0.000000 0.000000 1.000000;
  137.   Backface_interior_color  1.000000 1.000000 0.000000;
  138.  
  139.   Backface_processing  0   2;
  140.  
  141.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  142.   Apply_to_global3  0  ; 
  143.   Execute_structure 20  ; 
  144.   
  145.  
  146. % *********************************************************************** % 
  147. %                           Row 1 Column 4                                %
  148. % *********************************************************************** %
  149.   HLHS_Removal hlhs_enable;
  150.   Interior_color  0.000000 0.000000 1.000000;
  151.   Backface_interior_color  1.000000 1.000000 0.000000;
  152.  
  153.   Backface_processing  1   0;
  154.  
  155.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  156.   Apply_to_global3  0  ; 
  157.   Call_structure 20  ; 
  158.   
  159.  
  160. % *********************************************************************** % 
  161. %                           Row 1 Column 5                                %
  162. % *********************************************************************** %
  163.   HLHS_Removal hlhs_disable;
  164.   Interior_color  0.000000 0.000000 1.000000;
  165.   Backface_interior_color  1.000000 1.000000 0.000000;
  166.  
  167.   Backface_processing  1   1;
  168.  
  169.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  170.   Apply_to_global3  0  ; 
  171.   Execute_structure 20  ; 
  172.   
  173.  
  174. % *********************************************************************** % 
  175. %                           Row 1 Column 6                                %
  176. % *********************************************************************** %
  177.   HLHS_Removal hlhs_enable;
  178.   Interior_color  0.000000 0.000000 1.000000;
  179.   Backface_interior_color  1.000000 1.000000 0.000000;
  180.  
  181.   Backface_processing  1   2;
  182.  
  183.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  184.   Apply_to_global3  0  ; 
  185.   Call_structure 20  ; 
  186.   
  187.  
  188. % *********************************************************************** % 
  189. %                           Row 2 Column 1                                %
  190. % *********************************************************************** %
  191.   HLHS_Removal hlhs_disable;
  192.   Interior_color  0.250000 0.000000 0.750000;
  193.   Backface_interior_color  0.750000 1.000000 0.250000;
  194.  
  195.   Backface_processing  0   0;
  196.  
  197.   Pop_matrix3  ; 
  198.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  199.   Push_matrix3  ; 
  200.   Apply_to_global3  0  ; 
  201.   Execute_structure 20  ; 
  202.   
  203.  
  204. % *********************************************************************** % 
  205. %                           Row 2 Column 2                                %
  206. % *********************************************************************** %
  207.   HLHS_Removal hlhs_enable;
  208.   Interior_color  0.250000 0.000000 0.750000;
  209.   Backface_interior_color  0.750000 1.000000 0.250000;
  210.  
  211.   Backface_processing  0   1;
  212.  
  213.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  214.   Apply_to_global3  0  ; 
  215.   Call_structure 20  ; 
  216.   
  217.  
  218. % *********************************************************************** % 
  219. %                           Row 2 Column 3                                %
  220. % *********************************************************************** %
  221.   HLHS_Removal hlhs_disable;
  222.   Interior_color  0.250000 0.000000 0.750000;
  223.   Backface_interior_color  0.750000 1.000000 0.250000;
  224.  
  225.   Backface_processing  0   2;
  226.  
  227.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  228.   Apply_to_global3  0  ; 
  229.   Execute_structure 20  ; 
  230.   
  231.  
  232. % *********************************************************************** % 
  233. %                           Row 2 Column 4                                %
  234. % *********************************************************************** %
  235.   HLHS_Removal hlhs_enable;
  236.   Interior_color  0.250000 0.000000 0.750000;
  237.   Backface_interior_color  0.750000 1.000000 0.250000;
  238.  
  239.   Backface_processing  1   0;
  240.  
  241.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  242.   Apply_to_global3  0  ; 
  243.   Call_structure 20  ; 
  244.   
  245.  
  246. % *********************************************************************** % 
  247. %                           Row 2 Column 5                                %
  248. % *********************************************************************** %
  249.   HLHS_Removal hlhs_disable;
  250.   Interior_color  0.250000 0.000000 0.750000;
  251.   Backface_interior_color  0.750000 1.000000 0.250000;
  252.  
  253.   Backface_processing  1   1;
  254.  
  255.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  256.   Apply_to_global3  0  ; 
  257.   Execute_structure 20  ; 
  258.   
  259.  
  260. % *********************************************************************** % 
  261. %                           Row 2 Column 6                                %
  262. % *********************************************************************** %
  263.   HLHS_Removal hlhs_enable;
  264.   Interior_color  0.250000 0.000000 0.750000;
  265.   Backface_interior_color  0.750000 1.000000 0.250000;
  266.  
  267.   Backface_processing  1   2;
  268.  
  269.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  270.   Apply_to_global3  0  ; 
  271.   Call_structure 20  ; 
  272.   
  273.  
  274. % *********************************************************************** % 
  275. %                           Row 3 Column 1                                %
  276. % *********************************************************************** %
  277.   HLHS_Removal hlhs_disable;
  278.   Interior_color  0.500000 0.000000 0.500000;
  279.   Backface_interior_color  0.500000 1.000000 0.500000;
  280.  
  281.   Backface_processing  0   0;
  282.  
  283.   Pop_matrix3  ; 
  284.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  285.   Push_matrix3  ; 
  286.   Apply_to_global3  0  ; 
  287.   Execute_structure 20  ; 
  288.   
  289.  
  290. % *********************************************************************** % 
  291. %                           Row 3 Column 2                                %
  292. % *********************************************************************** %
  293.   HLHS_Removal hlhs_enable;
  294.   Interior_color  0.500000 0.000000 0.500000;
  295.   Backface_interior_color  0.500000 1.000000 0.500000;
  296.  
  297.   Backface_processing  0   1;
  298.  
  299.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  300.   Apply_to_global3  0  ; 
  301.   Call_structure 20  ; 
  302.   
  303.  
  304. % *********************************************************************** % 
  305. %                           Row 3 Column 3                                %
  306. % *********************************************************************** %
  307.   HLHS_Removal hlhs_disable;
  308.   Interior_color  0.500000 0.000000 0.500000;
  309.   Backface_interior_color  0.500000 1.000000 0.500000;
  310.  
  311.   Backface_processing  0   2;
  312.  
  313.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  314.   Apply_to_global3  0  ; 
  315.   Execute_structure 20  ; 
  316.   
  317.  
  318. % *********************************************************************** % 
  319. %                           Row 3 Column 4                                %
  320. % *********************************************************************** %
  321.   HLHS_Removal hlhs_enable;
  322.   Interior_color  0.500000 0.000000 0.500000;
  323.   Backface_interior_color  0.500000 1.000000 0.500000;
  324.  
  325.   Backface_processing  1   0;
  326.  
  327.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  328.   Apply_to_global3  0  ; 
  329.   Call_structure 20  ; 
  330.   
  331.  
  332. % *********************************************************************** % 
  333. %                           Row 3 Column 5                                %
  334. % *********************************************************************** %
  335.   HLHS_Removal hlhs_disable;
  336.   Interior_color  0.500000 0.000000 0.500000;
  337.   Backface_interior_color  0.500000 1.000000 0.500000;
  338.  
  339.   Backface_processing  1   1;
  340.  
  341.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  342.   Apply_to_global3  0  ; 
  343.   Execute_structure 20  ; 
  344.   
  345.  
  346. % *********************************************************************** % 
  347. %                           Row 3 Column 6                                %
  348. % *********************************************************************** %
  349.   HLHS_Removal hlhs_enable;
  350.   Interior_color  0.500000 0.000000 0.500000;
  351.   Backface_interior_color  0.500000 1.000000 0.500000;
  352.  
  353.   Backface_processing  1   2;
  354.  
  355.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  356.   Apply_to_global3  0  ; 
  357.   Call_structure 20  ; 
  358.   
  359.  
  360. % *********************************************************************** % 
  361. %                           Row 4 Column 1                                %
  362. % *********************************************************************** %
  363.   HLHS_Removal hlhs_disable;
  364.   Interior_color  0.750000 0.000000 0.250000;
  365.   Backface_interior_color  0.250000 1.000000 0.750000;
  366.  
  367.   Backface_processing  0   0;
  368.  
  369.   Pop_matrix3  ; 
  370.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  371.   Push_matrix3  ; 
  372.   Apply_to_global3  0  ; 
  373.   Execute_structure 20  ; 
  374.   
  375.  
  376. % *********************************************************************** % 
  377. %                           Row 4 Column 2                                %
  378. % *********************************************************************** %
  379.   HLHS_Removal hlhs_enable;
  380.   Interior_color  0.750000 0.000000 0.250000;
  381.   Backface_interior_color  0.250000 1.000000 0.750000;
  382.  
  383.   Backface_processing  0   1;
  384.  
  385.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  386.   Apply_to_global3  0  ; 
  387.   Call_structure 20  ; 
  388.   
  389.  
  390. % *********************************************************************** % 
  391. %                           Row 4 Column 3                                %
  392. % *********************************************************************** %
  393.   HLHS_Removal hlhs_disable;
  394.   Interior_color  0.750000 0.000000 0.250000;
  395.   Backface_interior_color  0.250000 1.000000 0.750000;
  396.  
  397.   Backface_processing  0   2;
  398.  
  399.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  400.   Apply_to_global3  0  ; 
  401.   Execute_structure 20  ; 
  402.   
  403.  
  404. % *********************************************************************** % 
  405. %                           Row 4 Column 4                                %
  406. % *********************************************************************** %
  407.   HLHS_Removal hlhs_enable;
  408.   Interior_color  0.750000 0.000000 0.250000;
  409.   Backface_interior_color  0.250000 1.000000 0.750000;
  410.  
  411.   Backface_processing  1   0;
  412.  
  413.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  414.   Apply_to_global3  0  ; 
  415.   Call_structure 20  ; 
  416.   
  417.  
  418. % *********************************************************************** % 
  419. %                           Row 4 Column 5                                %
  420. % *********************************************************************** %
  421.   HLHS_Removal hlhs_disable;
  422.   Interior_color  0.750000 0.000000 0.250000;
  423.   Backface_interior_color  0.250000 1.000000 0.750000;
  424.  
  425.   Backface_processing  1   1;
  426.  
  427.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  428.   Apply_to_global3  0  ; 
  429.   Execute_structure 20  ; 
  430.   
  431.  
  432. % *********************************************************************** % 
  433. %                           Row 4 Column 6                                %
  434. % *********************************************************************** %
  435.   HLHS_Removal hlhs_enable;
  436.   Interior_color  0.750000 0.000000 0.250000;
  437.   Backface_interior_color  0.250000 1.000000 0.750000;
  438.  
  439.   Backface_processing  1   2;
  440.  
  441.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  442.   Apply_to_global3  0  ; 
  443.   Call_structure 20  ; 
  444.   
  445.  
  446. % *********************************************************************** % 
  447. %                           Row 5 Column 1                                %
  448. % *********************************************************************** %
  449.   HLHS_Removal hlhs_disable;
  450.   Interior_color  1.000000 0.000000 0.000000;
  451.   Backface_interior_color  0.000000 1.000000 1.000000;
  452.  
  453.   Backface_processing  0   0;
  454.  
  455.   Pop_matrix3  ; 
  456.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  457.   Push_matrix3  ; 
  458.   Apply_to_global3  0  ; 
  459.   Execute_structure 20  ; 
  460.   
  461.  
  462. % *********************************************************************** % 
  463. %                           Row 5 Column 2                                %
  464. % *********************************************************************** %
  465.   HLHS_Removal hlhs_enable;
  466.   Interior_color  1.000000 0.000000 0.000000;
  467.   Backface_interior_color  0.000000 1.000000 1.000000;
  468.  
  469.   Backface_processing  0   1;
  470.  
  471.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  472.   Apply_to_global3  0  ; 
  473.   Call_structure 20  ; 
  474.   
  475.  
  476. % *********************************************************************** % 
  477. %                           Row 5 Column 3                                %
  478. % *********************************************************************** %
  479.   HLHS_Removal hlhs_disable;
  480.   Interior_color  1.000000 0.000000 0.000000;
  481.   Backface_interior_color  0.000000 1.000000 1.000000;
  482.  
  483.   Backface_processing  0   2;
  484.  
  485.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  486.   Apply_to_global3  0  ; 
  487.   Execute_structure 20  ; 
  488.   
  489.  
  490. % *********************************************************************** % 
  491. %                           Row 5 Column 4                                %
  492. % *********************************************************************** %
  493.   HLHS_Removal hlhs_enable;
  494.   Interior_color  1.000000 0.000000 0.000000;
  495.   Backface_interior_color  0.000000 1.000000 1.000000;
  496.  
  497.   Backface_processing  1   0;
  498.  
  499.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  500.   Apply_to_global3  0  ; 
  501.   Call_structure 20  ; 
  502.   
  503.  
  504. % *********************************************************************** % 
  505. %                           Row 5 Column 5                                %
  506. % *********************************************************************** %
  507.   HLHS_Removal hlhs_disable;
  508.   Interior_color  1.000000 0.000000 0.000000;
  509.   Backface_interior_color  0.000000 1.000000 1.000000;
  510.  
  511.   Backface_processing  1   1;
  512.  
  513.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  514.   Apply_to_global3  0  ; 
  515.   Execute_structure 20  ; 
  516.   
  517.  
  518. % *********************************************************************** % 
  519. %                           Row 5 Column 6                                %
  520. % *********************************************************************** %
  521.   HLHS_Removal hlhs_enable;
  522.   Interior_color  1.000000 0.000000 0.000000;
  523.   Backface_interior_color  0.000000 1.000000 1.000000;
  524.  
  525.   Backface_processing  1   2;
  526.  
  527.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  528.   Apply_to_global3  0  ; 
  529.   Call_structure 20  ; 
  530.   
  531. End_test  ; 
  532. Sleep 5 ;
  533.