/***************
 * NAME:          randomsph.ray
 * DESCRIPTION:   This ARexx-programm demonstrates random colors of faces
 * AUTHOR:        Andreas Heumann
 ***************/

signal on error

options results

IF ~show('P','RAYSTORM') THEN DO
	address COMMAND 'run >NIL: <NIL: /RayStorm'
	address COMMAND WaitForPort RAYSTORM
END  

address RAYSTORM

'OBJECTPATH /objects'

'SETSCREEN 160 128'
'SETCAMERA <0,0,300> <0,0,0> <0,1,0> 25 20'
'POINTLIGHT <10,-10,100>'

'LOADOBJ randomsphere.iob'

'STARTRENDER QUICK'

'SAVEPIC randomsph.iff'

'CLEANUP'

exit 0

error:
say "Error" rc "in line" sigl ":"
GETERRORSTR rc
say result
exit 0
