#!/bin/csh -f
###########################################################################
#
#      Test_surfs
#
#	This is a script file for testing surfaces.  It takes a list of
#	surfaces (set below) and renders the testsurf.ray scene file with
#	each surface in the list, creating a picture file for each surface.
#
#	Please do not edit this file, or any of the other files in
#	this package!  Make additions to these in your own separate
#	file.  If you think you have something that should be added
#	permanently, please send it to Larry Coffin and/or David
#	DeBry (email addresses listed below).  If we include it in
#	the next release, we'll put your name in the contributor's
#	list.
#
#      Contributors (in alphabetical order):
#          Larry Coffin <lcoffin@clciris.chem.umr.edu>
#          David DeBry <ddebry@dsd.es.com>
#

###########################################################################
# directory for defs.rh package
#
set defsdir = /usr/people/c/lcoffin/include/rsdefs

###########################################################################
# list of surfaces to render
#
set surfs = (RSSgold RSSambulance RSSglass_new)

foreach i ($surfs)
	###################################################################
	# for the surface "RSSabc" - picture file is named test_RSSabc.rle
	#
	set outfile = test_$i.rle

	echo
	echo Working on $outfile with surface $i....
	echo

	myshade -P "-I$defsdir -DTEST_SURF=$i" < testsurf.ray > $outfile

	###################################################################
	# automatically compress the picture file (uncomment to use)
	#
	# compress $outfile
end


echo Done with batch.

