#! /bin/csh
# filename: CDRS-03.csh

# This script is the viewset for the CDRS application for UNIX systems  
# There are 7 independent runs of viewperf
# The weights for each test are given
# Sep  6, 1994     Original version
# Nov. 8, 1994    - Change '-tn 1|2|3' options to '-cp FRAME|PRIMITIVE|VERTEX'
# Apr. 21, 1995   - Add Viewset name and version.
# May 19, 1995    - Order test from highest to lowest weight
# Feb. 10, 1996   - Updated for viewperf 4.0
#			changed -nl to -nil, removed .msh from filenames
#			deleted -nf argument
#		  - Updated tests 1 and 7 to used LINE render mode
#		  - Changed all occurances of CDRS-02 to CDRS-03
# Mar. 5, 1996  - Changed 'flag.mtv' environment variable to 'flag'
#		- Added viewperf and flag environment variables
#                 pointing to viewperf executable and flag.mtv texture
#                 respectively 
#               - Added throw-away run before each test to prime cache

set viewperf=../viewperf/viewperf
set flag=flag.mtv

echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 1: Weight 50%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-wf -dl -rm LINE -vz -blend -srcblendfunc SRC_ALPHA -dstblendfunc ONE -linesmooth -mp 10 -cp FRAME >&/dev/null
$viewperf -mh mower-wf -dl -rm LINE -vz -blend -srcblendfunc SRC_ALPHA -dstblendfunc ONE -linesmooth -mp 10 -cp FRAME
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 2: Weight 20%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -cp FRAME -mp 10 >&/dev/null
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -cp FRAME -mp 10
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 3: Weight 15%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-ts -dl -rm TMESH -vz -blend -zb -nil 1 -cp PRIMITIVE -mp 10 >&/dev/null
$viewperf -mh mower-ts -dl -rm TMESH -vz -blend -zb -nil 1 -cp PRIMITIVE -mp 10
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 4: Weight 8%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-ts -dl -rm TMESH -vz -blend -zb -nil 1 -tx $flag -te DECAL -cp PRIMITIVE -mp 10 >&/dev/null
$viewperf -mh mower-ts -dl -rm TMESH -vz -blend -zb -nil 1 -tx $flag -te DECAL -cp PRIMITIVE -mp 10
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 5: Weight 5%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -txg $flag -te MODULATE -cp FRAME -mp 10 >&/dev/null
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -txg $flag -te MODULATE -cp FRAME -mp 10
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 6: Weight 2%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -cp VERTEX -mp 10 >&/dev/null
$viewperf -mh mower-ts -dl -rm TMESH -vz -zb -nil 1 -cp VERTEX -mp 10
echo ""
echo "Viewset: CDRS-03"
echo "Viewset version: 1.1"
echo "Test Number 7: Weight 0%"
echo ""
# Run a throw-away test to load the disk cache
$viewperf -mh mower-wf -dl -rm LINE -vz -blend -srcblendfunc SRC_ALPHA -dstblendfunc ONE -mp 10 -cp FRAME >&/dev/null
$viewperf -mh mower-wf -dl -rm LINE -vz -blend -srcblendfunc SRC_ALPHA -dstblendfunc ONE -mp 10 -cp FRAME
