1 |
greg |
1.6 |
.\" RCSid "$Id: rvu.1,v 1.5 2008/08/21 07:05:58 greg Exp $" |
2 |
greg |
1.1 |
.TH RVU 1 1/1/04 RADIANCE |
3 |
|
|
.SH NAME |
4 |
|
|
rvu - generate RADIANCE images interactively |
5 |
|
|
.SH SYNOPSIS |
6 |
|
|
.B rvu |
7 |
|
|
[ |
8 |
|
|
.B "rpict options" |
9 |
|
|
][ |
10 |
greg |
1.5 |
.B "\-n nproc" |
11 |
|
|
][ |
12 |
greg |
1.1 |
.B "\-o dev" |
13 |
|
|
][ |
14 |
|
|
.B \-b |
15 |
|
|
][ |
16 |
|
|
.B "\-pe exposure" |
17 |
|
|
] |
18 |
|
|
[ |
19 |
|
|
.B $EVAR |
20 |
|
|
] |
21 |
|
|
[ |
22 |
|
|
.B @file |
23 |
|
|
] |
24 |
|
|
.B octree |
25 |
|
|
.br |
26 |
|
|
.B "rvu [ options ] \-defaults" |
27 |
|
|
.br |
28 |
|
|
.B "rvu \-devices" |
29 |
|
|
.SH DESCRIPTION |
30 |
|
|
.I Rvu |
31 |
|
|
generates RADIANCE images using |
32 |
|
|
.I octree. |
33 |
|
|
(The octree may be given as the output of a command enclosed in quotes |
34 |
|
|
and preceded by a `!'.)\0 |
35 |
|
|
Options specify the viewing parameters as well as |
36 |
|
|
giving some control over the calculation. |
37 |
|
|
Options may be given on the command line and/or read from the |
38 |
|
|
environment and/or read from a file. |
39 |
|
|
A command argument beginning with a dollar sign ('$') is immediately |
40 |
|
|
replaced by the contents of the given environment variable. |
41 |
|
|
A command argument beginning with an at sign ('@') is immediately |
42 |
|
|
replaced by the contents of the given file. |
43 |
|
|
The options are the same as for rpict(1), with a few notable exceptions. |
44 |
|
|
The |
45 |
|
|
.I "\-r, \-z, \-S, \-P, \-PP" |
46 |
|
|
and |
47 |
|
|
.I \-t |
48 |
|
|
options are not supported, and |
49 |
|
|
.I \-o |
50 |
|
|
specifies which output device is being used instead of the output |
51 |
|
|
file. |
52 |
|
|
The |
53 |
|
|
.I "\-x, \-y" |
54 |
|
|
and |
55 |
|
|
.I \-pa |
56 |
|
|
options are unnecessary, since |
57 |
|
|
.I rvu |
58 |
|
|
scales the display image to the specified output device. |
59 |
|
|
Additionally, the |
60 |
|
|
.I \-b |
61 |
|
|
option improves the display on greyscale monitors, and |
62 |
|
|
.I \-pe |
63 |
|
|
may be used to set an initial exposure value. |
64 |
|
|
.PP |
65 |
greg |
1.5 |
The |
66 |
|
|
.I \-n |
67 |
|
|
option may be used to specify multiple processes, |
68 |
|
|
to accelerate rendering. |
69 |
|
|
.PP |
70 |
greg |
1.1 |
In the second form, the default values |
71 |
|
|
for the options are printed with a brief explanation. |
72 |
|
|
In the third form, the list of supported output devices |
73 |
|
|
is displayed. |
74 |
|
|
.PP |
75 |
|
|
.I rvu |
76 |
|
|
starts rendering the image from the selected viewpoint and |
77 |
|
|
gradually improves the resolution of the display until |
78 |
|
|
interrupted by keyboard input. |
79 |
|
|
.I rvu |
80 |
|
|
then issues a prompt (usually ':') and accepts a command |
81 |
|
|
line from the user. |
82 |
|
|
.I rvu |
83 |
|
|
may also stop its calculation and wait for command input if |
84 |
|
|
the resolution of the display has reached the resolution of the |
85 |
|
|
graphics device. |
86 |
|
|
At this point, it will give the 'done:' prompt and await further |
87 |
|
|
instructions. |
88 |
|
|
If |
89 |
|
|
.I rvu |
90 |
|
|
runs out of memory due to lack of resources to store its computed |
91 |
|
|
image, it will give the 'out of memory:' prompt. |
92 |
|
|
At this prompt, the user can save the image, quit, or even restart |
93 |
|
|
a new image, although this is not generally recommended |
94 |
|
|
on virtual memory machines for efficiency reasons. |
95 |
|
|
.PP |
96 |
|
|
.I rvu |
97 |
|
|
is not meant to be a rendering program, and we strongly recommend that |
98 |
|
|
.I rpict(1) |
99 |
|
|
be used instead for that purpose. |
100 |
|
|
Since |
101 |
|
|
.I rpict(1) |
102 |
|
|
does not store its image in memory or update any display of its output, |
103 |
|
|
it is much faster and less wasteful of its resources than |
104 |
|
|
.I rvu. |
105 |
|
|
.I rvu |
106 |
|
|
is intended as a quick interactive program for deciding viewpoints |
107 |
|
|
and debugging scene descriptions and is not suited for producing |
108 |
|
|
polished images. |
109 |
|
|
.SH COMMANDS |
110 |
|
|
Once the program starts, a number of commands can be used |
111 |
|
|
to control it. |
112 |
|
|
A command is given by its name, which can be abbreviated, |
113 |
|
|
followed by its arguments. |
114 |
|
|
.TP 10n |
115 |
|
|
.BI aim " [ mag [ x y z ] ]" |
116 |
|
|
Zoom in by |
117 |
|
|
.I "mag" |
118 |
|
|
on point |
119 |
|
|
.I "x y z". |
120 |
|
|
The view point is held constant; |
121 |
|
|
only the view direction and size are changed. |
122 |
|
|
If |
123 |
|
|
.I "x y z" |
124 |
|
|
is missing, the cursor is used to select the view center. |
125 |
|
|
A negative magnification factor means zoom out. |
126 |
|
|
The default factor is one. |
127 |
|
|
.TP |
128 |
|
|
.BR ^C |
129 |
|
|
Interrupt. |
130 |
|
|
Go to the command line. |
131 |
|
|
.TP |
132 |
|
|
.BI exposure " [ spec ]" |
133 |
|
|
Adjust exposure. |
134 |
|
|
The number |
135 |
|
|
.I spec |
136 |
|
|
is a multiplier used to compensate the average exposure. |
137 |
|
|
A value of 1 renormalizes the image to the computed average, which |
138 |
|
|
is usually done immediately after startup. |
139 |
|
|
If |
140 |
|
|
.I spec |
141 |
|
|
begins with a '+' or '-', |
142 |
|
|
the compensation is interpreted in f-stops (ie. the power of two). |
143 |
|
|
If |
144 |
|
|
.I spec |
145 |
|
|
begins with an '=', an absolute setting is performed. |
146 |
|
|
An '=' by itself permits interactive display and setting of the exposure. |
147 |
|
|
If |
148 |
|
|
.I spec |
149 |
|
|
begins with an '@', the exposure is adjusted to present similar |
150 |
|
|
visibility to what would be experienced in the real environment. |
151 |
|
|
If |
152 |
|
|
.I spec |
153 |
|
|
is absent, or an '@' is followed by nothing, then |
154 |
|
|
the cursor is used to pick a specific image |
155 |
|
|
location for normalization. |
156 |
|
|
.TP |
157 |
greg |
1.2 |
.BI focus " [distance]" |
158 |
|
|
Set focus distance for depth-of-field sampling. |
159 |
|
|
If a distance in world coordinates is absent, then the cursor |
160 |
|
|
is used to choose a point in the scene on which to focus. |
161 |
|
|
(The focus distance setting does not affect rendering in |
162 |
greg |
1.6 |
.I rvu, |
163 |
greg |
1.2 |
but can be used in |
164 |
|
|
.I rpict |
165 |
|
|
with the |
166 |
|
|
.I \-pd |
167 |
|
|
option to simulate depth-of-field on views saved from |
168 |
greg |
1.6 |
.I rvu.) |
169 |
greg |
1.2 |
.TP |
170 |
greg |
1.1 |
.BI frame " [ xmin ymin xmax ymax ]" |
171 |
|
|
Set frame for refinement. |
172 |
|
|
If coordinates are absent, the cursor is used to |
173 |
|
|
pick frame boundaries. |
174 |
|
|
If ``all'' is specified, the frame is reset to the entire image. |
175 |
|
|
.TP |
176 |
|
|
.BR free |
177 |
|
|
Free cached object structures and associated data. |
178 |
|
|
This command may be useful when memory is low and a completely |
179 |
|
|
different view is being generated from the one previous. |
180 |
|
|
.TP |
181 |
|
|
.BI last " [ file ]" |
182 |
|
|
Restore the previous view. |
183 |
|
|
If a view or picture |
184 |
|
|
.I file |
185 |
|
|
is specified, the parameters are taken from the last view entry |
186 |
|
|
in the file. |
187 |
|
|
.TP |
188 |
|
|
.BI L " [ vw [ rfile ] ]" |
189 |
|
|
Load parameters for view |
190 |
|
|
.I vw |
191 |
|
|
from the |
192 |
|
|
.I rad(1) |
193 |
|
|
input file, |
194 |
|
|
.I rfile. |
195 |
|
|
Both |
196 |
|
|
.I vw |
197 |
|
|
and |
198 |
|
|
.I rfile |
199 |
|
|
must be given the first call, but subsequent calls will use the last |
200 |
|
|
.I rfile |
201 |
|
|
as a default, and "1" as the default view (ie. the first view |
202 |
|
|
appearing in |
203 |
|
|
.I rfile). |
204 |
|
|
If |
205 |
|
|
.I rvu |
206 |
|
|
was started by |
207 |
|
|
.I rad, |
208 |
|
|
then the |
209 |
|
|
.I rfile |
210 |
|
|
parameter will initially default to the rad input file used. |
211 |
|
|
.TP |
212 |
|
|
.BI move " [ mag [ x y z ] ]" |
213 |
|
|
Move camera |
214 |
|
|
.I mag |
215 |
|
|
times closer to point |
216 |
|
|
.I "x y z". |
217 |
|
|
For a perspective projection (or fisheye view), |
218 |
|
|
only the view point is changed; |
219 |
|
|
the view direction and size remain constant. |
220 |
|
|
The view size must be modified in a parallel projection since |
221 |
|
|
it determines magnification. |
222 |
|
|
If |
223 |
|
|
.I "x y z" |
224 |
|
|
is missing, the cursor is used to select the view center. |
225 |
|
|
A negative magnification factor decreases the object size. |
226 |
|
|
The default factor is one. |
227 |
|
|
Care must be taken to avoid moving behind or inside other objects. |
228 |
|
|
.TP |
229 |
greg |
1.5 |
.BI new " [ nproc ]" |
230 |
|
|
Restart the image, using the specified number of rendering processes. |
231 |
greg |
1.1 |
Usually used after the "set" command. |
232 |
|
|
.TP |
233 |
greg |
1.6 |
.BI origin " [ xo yo zo [ xd yd zd ] ]" |
234 |
|
|
Change view origin to the indicated world position |
235 |
|
|
.I "xo yo zo" |
236 |
|
|
looking in the direction |
237 |
|
|
.I "xd yd zd." |
238 |
|
|
If the direction is missing, the current view direction is used. |
239 |
|
|
If the origin is missing, the cursor is used to select the |
240 |
|
|
view origin, and the direction will be determined by the |
241 |
|
|
(reoriented) surface normal. |
242 |
|
|
The view type and size will not be altered, but the up vector |
243 |
|
|
may be changed if the new direction coincides. |
244 |
|
|
.TP |
245 |
greg |
1.1 |
.BI pivot " angle [ elev [ mag [ x y z ] ] ]" |
246 |
|
|
Similar to the "move" command, but pivots the view about a selected point. |
247 |
|
|
The |
248 |
|
|
.I angle |
249 |
|
|
is measured in degrees around the view up vector using the right hand rule. |
250 |
|
|
The optional |
251 |
|
|
.I elev |
252 |
|
|
is the elevation in degrees from the pivot point; positive raises the view point |
253 |
|
|
to look downward and negative lowers the view point to look upward. |
254 |
|
|
.TP |
255 |
|
|
.BR quit |
256 |
|
|
Quit the program. |
257 |
|
|
.TP |
258 |
|
|
.BR ^R |
259 |
|
|
Redraw the image. |
260 |
|
|
Use when the display gets corrupted. |
261 |
|
|
On some displays, occassionally forcing a redraw can improve appearance, |
262 |
|
|
as more color information is available and the driver can make a better |
263 |
|
|
color table selection. |
264 |
|
|
.TP |
265 |
|
|
.BI rotate " angle [ elev [ mag ] ]" |
266 |
|
|
Rotate the camera horizontally by |
267 |
|
|
.I angle |
268 |
|
|
degrees. |
269 |
|
|
If an elevation is specified, the camera looks upward |
270 |
|
|
.I elev |
271 |
|
|
degrees. |
272 |
|
|
(Negative means look downward.) |
273 |
|
|
.TP |
274 |
|
|
.BI set " [ var [ val ] ]" |
275 |
|
|
Check/change program variable. |
276 |
|
|
If |
277 |
|
|
.I var |
278 |
|
|
is absent, the list of available variables is displayed. |
279 |
|
|
If |
280 |
|
|
.I val |
281 |
|
|
is absent, the current value of the variable is displayed |
282 |
|
|
and changed interactively. |
283 |
|
|
Otherwise, the variable |
284 |
|
|
.I var |
285 |
|
|
assumes the value |
286 |
|
|
.I val. |
287 |
|
|
Variables include: |
288 |
|
|
ambient value (av), |
289 |
|
|
ambient value weight (aw), |
290 |
|
|
ambient bounces (ab), |
291 |
|
|
ambient accuracy (aa), |
292 |
|
|
ambient divisions (ad), |
293 |
|
|
ambient radius (ar), |
294 |
|
|
ambient samples (as), |
295 |
|
|
black&white (b), |
296 |
greg |
1.4 |
back face visibility (bv), |
297 |
greg |
1.1 |
direct jitter (dj), |
298 |
|
|
direct sampling (ds), |
299 |
|
|
direct threshold (dt), |
300 |
|
|
direct visibility (dv), |
301 |
|
|
irradiance (i), |
302 |
|
|
limit weight (lw), |
303 |
|
|
limit recursion (lr), |
304 |
|
|
medium extinction (me), |
305 |
|
|
medium albedo (ma), |
306 |
|
|
medium eccentricity (mg), |
307 |
|
|
medium sampling (ms), |
308 |
|
|
pixel sample (ps), |
309 |
|
|
pixel threshold (pt), |
310 |
greg |
1.4 |
specular jitter (sj), |
311 |
|
|
specular threshold (st), and |
312 |
|
|
uncorrelated sampling (u). |
313 |
greg |
1.1 |
Once a variable has been changed, the "new" command can be used |
314 |
|
|
to recompute the image with the new parameters. |
315 |
|
|
If a program variable is not available here, it may show up under |
316 |
|
|
some other command or it may be impossible to change |
317 |
|
|
once the program is running. |
318 |
|
|
.TP |
319 |
|
|
.BI trace " [ xbeg ybeg zbeg xdir ydir zdir ]" |
320 |
|
|
Trace a ray. |
321 |
|
|
If the ray origin and direction are absent, the cursor is used |
322 |
|
|
to pick a location in the image to trace. |
323 |
|
|
The object intersected and its material, location and value are displayed. |
324 |
|
|
.TP |
325 |
|
|
.BI view " [ file [ comments ] ]" |
326 |
|
|
Check/change view parameters. |
327 |
|
|
If |
328 |
|
|
.I file |
329 |
|
|
is present, the view parameters are appended to a file, followed by |
330 |
|
|
.I comments |
331 |
|
|
if any. |
332 |
|
|
Alternatively, view options may be given directly on the command line |
333 |
|
|
instead of an output view file. |
334 |
|
|
Otherwise, view parameters are displayed and changed interactively. |
335 |
|
|
.TP |
336 |
|
|
.BI V " [ vw [ rfile ] ]" |
337 |
|
|
Append the current view as view |
338 |
|
|
.I vw |
339 |
|
|
in the rad file |
340 |
|
|
.I rfile. |
341 |
|
|
Compliment to |
342 |
|
|
.I L |
343 |
|
|
command. |
344 |
|
|
Note that the view is simply appended to the file, and previous |
345 |
|
|
views with the same name should be removed before using the file |
346 |
|
|
with |
347 |
|
|
.I rad. |
348 |
|
|
.TP |
349 |
|
|
.BI write " [ file ]" |
350 |
|
|
Write picture to |
351 |
|
|
.I file. |
352 |
|
|
If argument is missing, the current file name is used. |
353 |
|
|
.TP |
354 |
|
|
.BR ^Z |
355 |
|
|
Stop the program. |
356 |
|
|
The screen will be redrawn when the program resumes. |
357 |
|
|
.SH ENVIRONMENT |
358 |
|
|
RAYPATH the directories to check for auxiliary files. |
359 |
|
|
DISPLAY_GAMMA the value to use for monitor gamma correction. |
360 |
|
|
.SH AUTHOR |
361 |
|
|
Greg Ward |
362 |
|
|
.SH "SEE ALSO" |
363 |
|
|
getinfo(1), lookamb(1), oconv(1), pfilt(1), rad(1), rpict(1), rtrace(1) |