117 |
|
int overture = 0; /* overture calculation needed */ |
118 |
|
|
119 |
|
char *progname; /* global argv[0] */ |
120 |
+ |
char *rifname; /* global rad input file name */ |
121 |
|
|
122 |
|
char radname[MAXPATH]; /* root Radiance file name */ |
123 |
|
|
156 |
|
} |
157 |
|
if (i >= argc) |
158 |
|
goto userr; |
159 |
+ |
rifname = argv[i]; |
160 |
|
/* assign Radiance root file name */ |
161 |
< |
rootname(radname, argv[i]); |
161 |
> |
rootname(radname, rifname); |
162 |
|
/* load variable values */ |
163 |
< |
load(argv[i]); |
163 |
> |
load(rifname); |
164 |
|
/* get any additional assignments */ |
165 |
|
for (i++; i < argc; i++) |
166 |
|
setvariable(argv[i]); |
1069 |
|
return; |
1070 |
|
if (sayview) |
1071 |
|
printview(vw); |
1072 |
< |
sprintf(combuf, "rview %s%s ", vw, opts); |
1072 |
> |
sprintf(combuf, "rview %s%s -R %s ", vw, opts, rifname); |
1073 |
|
if (rvdevice != NULL) |
1074 |
|
sprintf(combuf+strlen(combuf), "-o %s ", rvdevice); |
1075 |
|
strcat(combuf, vval(OCTREE)); |