bin/rlux.pl
author Axel Jacobs <axel@jaloxa.eu>
Mon, 27 Jun 2011 21:08:08 +0100
changeset 24 c273e54dd38f
parent 8 9ed02f081b72
permissions -rwxr-xr-x
Upped status of objpict and objview to 3.

#!/usr/bin/perl
#
# Compute illuminance from ray origin and direction
#
# This is re-write of Greg's rlux.csh

use strict;
use warnings;

if($#ARGV < 0) {
	print "Usage: $0 [rtrace args] octree";
	exit(1);
}

my $args = join(' ', @ARGV);
my $cmd = "rtrace -i+ -dv- -h- -x 1 $args";
$cmd .= " | rcalc -e '$1=47.4*$1+120*$2+11.6*$3' -u";
system "$cmd";

#EOF