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

  1. %
  2. /*--------------------------------------------------------------------*\
  3. |
  4. |   Copyright (c)1989,1990 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          :    specular.v08
  25. | Date          :    Tue Jul 10 16:43:18 PDT 1990
  26. | Project       :    Picture Level Benchmark
  27. | Description    :    See specular.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. |            Define_light properties were changed.
  35. |
  36. |            Files specular.d02 d04 d06 d08 d10
  37. |            have been dropped.  Any verb file
  38. |            that use to call these files now call 
  39. |            files dst.d01 d03 d05 d07 d09 respectivel.
  40. |
  41. \*--------------------------------------------------------------------*/
  42. %
  43.     Configuration rgb double_buffer true_color  ; 
  44.     Read_geometry_file "dst.d07";
  45.     Specify_report_file "specular.r08";
  46.     Default_view_specification  1  500 perspective;
  47.     Active_view  1  ; 
  48.  
  49. % ****************************************************************** %
  50. % Set up static attributes                                           %
  51. % ****************************************************************** %
  52.     HLHS_Removal hlhs_enable ;
  53.     Text_prec Stroke ;
  54.     Char_exp  1 ;
  55.     Text_color  1  1  1 ;
  56.     char_height  30 ;
  57.     Background_color    0.300000  0.300000  0.800000 ;
  58.     Interior_style solid ;
  59.     Interior_color  1  1  1 ;
  60.     Backface_interior_color  1  1  1 ;
  61.     Interior_lighting  4 ;    % (specular) %
  62.     Backface_processing  1  0 ;    % backface_identify but cull_none %
  63.     Edge_flag disable ;
  64.  
  65. % ****************************************************************** %
  66. % Set up matrix for position geometry on the screen                  %
  67. % ****************************************************************** %
  68.     Identity3  0  ; 
  69.     Identity3  1  ; 
  70.     Apply_to_global3  1  ; 
  71.     Identity3  2  ; 
  72.     Translate3  0  -375   400  0 Postconcat; % Set Initial position  %
  73.     Translate3  1   250     0  0 Postconcat; % Set Column offset     %
  74.     Translate3  2     0  -200  0 Postconcat; % Set Row offset        %
  75.     Push_matrix3  ;                  % Push Initial position %
  76.  
  77.  
  78. % ****************************************************************** %
  79. % Create a ramped light table                                        %
  80. % ****************************************************************** %
  81.     Define_light
  82.       % Index in light source table   %  1
  83.       % Light source color components %  1.000000    0.000000    0.000000
  84.       % Non-directional light source  %  Ambient_light
  85.      ; 
  86.     Define_light
  87.       % Index in light source table   %  2
  88.       % Light source color components %  0.500000    1.000000    0.500000
  89.       % Directional     light source  %  Directional_light {
  90.       % Direction                     %  1           1          -1       }
  91.     ;
  92.     Define_light
  93.       % Index in light source table   %  3
  94.       % Light source color components %  0.500000    0.500000    1.000000
  95.       % Positional      light source  %  Positional_light {
  96.       % Position                      %  0           100         200
  97.       % Attenuation                   %  0.500000    0.005000            }
  98.     ;                        
  99.     Define_light
  100.       % Index in light source table   %  4
  101.       % Light source color components %  1.000000    0.500000    0.500000
  102.       % Spot            light source  %  Spot_light      {
  103.       % Position                      %  0          -100         500
  104.       % Direction                     %  0           0           -1
  105.       % Concentration                 %  10.00000
  106.       % Spread angle in degrees       %  32
  107.       % Attenuation                   %  1.000000    0.000000            }
  108.     ;                        
  109.  
  110.  
  111. % ****************************************************************** %
  112. %                                                                    % 
  113. %                                                                    % 
  114. %                        Begin Test Loop                             % 
  115. %                                                                    % 
  116. % ****************************************************************** %
  117. Begin_test  1  ; 
  118.     Text3  -450  -450  0 "Specular Test: QUAD true perspective";
  119.     Text3  -450  -495  0 "specular.v08";
  120.  
  121. % ****************************************************************** % 
  122. %                                                                    % 
  123. %                        Row 1 Column 1                              %
  124. %                                                                    % 
  125. % ****************************************************************** %
  126.   % ********************************************************** %
  127.   % Interior_pattern_index should have no effect               %
  128.   % because Interior_style is SOLID                            %
  129.   % ********************************************************** %
  130.   Interior_pattern_index  1;
  131.   Interior_shading  1;
  132.   Surface_properties
  133.     % Ambient reflection coefficient    %  0.200000
  134.     % Diffuse reflection coefficient    %  0.250000
  135.     % Specular reflection coefficient   %  0.000000
  136.     % Specularity true-color components %  0  0  1
  137.     % Specular exponent                 %  8
  138.     % Transparency coefficient          %  1
  139.   ; 
  140.   Backface_properties
  141.     % Ambient reflection coefficient    %  0.200000
  142.     % Diffuse reflection coefficient    %  0.250000
  143.     % Specular reflection coefficient   %  1.000000
  144.     % Specularity true-color components %  0  0  1
  145.     % Specular exponent                 %  8
  146.     % Transparency coefficient          %  1
  147.   ; 
  148.   Light_state
  149.     activate_list { 1  2}
  150.     deactivate_list { 3}
  151.   ;
  152.  
  153.   % *************************************************************** %
  154.   % Matrix operations to position graphics                          %
  155.   % *************************************************************** %
  156.   Apply_to_global3  0  ; 
  157.   Execute_structure 20  ; 
  158.   
  159.  
  160. % ****************************************************************** % 
  161. %                                                                    % 
  162. %                        Row 1 Column 2                              %
  163. %                                                                    % 
  164. % ****************************************************************** %
  165.   % ********************************************************** %
  166.   % Interior_pattern_index should have no effect               %
  167.   % because Interior_style is SOLID                            %
  168.   % ********************************************************** %
  169.   Interior_pattern_index  2;
  170.   Interior_shading  2;
  171.   Surface_properties
  172.     % Ambient reflection coefficient    %  0.200000
  173.     % Diffuse reflection coefficient    %  0.250000
  174.     % Specular reflection coefficient   %  0.333333
  175.     % Specularity true-color components %  0  0  1
  176.     % Specular exponent                 %  8
  177.     % Transparency coefficient          %  1
  178.   ; 
  179.   Backface_properties
  180.     % Ambient reflection coefficient    %  0.200000
  181.     % Diffuse reflection coefficient    %  0.250000
  182.     % Specular reflection coefficient   %  0.666667
  183.     % Specularity true-color components %  0  0  1
  184.     % Specular exponent                 %  8
  185.     % Transparency coefficient          %  1
  186.   ; 
  187.  
  188.   % *************************************************************** %
  189.   % Matrix operations to position graphics                          %
  190.   % *************************************************************** %
  191.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  192.   Apply_to_global3  0  ; 
  193.   Call_structure 20  ; 
  194.   
  195.  
  196. % ****************************************************************** % 
  197. %                                                                    % 
  198. %                        Row 1 Column 3                              %
  199. %                                                                    % 
  200. % ****************************************************************** %
  201.   % ********************************************************** %
  202.   % Interior_pattern_index should have no effect               %
  203.   % because Interior_style is SOLID                            %
  204.   % ********************************************************** %
  205.   Interior_pattern_index  3;
  206.   Interior_shading  3;
  207.   Surface_properties
  208.     % Ambient reflection coefficient    %  0.200000
  209.     % Diffuse reflection coefficient    %  0.250000
  210.     % Specular reflection coefficient   %  0.666667
  211.     % Specularity true-color components %  0  0  1
  212.     % Specular exponent                 %  8
  213.     % Transparency coefficient          %  1
  214.   ; 
  215.   Backface_properties
  216.     % Ambient reflection coefficient    %  0.200000
  217.     % Diffuse reflection coefficient    %  0.250000
  218.     % Specular reflection coefficient   %  0.333333
  219.     % Specularity true-color components %  0  0  1
  220.     % Specular exponent                 %  8
  221.     % Transparency coefficient          %  1
  222.   ; 
  223.  
  224.   % *************************************************************** %
  225.   % Matrix operations to position graphics                          %
  226.   % *************************************************************** %
  227.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  228.   Apply_to_global3  0  ; 
  229.   Execute_structure 20  ; 
  230.   
  231.  
  232. % ****************************************************************** % 
  233. %                                                                    % 
  234. %                        Row 1 Column 4                              %
  235. %                                                                    % 
  236. % ****************************************************************** %
  237.   % ********************************************************** %
  238.   % Interior_pattern_index should have no effect               %
  239.   % because Interior_style is SOLID                            %
  240.   % ********************************************************** %
  241.   Interior_pattern_index  4;
  242.   Interior_shading  4;
  243.   Surface_properties
  244.     % Ambient reflection coefficient    %  0.200000
  245.     % Diffuse reflection coefficient    %  0.250000
  246.     % Specular reflection coefficient   %  1.000000
  247.     % Specularity true-color components %  0  0  1
  248.     % Specular exponent                 %  8
  249.     % Transparency coefficient          %  1
  250.   ; 
  251.   Backface_properties
  252.     % Ambient reflection coefficient    %  0.200000
  253.     % Diffuse reflection coefficient    %  0.250000
  254.     % Specular reflection coefficient   %  0.000000
  255.     % Specularity true-color components %  0  0  1
  256.     % Specular exponent                 %  8
  257.     % Transparency coefficient          %  1
  258.   ; 
  259.  
  260.   % *************************************************************** %
  261.   % Matrix operations to position graphics                          %
  262.   % *************************************************************** %
  263.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  264.   Apply_to_global3  0  ; 
  265.   Call_structure 20  ; 
  266.   
  267.  
  268. % ****************************************************************** % 
  269. %                                                                    % 
  270. %                        Row 2 Column 1                              %
  271. %                                                                    % 
  272. % ****************************************************************** %
  273.   % ********************************************************** %
  274.   % Interior_pattern_index should have no effect               %
  275.   % because Interior_style is SOLID                            %
  276.   % ********************************************************** %
  277.   Interior_pattern_index  5;
  278.   Interior_shading  1;
  279.   Surface_properties
  280.     % Ambient reflection coefficient    %  0.200000
  281.     % Diffuse reflection coefficient    %  0.250000
  282.     % Specular reflection coefficient   %  0.000000
  283.     % Specularity true-color components %  0  0  1
  284.     % Specular exponent                 %  8
  285.     % Transparency coefficient          %  1
  286.   ; 
  287.   Backface_properties
  288.     % Ambient reflection coefficient    %  0.200000
  289.     % Diffuse reflection coefficient    %  0.250000
  290.     % Specular reflection coefficient   %  1.000000
  291.     % Specularity true-color components %  0  0  1
  292.     % Specular exponent                 %  8
  293.     % Transparency coefficient          %  1
  294.   ; 
  295.   Light_state
  296.     activate_list { 1  3}
  297.     deactivate_list { 2}
  298.   ;
  299.  
  300.   % *************************************************************** %
  301.   % Matrix operations to position graphics                          %
  302.   % *************************************************************** %
  303.   Pop_matrix3  ; 
  304.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  305.   Push_matrix3  ; 
  306.   Apply_to_global3  0  ; 
  307.   Call_structure 20  ; 
  308.   
  309.  
  310. % ****************************************************************** % 
  311. %                                                                    % 
  312. %                        Row 2 Column 2                              %
  313. %                                                                    % 
  314. % ****************************************************************** %
  315.   % ********************************************************** %
  316.   % Interior_pattern_index should have no effect               %
  317.   % because Interior_style is SOLID                            %
  318.   % ********************************************************** %
  319.   Interior_pattern_index  6;
  320.   Interior_shading  2;
  321.   Surface_properties
  322.     % Ambient reflection coefficient    %  0.200000
  323.     % Diffuse reflection coefficient    %  0.250000
  324.     % Specular reflection coefficient   %  0.333333
  325.     % Specularity true-color components %  0  0  1
  326.     % Specular exponent                 %  8
  327.     % Transparency coefficient          %  1
  328.   ; 
  329.   Backface_properties
  330.     % Ambient reflection coefficient    %  0.200000
  331.     % Diffuse reflection coefficient    %  0.250000
  332.     % Specular reflection coefficient   %  0.666667
  333.     % Specularity true-color components %  0  0  1
  334.     % Specular exponent                 %  8
  335.     % Transparency coefficient          %  1
  336.   ; 
  337.  
  338.   % *************************************************************** %
  339.   % Matrix operations to position graphics                          %
  340.   % *************************************************************** %
  341.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  342.   Apply_to_global3  0  ; 
  343.   Execute_structure 20  ; 
  344.   
  345.  
  346. % ****************************************************************** % 
  347. %                                                                    % 
  348. %                        Row 2 Column 3                              %
  349. %                                                                    % 
  350. % ****************************************************************** %
  351.   % ********************************************************** %
  352.   % Interior_pattern_index should have no effect               %
  353.   % because Interior_style is SOLID                            %
  354.   % ********************************************************** %
  355.   Interior_pattern_index  1;
  356.   Interior_shading  3;
  357.   Surface_properties
  358.     % Ambient reflection coefficient    %  0.200000
  359.     % Diffuse reflection coefficient    %  0.250000
  360.     % Specular reflection coefficient   %  0.666667
  361.     % Specularity true-color components %  0  0  1
  362.     % Specular exponent                 %  8
  363.     % Transparency coefficient          %  1
  364.   ; 
  365.   Backface_properties
  366.     % Ambient reflection coefficient    %  0.200000
  367.     % Diffuse reflection coefficient    %  0.250000
  368.     % Specular reflection coefficient   %  0.333333
  369.     % Specularity true-color components %  0  0  1
  370.     % Specular exponent                 %  8
  371.     % Transparency coefficient          %  1
  372.   ; 
  373.  
  374.   % *************************************************************** %
  375.   % Matrix operations to position graphics                          %
  376.   % *************************************************************** %
  377.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  378.   Apply_to_global3  0  ; 
  379.   Call_structure 20  ; 
  380.   
  381.  
  382. % ****************************************************************** % 
  383. %                                                                    % 
  384. %                        Row 2 Column 4                              %
  385. %                                                                    % 
  386. % ****************************************************************** %
  387.   % ********************************************************** %
  388.   % Interior_pattern_index should have no effect               %
  389.   % because Interior_style is SOLID                            %
  390.   % ********************************************************** %
  391.   Interior_pattern_index  2;
  392.   Interior_shading  4;
  393.   Surface_properties
  394.     % Ambient reflection coefficient    %  0.200000
  395.     % Diffuse reflection coefficient    %  0.250000
  396.     % Specular reflection coefficient   %  1.000000
  397.     % Specularity true-color components %  0  0  1
  398.     % Specular exponent                 %  8
  399.     % Transparency coefficient          %  1
  400.   ; 
  401.   Backface_properties
  402.     % Ambient reflection coefficient    %  0.200000
  403.     % Diffuse reflection coefficient    %  0.250000
  404.     % Specular reflection coefficient   %  0.000000
  405.     % Specularity true-color components %  0  0  1
  406.     % Specular exponent                 %  8
  407.     % Transparency coefficient          %  1
  408.   ; 
  409.  
  410.   % *************************************************************** %
  411.   % Matrix operations to position graphics                          %
  412.   % *************************************************************** %
  413.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  414.   Apply_to_global3  0  ; 
  415.   Execute_structure 20  ; 
  416.   
  417.  
  418. % ****************************************************************** % 
  419. %                                                                    % 
  420. %                        Row 3 Column 1                              %
  421. %                                                                    % 
  422. % ****************************************************************** %
  423.   % ********************************************************** %
  424.   % Interior_pattern_index should have no effect               %
  425.   % because Interior_style is SOLID                            %
  426.   % ********************************************************** %
  427.   Interior_pattern_index  3;
  428.   Interior_shading  1;
  429.   Surface_properties
  430.     % Ambient reflection coefficient    %  0.200000
  431.     % Diffuse reflection coefficient    %  0.250000
  432.     % Specular reflection coefficient   %  0.000000
  433.     % Specularity true-color components %  0  0  1
  434.     % Specular exponent                 %  8
  435.     % Transparency coefficient          %  1
  436.   ; 
  437.   Backface_properties
  438.     % Ambient reflection coefficient    %  0.200000
  439.     % Diffuse reflection coefficient    %  0.250000
  440.     % Specular reflection coefficient   %  1.000000
  441.     % Specularity true-color components %  0  0  1
  442.     % Specular exponent                 %  8
  443.     % Transparency coefficient          %  1
  444.   ; 
  445.   Light_state
  446.     activate_list { 1  4}
  447.     deactivate_list { 3}
  448.   ;
  449.  
  450.   % *************************************************************** %
  451.   % Matrix operations to position graphics                          %
  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. %                                                                    % 
  462. %                        Row 3 Column 2                              %
  463. %                                                                    % 
  464. % ****************************************************************** %
  465.   % ********************************************************** %
  466.   % Interior_pattern_index should have no effect               %
  467.   % because Interior_style is SOLID                            %
  468.   % ********************************************************** %
  469.   Interior_pattern_index  4;
  470.   Interior_shading  2;
  471.   Surface_properties
  472.     % Ambient reflection coefficient    %  0.200000
  473.     % Diffuse reflection coefficient    %  0.250000
  474.     % Specular reflection coefficient   %  0.333333
  475.     % Specularity true-color components %  0  0  1
  476.     % Specular exponent                 %  8
  477.     % Transparency coefficient          %  1
  478.   ; 
  479.   Backface_properties
  480.     % Ambient reflection coefficient    %  0.200000
  481.     % Diffuse reflection coefficient    %  0.250000
  482.     % Specular reflection coefficient   %  0.666667
  483.     % Specularity true-color components %  0  0  1
  484.     % Specular exponent                 %  8
  485.     % Transparency coefficient          %  1
  486.   ; 
  487.  
  488.   % *************************************************************** %
  489.   % Matrix operations to position graphics                          %
  490.   % *************************************************************** %
  491.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  492.   Apply_to_global3  0  ; 
  493.   Call_structure 20  ; 
  494.   
  495.  
  496. % ****************************************************************** % 
  497. %                                                                    % 
  498. %                        Row 3 Column 3                              %
  499. %                                                                    % 
  500. % ****************************************************************** %
  501.   % ********************************************************** %
  502.   % Interior_pattern_index should have no effect               %
  503.   % because Interior_style is SOLID                            %
  504.   % ********************************************************** %
  505.   Interior_pattern_index  5;
  506.   Interior_shading  3;
  507.   Surface_properties
  508.     % Ambient reflection coefficient    %  0.200000
  509.     % Diffuse reflection coefficient    %  0.250000
  510.     % Specular reflection coefficient   %  0.666667
  511.     % Specularity true-color components %  0  0  1
  512.     % Specular exponent                 %  8
  513.     % Transparency coefficient          %  1
  514.   ; 
  515.   Backface_properties
  516.     % Ambient reflection coefficient    %  0.200000
  517.     % Diffuse reflection coefficient    %  0.250000
  518.     % Specular reflection coefficient   %  0.333333
  519.     % Specularity true-color components %  0  0  1
  520.     % Specular exponent                 %  8
  521.     % Transparency coefficient          %  1
  522.   ; 
  523.  
  524.   % *************************************************************** %
  525.   % Matrix operations to position graphics                          %
  526.   % *************************************************************** %
  527.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  528.   Apply_to_global3  0  ; 
  529.   Execute_structure 20  ; 
  530.   
  531.  
  532. % ****************************************************************** % 
  533. %                                                                    % 
  534. %                        Row 3 Column 4                              %
  535. %                                                                    % 
  536. % ****************************************************************** %
  537.   % ********************************************************** %
  538.   % Interior_pattern_index should have no effect               %
  539.   % because Interior_style is SOLID                            %
  540.   % ********************************************************** %
  541.   Interior_pattern_index  6;
  542.   Interior_shading  4;
  543.   Surface_properties
  544.     % Ambient reflection coefficient    %  0.200000
  545.     % Diffuse reflection coefficient    %  0.250000
  546.     % Specular reflection coefficient   %  1.000000
  547.     % Specularity true-color components %  0  0  1
  548.     % Specular exponent                 %  8
  549.     % Transparency coefficient          %  1
  550.   ; 
  551.   Backface_properties
  552.     % Ambient reflection coefficient    %  0.200000
  553.     % Diffuse reflection coefficient    %  0.250000
  554.     % Specular reflection coefficient   %  0.000000
  555.     % Specularity true-color components %  0  0  1
  556.     % Specular exponent                 %  8
  557.     % Transparency coefficient          %  1
  558.   ; 
  559.  
  560.   % *************************************************************** %
  561.   % Matrix operations to position graphics                          %
  562.   % *************************************************************** %
  563.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  564.   Apply_to_global3  0  ; 
  565.   Call_structure 20  ; 
  566.   
  567.  
  568. % ****************************************************************** % 
  569. %                                                                    % 
  570. %                        Row 4 Column 1                              %
  571. %                                                                    % 
  572. % ****************************************************************** %
  573.   % ********************************************************** %
  574.   % Interior_pattern_index should have no effect               %
  575.   % because Interior_style is SOLID                            %
  576.   % ********************************************************** %
  577.   Interior_pattern_index  1;
  578.   Interior_shading  1;
  579.   Surface_properties
  580.     % Ambient reflection coefficient    %  0.200000
  581.     % Diffuse reflection coefficient    %  0.250000
  582.     % Specular reflection coefficient   %  0.000000
  583.     % Specularity true-color components %  0  0  1
  584.     % Specular exponent                 %  8
  585.     % Transparency coefficient          %  1
  586.   ; 
  587.   Backface_properties
  588.     % Ambient reflection coefficient    %  0.200000
  589.     % Diffuse reflection coefficient    %  0.250000
  590.     % Specular reflection coefficient   %  1.000000
  591.     % Specularity true-color components %  0  0  1
  592.     % Specular exponent                 %  8
  593.     % Transparency coefficient          %  1
  594.   ; 
  595.   Light_state
  596.     activate_list   { 1  2  3  4}
  597.     deactivate_list { }
  598.   ;
  599.  
  600.   % *************************************************************** %
  601.   % Matrix operations to position graphics                          %
  602.   % *************************************************************** %
  603.   Pop_matrix3  ; 
  604.   Concat_matrix3  2  0 postconcat  ;         % Move down one row %
  605.   Push_matrix3  ; 
  606.   Apply_to_global3  0  ; 
  607.   Call_structure 20  ; 
  608.   
  609.  
  610. % ****************************************************************** % 
  611. %                                                                    % 
  612. %                        Row 4 Column 2                              %
  613. %                                                                    % 
  614. % ****************************************************************** %
  615.   % ********************************************************** %
  616.   % Interior_pattern_index should have no effect               %
  617.   % because Interior_style is SOLID                            %
  618.   % ********************************************************** %
  619.   Interior_pattern_index  2;
  620.   Interior_shading  2;
  621.   Surface_properties
  622.     % Ambient reflection coefficient    %  0.200000
  623.     % Diffuse reflection coefficient    %  0.250000
  624.     % Specular reflection coefficient   %  0.333333
  625.     % Specularity true-color components %  0  0  1
  626.     % Specular exponent                 %  8
  627.     % Transparency coefficient          %  1
  628.   ; 
  629.   Backface_properties
  630.     % Ambient reflection coefficient    %  0.200000
  631.     % Diffuse reflection coefficient    %  0.250000
  632.     % Specular reflection coefficient   %  0.666667
  633.     % Specularity true-color components %  0  0  1
  634.     % Specular exponent                 %  8
  635.     % Transparency coefficient          %  1
  636.   ; 
  637.  
  638.   % *************************************************************** %
  639.   % Matrix operations to position graphics                          %
  640.   % *************************************************************** %
  641.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  642.   Apply_to_global3  0  ; 
  643.   Execute_structure 20  ; 
  644.   
  645.  
  646. % ****************************************************************** % 
  647. %                                                                    % 
  648. %                        Row 4 Column 3                              %
  649. %                                                                    % 
  650. % ****************************************************************** %
  651.   % ********************************************************** %
  652.   % Interior_pattern_index should have no effect               %
  653.   % because Interior_style is SOLID                            %
  654.   % ********************************************************** %
  655.   Interior_pattern_index  3;
  656.   Interior_shading  3;
  657.   Surface_properties
  658.     % Ambient reflection coefficient    %  0.200000
  659.     % Diffuse reflection coefficient    %  0.250000
  660.     % Specular reflection coefficient   %  0.666667
  661.     % Specularity true-color components %  0  0  1
  662.     % Specular exponent                 %  8
  663.     % Transparency coefficient          %  1
  664.   ; 
  665.   Backface_properties
  666.     % Ambient reflection coefficient    %  0.200000
  667.     % Diffuse reflection coefficient    %  0.250000
  668.     % Specular reflection coefficient   %  0.333333
  669.     % Specularity true-color components %  0  0  1
  670.     % Specular exponent                 %  8
  671.     % Transparency coefficient          %  1
  672.   ; 
  673.  
  674.   % *************************************************************** %
  675.   % Matrix operations to position graphics                          %
  676.   % *************************************************************** %
  677.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  678.   Apply_to_global3  0  ; 
  679.   Call_structure 20  ; 
  680.   
  681.  
  682. % ****************************************************************** % 
  683. %                                                                    % 
  684. %                        Row 4 Column 4                              %
  685. %                                                                    % 
  686. % ****************************************************************** %
  687.   % ********************************************************** %
  688.   % Interior_pattern_index should have no effect               %
  689.   % because Interior_style is SOLID                            %
  690.   % ********************************************************** %
  691.   Interior_pattern_index  4;
  692.   Interior_shading  4;
  693.   Surface_properties
  694.     % Ambient reflection coefficient    %  0.200000
  695.     % Diffuse reflection coefficient    %  0.250000
  696.     % Specular reflection coefficient   %  1.000000
  697.     % Specularity true-color components %  0  0  1
  698.     % Specular exponent                 %  8
  699.     % Transparency coefficient          %  1
  700.   ; 
  701.   Backface_properties
  702.     % Ambient reflection coefficient    %  0.200000
  703.     % Diffuse reflection coefficient    %  0.250000
  704.     % Specular reflection coefficient   %  0.000000
  705.     % Specularity true-color components %  0  0  1
  706.     % Specular exponent                 %  8
  707.     % Transparency coefficient          %  1
  708.   ; 
  709.  
  710.   % *************************************************************** %
  711.   % Matrix operations to position graphics                          %
  712.   % *************************************************************** %
  713.   Concat_matrix3  1  0 postconcat  ;         % Move over one column %
  714.   Apply_to_global3  0  ; 
  715.   Execute_structure 20  ; 
  716.   
  717. End_test  ; 
  718. Sleep 5 ;
  719.