% /*--------------------------------------------------------------------*\ | | Copyright (c)1989,1990,1991 National Computer Graphics Association | | Permission is granted to any individual or instititution | to use, copy, or redistribute this software so long as it is not | sold for profit, provided this copyright notice is retained. | | Developed for the | National Computer Graphics Association | 2722 Merrilee Drive | Fairfax, VA 22031 | (703) 698-9600 | | by | SimGraphics Engineering Corporation | 1137 Huntington Drive, Suite A | South Pasadena, CA 91030 | (213) 255-0900 |--------------------------------------------------------------------- | | Author : SimGraphics Engineering Corporation | File : ambient.v09 | Date : Tue Jul 10 16:43:18 PDT 1990 | Project : Picture Level Benchmark | Description : See ambient.doc | Status : Version 1.02 | Revisions : 1.01: Apply_to_global3 removed from data file | and moved to inside test loop. This eased | problems for PHIGS ports. | | 1.02: | Files ambient.d02 d04 d06 d08 d10 d12 d14 | have been dropped. Any verb file | that use to call these files now call | files ambient.d01 d03 d05 d07 d09 d11 d13 | respectively. | DAC: Reversed order of vertices of 1st polygon | in data files to make it backfacing. | \*--------------------------------------------------------------------*/ % Configuration rgb double_buffer true_color ; Read_geometry_file "ambient.d09"; Specify_report_file "ambient.r09"; Default_view_specification 1 500 parallel; Active_view 1 ; % *********************************************************************** % % Set up static attributes % % *********************************************************************** % HLHS_Removal hlhs_disable ; Text_prec Stroke ; Char_exp 1 ; Text_color 1 1 1 ; char_height 30 ; Background_color 0.300000 0.300000 0.800000 ; Interior_style solid ; Interior_color 1.000000 1.000000 1.000000 ; Backface_interior_color 1.000000 1.000000 1.000000 ; Interior_lighting 2 ; Edge_flag enable ; Edge_type 0 ; Edge_color 1.000000 0.800000 0.600000 ; % ****************************************************************** % % Set up matrix for position geometry on the screen % % ****************************************************************** % Identity3 0 ; Apply_to_global3 0 ; Translate3 0 -375 375 0 Replace ; % Set Initial position % Push_matrix3 ; % Push Initial position % Translate3 1 250 0 0 Replace ; % Set Column offset % Translate3 2 0 -250 0 Replace ; % Set Row offset % % Create a ramped light table % Define_light % Index in light source table % 1 % Light source color components % 1.000000 1.000000 1.000000 % Non-directional light source % Ambient_light ; Define_light % Index in light source table % 2 % Light source color components % 1.000000 0.660000 0.660000 % Non-directional light source % Ambient_light ; Define_light % Index in light source table % 3 % Light source color components % 1.000000 0.330000 0.330000 % Non-directional light source % Ambient_light ; Define_light % Index in light source table % 4 % Light source color components % 1.000000 0.000000 0.000000 % Non-directional light source % Ambient_light ; % *********************************************************************** % % % % % % Begin Test Loop % % % % *********************************************************************** % Begin_test 1 ; Text3 -450 -450 0 "Ambient Test: TRI3 true parallel"; Text3 -450 -495 0 "ambient.v09"; % *********************************************************************** % % Row 1 Column 1 % % *********************************************************************** % Interior_shading 1; Surface_properties % Ambient reflection coefficient % 0.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Light_state activate_list { 1 } deactivate_list { 2 } ; Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 1 Column 2 % % *********************************************************************** % Interior_shading 2; Surface_properties % Ambient reflection coefficient % 0.250000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.750000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; % *********************************************************************** % % Row 1 Column 3 % % *********************************************************************** % Interior_shading 3; Surface_properties % Ambient reflection coefficient % 0.750000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.250000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 1 Column 4 % % *********************************************************************** % Interior_shading 4; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; % *********************************************************************** % % Row 2 Column 1 % % *********************************************************************** % Interior_shading 1; Surface_properties % Ambient reflection coefficient % 0.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons not identified % 0 % Backfacing poly culled (ignored) % 1; Pop_matrix3 ; Concat_matrix3 2 0 postconcat ; % Move down one row % Push_matrix3 ; Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 2 Column 2 % % *********************************************************************** % Interior_shading 2; Surface_properties % Ambient reflection coefficient % 0.250000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.750000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons not identified % 0 % Frontfacing poly culled (ignored) % 2; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; % *********************************************************************** % % Row 2 Column 3 % % *********************************************************************** % Interior_shading 3; Surface_properties % Ambient reflection coefficient % 0.750000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.250000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons not identified % 0 % No backface culling % 0; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 2 Column 4 % % *********************************************************************** % Interior_shading 4; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons not identified % 0 % Backfacing poly culled (ignored) % 1; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; % *********************************************************************** % % Row 3 Column 1 % % *********************************************************************** % Interior_shading 1; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.500000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Light_state activate_list { 4 } deactivate_list { 1 } ; Pop_matrix3 ; Concat_matrix3 2 0 postconcat ; % Move down one row % Push_matrix3 ; Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 3 Column 2 % % *********************************************************************** % Interior_shading 2; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.500000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Light_state activate_list { 3 } deactivate_list { 4 } ; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; % *********************************************************************** % % Row 3 Column 3 % % *********************************************************************** % Interior_shading 3; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.500000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Light_state activate_list { 2 } deactivate_list { 3 } ; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Execute_structure 20 ; % *********************************************************************** % % Row 3 Column 4 % % *********************************************************************** % Interior_shading 4; Surface_properties % Ambient reflection coefficient % 1.000000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_properties % Ambient reflection coefficient % 0.500000 % Diffuse reflection coefficient % 0.000000 % Specular reflection coefficient % 0.000000 % Specularity true-color components % 0.000000 0.000000 0.000000 % Specular exponent % 0.000000 % Transparency coefficient % 1.000000 ; Backface_processing % Backfacing polygons are identified % 1 % No backface culling % 0; Light_state activate_list { 1 } deactivate_list { 2 } ; Concat_matrix3 1 0 postconcat ; % Move over one column % Apply_to_global3 0 ; Call_structure 20 ; End_test ; Sleep 5 ;