ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pmblur.csh
Revision: 2.2
Committed: Sat Feb 22 02:07:27 2003 UTC (21 years, 2 months ago) by greg
Content type: application/x-csh
Branch: MAIN
CVS Tags: rad3R5, rad3R6, rad3R6P1
Changes since 2.1: +1 -1 lines
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# Content
1 #!/bin/csh -f
2 # RCSid: $Id$
3 #
4 # Generate views for motion blurring on picture
5 #
6 if ($#argv != 4) then
7 echo "Usage: $0 speed nsamp v0file v1file" >/dev/tty
8 exit 1
9 endif
10 set s = "$1"
11 set n = "$2"
12 set vc = "$3"
13 set vn = "$4"
14 cnt $n | rcalc -e `vwright C < $vc` -e `vwright N < $vn` \
15 -e "t=$s/$n"'*($1+rand($1))' \
16 -e 'opx=(1-t)*Cpx+t*Npx;opy=(1-t)*Cpy+t*Npy;opz=(1-t)*Cpz+t*Npz' \
17 -e 'odx=(1-t)*Cdx+t*Ndx;ody=(1-t)*Cdy+t*Ndy;odz=(1-t)*Cdz+t*Ndz' \
18 -e 'oux=(1-t)*Cux+t*Nux;ouy=(1-t)*Cuy+t*Nuy;ouz=(1-t)*Cuz+t*Nuz' \
19 -e 'oh=(1-t)*Ch+t*Nh;ov=(1-t)*Cv+t*Nv' \
20 -o 'VIEW= -vp ${opx} ${opy} ${opz} -vd ${odx} ${ody} ${odz} -vu ${oux} ${ouy} ${ouz} -vh ${oh} -vv ${ov}'