orig/anim.csh
author Axel Jacobs <axel@jaloxa.eu>
Mon, 14 Apr 2014 22:21:17 +0100
changeset 73 87fa3132a136
parent 0 0aa115157c9c
permissions -rw-r--r--
New IES test file with spaces in file name
axel@0
     1
#!/bin/csh
axel@0
     2
axel@0
     3
set tempfile=/usr/tmp/pict.$$
axel@0
     4
set destfile=~/ray/spool/anim/model
axel@0
     5
set sunrise=6
axel@0
     6
set sunset=18
axel@0
     7
set nframes=12
axel@0
     8
set i=0
axel@0
     9
while ($i < $nframes)
axel@0
    10
	oconv -i model.dark.oct "\!gensky 6 17 `ev $sunrise+\($sunset-$sunrise\)\*$i/$nframes` | xform -rz -90 -rx -90" skywindow \
axel@0
    11
	| rpict -vp 8 36 -27 -vd -.56 -.23 .79 -vu 0 1 0 -vh 39.9 -vv 27.5 \
axel@0
    12
		-x 300 -y 203 -ps 1 -ab 1 -ad 32 -ar 64 -ds .5 \
axel@0
    13
		-t 3600 -e model.day.err \
axel@0
    14
	| pfilt -1 -x 300 -y 203 -e 1.5 > $tempfile
axel@0
    15
	ra_pr $tempfile $destfile.$i
axel@0
    16
	rm $tempfile
axel@0
    17
	@ i++
axel@0
    18
end