home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / tests / backface.v30 < prev    next >
Encoding:
Text File  |  1991-02-13  |  18.0 KB  |  510 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.v30
  25. | Date          :    Thu Sep 27 17:23:13 MDT 1990
  26. | Project       :    Picture Level Benchmark
  27. | Description    :    See backface.doc
  28. | Status    :    Version 1.00
  29. | Revisions     :    Rev 1.00 by HP/DAC
  30. |
  31. \*--------------------------------------------------------------------*/
  32. %
  33.  
  34.     Configuration rgb double_buffer true_color;
  35.     Read_geometry_file "backface.d29";
  36.     Specify_report_file "backface.r30";
  37.     Default_view_specification  1  500 perspective;
  38.     Active_view  1  ; 
  39.  
  40. % *********************************************************************** % 
  41. % Set up static attributes                                                %
  42. % *********************************************************************** % 
  43.     Text_prec Stroke ;
  44.     Char_exp  1 ;
  45.     char_height  30 ;
  46.     Interior_style solid ;
  47.     Edge_flag enable ;
  48.     Edge_type  0 ;
  49.     Edge_width  1 ;
  50.     Interior_shading  1 ;
  51.     Interior_lighting  1 ;
  52.  
  53.     Background_color    0.300000   0.300000   0.800000 ;
  54.     Edge_color          1   0.800000   0.600000 ;
  55.     Text_color         1    1    1 ;
  56.  
  57.     Surface_approximation_criteria 1 1.00000 1.00000 ;
  58.  
  59.     Identity3  0  ; 
  60.     Identity3  1  ; 
  61.     Apply_to_global3  1  ; 
  62.     Identity3  2  ; 
  63.     % Set Initial position  %
  64.     Translate3  0  -416.660004   416.660004  0 Postconcat  ; 
  65.     % Set Column offset     %
  66.     Translate3  1   166.660004     0     0 Postconcat  ; 
  67.     % Set Row offset        %
  68.     Translate3  2     0     -166.660004  0 Postconcat  ; 
  69.     % Push Initial position %
  70.     Push_matrix3  ;                 
  71.  
  72. % *********************************************************************** % 
  73. %                                                                         % 
  74. %                                                                         % 
  75. %                           Begin Test Loop                               % 
  76. %                                                                         % 
  77. % *********************************************************************** % 
  78. Begin_test  1  ; 
  79.     Text3  -450  -450  0 "Backface Test: NURB true perspective";
  80.     Text3  -450  -495  0 "backface.v30";
  81.  
  82. % *********************************************************************** % 
  83. %                           Row 1 Column 1                                %
  84. % *********************************************************************** %
  85.   HLHS_Removal hlhs_disable;
  86.   Interior_color  0.000000 0.000000 1.000000;
  87.   Backface_interior_color  1.000000 1.000000 0.000000;
  88.  
  89.   Backface_processing  0   0;
  90.  
  91.   Apply_to_global3  0  ; 
  92.   Execute_structure 20  ; 
  93.   
  94.  
  95. % *********************************************************************** % 
  96. %                           Row 1 Column 2                                %
  97. % *********************************************************************** %
  98.   HLHS_Removal hlhs_enable;
  99.   Interior_color  0.000000 0.000000 1.000000;
  100.   Backface_interior_color  1.000000 1.000000 0.000000;
  101.  
  102.   Backface_processing  0   1;
  103.  
  104.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  105.   Apply_to_global3  0  ; 
  106.   Call_structure 20  ; 
  107.   
  108.  
  109. % *********************************************************************** % 
  110. %                           Row 1 Column 3                                %
  111. % *********************************************************************** %
  112.   HLHS_Removal hlhs_disable;
  113.   Interior_color  0.000000 0.000000 1.000000;
  114.   Backface_interior_color  1.000000 1.000000 0.000000;
  115.  
  116.   Backface_processing  0   2;
  117.  
  118.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  119.   Apply_to_global3  0  ; 
  120.   Execute_structure 20  ; 
  121.   
  122.  
  123. % *********************************************************************** % 
  124. %                           Row 1 Column 4                                %
  125. % *********************************************************************** %
  126.   HLHS_Removal hlhs_enable;
  127.   Interior_color  0.000000 0.000000 1.000000;
  128.   Backface_interior_color  1.000000 1.000000 0.000000;
  129.  
  130.   Backface_processing  1   0;
  131.  
  132.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  133.   Apply_to_global3  0  ; 
  134.   Call_structure 20  ; 
  135.   
  136.  
  137. % *********************************************************************** % 
  138. %                           Row 1 Column 5                                %
  139. % *********************************************************************** %
  140.   HLHS_Removal hlhs_disable;
  141.   Interior_color  0.000000 0.000000 1.000000;
  142.   Backface_interior_color  1.000000 1.000000 0.000000;
  143.  
  144.   Backface_processing  1   1;
  145.  
  146.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  147.   Apply_to_global3  0  ; 
  148.   Execute_structure 20  ; 
  149.   
  150.  
  151. % *********************************************************************** % 
  152. %                           Row 1 Column 6                                %
  153. % *********************************************************************** %
  154.   HLHS_Removal hlhs_enable;
  155.   Interior_color  0.000000 0.000000 1.000000;
  156.   Backface_interior_color  1.000000 1.000000 0.000000;
  157.  
  158.   Backface_processing  1   2;
  159.  
  160.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  161.   Apply_to_global3  0  ; 
  162.   Call_structure 20  ; 
  163.   
  164.  
  165. % *********************************************************************** % 
  166. %                           Row 2 Column 1                                %
  167. % *********************************************************************** %
  168.   HLHS_Removal hlhs_disable;
  169.   Interior_color  0.250000 0.000000 0.750000;
  170.   Backface_interior_color  0.750000 1.000000 0.250000;
  171.  
  172.   Backface_processing  0   0;
  173.  
  174.   Pop_matrix3  ; 
  175.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  176.   Push_matrix3  ; 
  177.   Apply_to_global3  0  ; 
  178.   Execute_structure 20  ; 
  179.   
  180.  
  181. % *********************************************************************** % 
  182. %                           Row 2 Column 2                                %
  183. % *********************************************************************** %
  184.   HLHS_Removal hlhs_enable;
  185.   Interior_color  0.250000 0.000000 0.750000;
  186.   Backface_interior_color  0.750000 1.000000 0.250000;
  187.  
  188.   Backface_processing  0   1;
  189.  
  190.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  191.   Apply_to_global3  0  ; 
  192.   Call_structure 20  ; 
  193.   
  194.  
  195. % *********************************************************************** % 
  196. %                           Row 2 Column 3                                %
  197. % *********************************************************************** %
  198.   HLHS_Removal hlhs_disable;
  199.   Interior_color  0.250000 0.000000 0.750000;
  200.   Backface_interior_color  0.750000 1.000000 0.250000;
  201.  
  202.   Backface_processing  0   2;
  203.  
  204.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  205.   Apply_to_global3  0  ; 
  206.   Execute_structure 20  ; 
  207.   
  208.  
  209. % *********************************************************************** % 
  210. %                           Row 2 Column 4                                %
  211. % *********************************************************************** %
  212.   HLHS_Removal hlhs_enable;
  213.   Interior_color  0.250000 0.000000 0.750000;
  214.   Backface_interior_color  0.750000 1.000000 0.250000;
  215.  
  216.   Backface_processing  1   0;
  217.  
  218.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  219.   Apply_to_global3  0  ; 
  220.   Call_structure 20  ; 
  221.   
  222.  
  223. % *********************************************************************** % 
  224. %                           Row 2 Column 5                                %
  225. % *********************************************************************** %
  226.   HLHS_Removal hlhs_disable;
  227.   Interior_color  0.250000 0.000000 0.750000;
  228.   Backface_interior_color  0.750000 1.000000 0.250000;
  229.  
  230.   Backface_processing  1   1;
  231.  
  232.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  233.   Apply_to_global3  0  ; 
  234.   Execute_structure 20  ; 
  235.   
  236.  
  237. % *********************************************************************** % 
  238. %                           Row 2 Column 6                                %
  239. % *********************************************************************** %
  240.   HLHS_Removal hlhs_enable;
  241.   Interior_color  0.250000 0.000000 0.750000;
  242.   Backface_interior_color  0.750000 1.000000 0.250000;
  243.  
  244.   Backface_processing  1   2;
  245.  
  246.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  247.   Apply_to_global3  0  ; 
  248.   Call_structure 20  ; 
  249.   
  250.  
  251. % *********************************************************************** % 
  252. %                           Row 3 Column 1                                %
  253. % *********************************************************************** %
  254.   HLHS_Removal hlhs_disable;
  255.   Interior_color  0.500000 0.000000 0.500000;
  256.   Backface_interior_color  0.500000 1.000000 0.500000;
  257.  
  258.   Backface_processing  0   0;
  259.  
  260.   Pop_matrix3  ; 
  261.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  262.   Push_matrix3  ; 
  263.   Apply_to_global3  0  ; 
  264.   Execute_structure 20  ; 
  265.   
  266.  
  267. % *********************************************************************** % 
  268. %                           Row 3 Column 2                                %
  269. % *********************************************************************** %
  270.   HLHS_Removal hlhs_enable;
  271.   Interior_color  0.500000 0.000000 0.500000;
  272.   Backface_interior_color  0.500000 1.000000 0.500000;
  273.  
  274.   Backface_processing  0   1;
  275.  
  276.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  277.   Apply_to_global3  0  ; 
  278.   Call_structure 20  ; 
  279.   
  280.  
  281. % *********************************************************************** % 
  282. %                           Row 3 Column 3                                %
  283. % *********************************************************************** %
  284.   HLHS_Removal hlhs_disable;
  285.   Interior_color  0.500000 0.000000 0.500000;
  286.   Backface_interior_color  0.500000 1.000000 0.500000;
  287.  
  288.   Backface_processing  0   2;
  289.  
  290.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  291.   Apply_to_global3  0  ; 
  292.   Execute_structure 20  ; 
  293.   
  294.  
  295. % *********************************************************************** % 
  296. %                           Row 3 Column 4                                %
  297. % *********************************************************************** %
  298.   HLHS_Removal hlhs_enable;
  299.   Interior_color  0.500000 0.000000 0.500000;
  300.   Backface_interior_color  0.500000 1.000000 0.500000;
  301.  
  302.   Backface_processing  1   0;
  303.  
  304.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  305.   Apply_to_global3  0  ; 
  306.   Call_structure 20  ; 
  307.   
  308.  
  309. % *********************************************************************** % 
  310. %                           Row 3 Column 5                                %
  311. % *********************************************************************** %
  312.   HLHS_Removal hlhs_disable;
  313.   Interior_color  0.500000 0.000000 0.500000;
  314.   Backface_interior_color  0.500000 1.000000 0.500000;
  315.  
  316.   Backface_processing  1   1;
  317.  
  318.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  319.   Apply_to_global3  0  ; 
  320.   Execute_structure 20  ; 
  321.   
  322.  
  323. % *********************************************************************** % 
  324. %                           Row 3 Column 6                                %
  325. % *********************************************************************** %
  326.   HLHS_Removal hlhs_enable;
  327.   Interior_color  0.500000 0.000000 0.500000;
  328.   Backface_interior_color  0.500000 1.000000 0.500000;
  329.  
  330.   Backface_processing  1   2;
  331.  
  332.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  333.   Apply_to_global3  0  ; 
  334.   Call_structure 20  ; 
  335.   
  336.  
  337. % *********************************************************************** % 
  338. %                           Row 4 Column 1                                %
  339. % *********************************************************************** %
  340.   HLHS_Removal hlhs_disable;
  341.   Interior_color  0.750000 0.000000 0.250000;
  342.   Backface_interior_color  0.250000 1.000000 0.750000;
  343.  
  344.   Backface_processing  0   0;
  345.  
  346.   Pop_matrix3  ; 
  347.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  348.   Push_matrix3  ; 
  349.   Apply_to_global3  0  ; 
  350.   Execute_structure 20  ; 
  351.   
  352.  
  353. % *********************************************************************** % 
  354. %                           Row 4 Column 2                                %
  355. % *********************************************************************** %
  356.   HLHS_Removal hlhs_enable;
  357.   Interior_color  0.750000 0.000000 0.250000;
  358.   Backface_interior_color  0.250000 1.000000 0.750000;
  359.  
  360.   Backface_processing  0   1;
  361.  
  362.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  363.   Apply_to_global3  0  ; 
  364.   Call_structure 20  ; 
  365.   
  366.  
  367. % *********************************************************************** % 
  368. %                           Row 4 Column 3                                %
  369. % *********************************************************************** %
  370.   HLHS_Removal hlhs_disable;
  371.   Interior_color  0.750000 0.000000 0.250000;
  372.   Backface_interior_color  0.250000 1.000000 0.750000;
  373.  
  374.   Backface_processing  0   2;
  375.  
  376.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  377.   Apply_to_global3  0  ; 
  378.   Execute_structure 20  ; 
  379.   
  380.  
  381. % *********************************************************************** % 
  382. %                           Row 4 Column 4                                %
  383. % *********************************************************************** %
  384.   HLHS_Removal hlhs_enable;
  385.   Interior_color  0.750000 0.000000 0.250000;
  386.   Backface_interior_color  0.250000 1.000000 0.750000;
  387.  
  388.   Backface_processing  1   0;
  389.  
  390.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  391.   Apply_to_global3  0  ; 
  392.   Call_structure 20  ; 
  393.   
  394.  
  395. % *********************************************************************** % 
  396. %                           Row 4 Column 5                                %
  397. % *********************************************************************** %
  398.   HLHS_Removal hlhs_disable;
  399.   Interior_color  0.750000 0.000000 0.250000;
  400.   Backface_interior_color  0.250000 1.000000 0.750000;
  401.  
  402.   Backface_processing  1   1;
  403.  
  404.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  405.   Apply_to_global3  0  ; 
  406.   Execute_structure 20  ; 
  407.   
  408.  
  409. % *********************************************************************** % 
  410. %                           Row 4 Column 6                                %
  411. % *********************************************************************** %
  412.   HLHS_Removal hlhs_enable;
  413.   Interior_color  0.750000 0.000000 0.250000;
  414.   Backface_interior_color  0.250000 1.000000 0.750000;
  415.  
  416.   Backface_processing  1   2;
  417.  
  418.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  419.   Apply_to_global3  0  ; 
  420.   Call_structure 20  ; 
  421.   
  422.  
  423. % *********************************************************************** % 
  424. %                           Row 5 Column 1                                %
  425. % *********************************************************************** %
  426.   HLHS_Removal hlhs_disable;
  427.   Interior_color  1.000000 0.000000 0.000000;
  428.   Backface_interior_color  0.000000 1.000000 1.000000;
  429.  
  430.   Backface_processing  0   0;
  431.  
  432.   Pop_matrix3  ; 
  433.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  434.   Push_matrix3  ; 
  435.   Apply_to_global3  0  ; 
  436.   Execute_structure 20  ; 
  437.   
  438.  
  439. % *********************************************************************** % 
  440. %                           Row 5 Column 2                                %
  441. % *********************************************************************** %
  442.   HLHS_Removal hlhs_enable;
  443.   Interior_color  1.000000 0.000000 0.000000;
  444.   Backface_interior_color  0.000000 1.000000 1.000000;
  445.  
  446.   Backface_processing  0   1;
  447.  
  448.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  449.   Apply_to_global3  0  ; 
  450.   Call_structure 20  ; 
  451.   
  452.  
  453. % *********************************************************************** % 
  454. %                           Row 5 Column 3                                %
  455. % *********************************************************************** %
  456.   HLHS_Removal hlhs_disable;
  457.   Interior_color  1.000000 0.000000 0.000000;
  458.   Backface_interior_color  0.000000 1.000000 1.000000;
  459.  
  460.   Backface_processing  0   2;
  461.  
  462.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  463.   Apply_to_global3  0  ; 
  464.   Execute_structure 20  ; 
  465.   
  466.  
  467. % *********************************************************************** % 
  468. %                           Row 5 Column 4                                %
  469. % *********************************************************************** %
  470.   HLHS_Removal hlhs_enable;
  471.   Interior_color  1.000000 0.000000 0.000000;
  472.   Backface_interior_color  0.000000 1.000000 1.000000;
  473.  
  474.   Backface_processing  1   0;
  475.  
  476.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  477.   Apply_to_global3  0  ; 
  478.   Call_structure 20  ; 
  479.   
  480.  
  481. % *********************************************************************** % 
  482. %                           Row 5 Column 5                                %
  483. % *********************************************************************** %
  484.   HLHS_Removal hlhs_disable;
  485.   Interior_color  1.000000 0.000000 0.000000;
  486.   Backface_interior_color  0.000000 1.000000 1.000000;
  487.  
  488.   Backface_processing  1   1;
  489.  
  490.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  491.   Apply_to_global3  0  ; 
  492.   Execute_structure 20  ; 
  493.   
  494.  
  495. % *********************************************************************** % 
  496. %                           Row 5 Column 6                                %
  497. % *********************************************************************** %
  498.   HLHS_Removal hlhs_enable;
  499.   Interior_color  1.000000 0.000000 0.000000;
  500.   Backface_interior_color  0.000000 1.000000 1.000000;
  501.  
  502.   Backface_processing  1   2;
  503.  
  504.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  505.   Apply_to_global3  0  ; 
  506.   Call_structure 20  ; 
  507.   
  508. End_test  ; 
  509. Sleep 5 ;
  510.