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