% /*--------------------------------------------------------------------*\ | | Copyright (c)1989,1990 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 : transp.v01 | Date : Tue Jul 10 16:43:18 PDT 1990 | Project : Picture Level Benchmark | Description : See transp.doc | Status : Version 1.02 | Revisions : 1.01: NONE | | 1.02: | Define_light properties were changed. | | Files transp.d02 d04 d06 d08 d10 | have been dropped. Any verb file | that use to call these files now call | files transp.d01 d03 d05 d07 d09 respectivel. | \*--------------------------------------------------------------------*/ % Configuration rgb double_buffer true_color ; Read_geometry_file "matrix.d01" ; Specify_report_file "matrix.r01" ; Default_view_specification 1 500 parallel ; Active_view 1 ; HLHS_Removal hlhs_enable ; Background_color 0.100000 0.100000 0.300000 ; Backface_interior_color 1.000000 1.000000 1.000000 ; Interior_shading 1 ; Interior_lighting 1 ; Backface_processing 0 0 ; Interior_style solid ; Interior_color 0.500000 0.500000 0.500000 ; Edge_flag enable ; Edge_color 0.900000 0.900000 0.900000; Translate3 11 0 -2 0 Replace ; Scale3 11 1 1.330000 1 Postconcat ; Matrix3 12 { 0.000000 -1.000000 0.000000 0.000000 } { 1.330000 0.000000 0.000000 -2.660000 } { 0.000000 0.000000 1.000000 0.000000 } { 0.000000 0.000000 0.000000 1.000000 } Replace; Matrix3 13 { 2 0 0 0 } { 0 2 0 0 } { 0 0 1 0 } { 0 0 0 1 } Replace; Scale3 14 2 2 1 Replace ; Apply_to_local3 14 Replace; Rotate3 14 90 Z_axis Replace ; Apply_to_global3 14; Get_matrix3 14 Composite_modelling Replace; Identity3 30 ; Apply_to_local3 30 Replace; Apply_to_global3 30 ; Translate3 15 0 0 -2 Replace ; Scale3 15 1 1 1.330000 Postconcat ; Rotate_XYZ3 30 90 0 -90 Replace ; Invert_matrix3 30 ; Concat_matrix3 30 15 Postconcat ; Translate3 16 0 -2 0 Replace ; Scale3 16 1 1.330000 1 Postconcat ; Rotate_XYZ3 16 90 0 90 Postconcat ; Rotate3 16 -90 X_axis Postconcat ; Scale3 17 1 2 2 Replace ; Rotate3 17 90 Z_axis Postconcat ; Rotate3 17 -90 X_axis Postconcat ; Scale3 18 1 2 2 Replace ; Rotate3 18 90 X_axis Postconcat ; Rotate3 18 90 Z_axis Postconcat ; Rotate3 18 -90 X_axis Postconcat ; Identity3 1 ; Apply_to_global3 1 ; Translate3 0 -375 400 0 Replace ; % Set Initial position % Translate3 1 250 0 0 Replace ;% Set Column offset % Translate3 2 0 -200 0 Replace ; % Set Row offset % Scale3 3 20 20 1 Replace; Push_matrix3 ; % Push Initial position % % *********************************************************************** % % % % % % Begin Test Loop % % % % *********************************************************************** % Begin_test 1 ; Text_prec Stroke ; Char_exp 1 ; Text_color 1 1 1 ; char_height 40 ; Text3 -450 -450 0 "Matrix Test" ; % *********************************************************************** % % Row 1 Column 1 % % *********************************************************************** % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 11 0 preconcat ; Apply_to_global3 0 ; Execute_structure 1; Pop_matrix3 ; Concat_matrix3 17 0 preconcat ; Apply_to_global3 0 ; Execute_structure 7; Pop_matrix3 ; % *********************************************************************** % % Row 1 Column 2 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 12 0 preconcat ; Apply_to_global3 0 ; Execute_structure 2; Pop_matrix3 ; Concat_matrix3 14 0 preconcat ; Apply_to_global3 0 ; Execute_structure 4; Pop_matrix3 ; % *********************************************************************** % % Row 1 Column 3 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 13 0 preconcat ; Apply_to_global3 0 ; Execute_structure 3; Pop_matrix3 ; Concat_matrix3 11 0 preconcat ; Apply_to_global3 0 ; Execute_structure 1; Pop_matrix3 ; % *********************************************************************** % % Row 1 Column 4 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 14 0 preconcat ; Apply_to_global3 0 ; Execute_structure 4; Pop_matrix3 ; Concat_matrix3 12 0 preconcat ; Apply_to_global3 0 ; Execute_structure 2; Pop_matrix3 ; % *********************************************************************** % % Row 2 Column 1 % % *********************************************************************** % Pop_matrix3 ; Concat_matrix3 2 0 postconcat ; % Move down one row % Push_matrix3 ; Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 15 0 preconcat ; Apply_to_global3 0 ; Execute_structure 5; Pop_matrix3 ; Concat_matrix3 18 0 preconcat ; Apply_to_global3 0 ; Execute_structure 8; Pop_matrix3 ; % *********************************************************************** % % Row 2 Column 2 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 16 0 preconcat ; Apply_to_global3 0 ; Execute_structure 6; Pop_matrix3 ; Concat_matrix3 13 0 preconcat ; Apply_to_global3 0 ; Execute_structure 3; Pop_matrix3 ; % *********************************************************************** % % Row 2 Column 3 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 17 0 preconcat ; Apply_to_global3 0 ; Execute_structure 7; Pop_matrix3 ; Concat_matrix3 15 0 preconcat ; Apply_to_global3 0 ; Execute_structure 5; Pop_matrix3 ; % *********************************************************************** % % Row 2 Column 4 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 18 0 preconcat ; Apply_to_global3 0 ; Execute_structure 8; Pop_matrix3 ; Concat_matrix3 16 0 preconcat ; Apply_to_global3 0 ; Execute_structure 6; Pop_matrix3 ; % *********************************************************************** % % Row 3 Column 1 % % *********************************************************************** % Pop_matrix3 ; Concat_matrix3 2 0 postconcat ; % Move down one row % Push_matrix3 ; Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 11 0 preconcat ; Apply_to_global3 0 ; Execute_structure 1; Pop_matrix3 ; Concat_matrix3 17 0 preconcat ; Apply_to_global3 0 ; Execute_structure 7; Pop_matrix3 ; % *********************************************************************** % % Row 3 Column 2 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 12 0 preconcat ; Apply_to_global3 0 ; Execute_structure 2; Pop_matrix3 ; Concat_matrix3 14 0 preconcat ; Apply_to_global3 0 ; Execute_structure 4; Pop_matrix3 ; % *********************************************************************** % % Row 3 Column 3 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 13 0 preconcat ; Apply_to_global3 0 ; Execute_structure 3; Pop_matrix3 ; Concat_matrix3 11 0 preconcat ; Apply_to_global3 0 ; Execute_structure 1; Pop_matrix3 ; % *********************************************************************** % % Row 3 Column 4 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 14 0 preconcat ; Apply_to_global3 0 ; Execute_structure 4; Pop_matrix3 ; Concat_matrix3 12 0 preconcat ; Apply_to_global3 0 ; Execute_structure 2; Pop_matrix3 ; % *********************************************************************** % % Row 4 Column 1 % % *********************************************************************** % Pop_matrix3 ; Concat_matrix3 2 0 postconcat ; % Move down one row % Push_matrix3 ; Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 15 0 preconcat ; Apply_to_global3 0 ; Execute_structure 5; Pop_matrix3 ; Concat_matrix3 18 0 preconcat ; Apply_to_global3 0 ; Execute_structure 8; Pop_matrix3 ; % *********************************************************************** % % Row 4 Column 2 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 16 0 preconcat ; Apply_to_global3 0 ; Execute_structure 6; Pop_matrix3 ; Concat_matrix3 13 0 preconcat ; Apply_to_global3 0 ; Execute_structure 3; Pop_matrix3 ; % *********************************************************************** % % Row 4 Column 3 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 17 0 preconcat ; Apply_to_global3 0 ; Execute_structure 7; Pop_matrix3 ; Concat_matrix3 15 0 preconcat ; Apply_to_global3 0 ; Execute_structure 5; Pop_matrix3 ; % *********************************************************************** % % Row 4 Column 4 % % *********************************************************************** % Concat_matrix3 1 0 postconcat ; % Move over one column % Push_matrix3 ; Concat_matrix3 3 0 preconcat ; Push_matrix3 ; Concat_matrix3 18 0 preconcat ; Apply_to_global3 0 ; Execute_structure 8; Pop_matrix3 ; Concat_matrix3 0 0 preconcat ; Apply_to_global3 0 ; Local_transformation3 { 0.000004 -0.000005 20.000000 375.000000 } { 0.000004 26.600000 0.000004 -253.199997 } { -1.000000 0.000000 0.000000 0.000000 } { 0.000000 0.000000 0.000000 1.000000 } Replace ; Global_transformation3 { 1.000000 0.000000 0.000000 0.000000 } { 0.000000 1.000000 0.000000 0.000000 } { 0.000000 0.000000 1.000000 0.000000 } { 0.000000 0.000000 0.000000 1.000000 } ; Execute_structure 6; Pop_matrix3 ; End_test ; Sleep 5 ;