ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rtpict.1
Revision: 1.15
Committed: Tue Dec 12 17:18:27 2023 UTC (16 months, 3 weeks ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -2 lines
Log Message:
docs: added missing option in example

File Contents

# Content
1 .\" RCSid "$Id: rtpict.1,v 1.14 2023/12/12 16:31:45 greg Exp $"
2 .TH RTPICT 1 3/19/2018 RADIANCE
3 .SH NAME
4 rtpict - generate a RADIANCE picture, hyperspectral image, or layers using rtrace
5 .SH SYNOPSIS
6 .B rtpict
7 .B "-n nproc"
8 [
9 .B -co
10 ][
11 .B "-o[vrxlLRXnNsmM] out_dir"
12 ][
13 .B "-d ref_depth/unit"
14 ]
15 [
16 .B "rpict options"
17 ]
18 [
19 .B @file
20 ]
21 .B octree
22 .SH DESCRIPTION
23 .I Rtpict
24 is a script that generates a picture or hyperspectral image
25 from the RADIANCE scene given in
26 .I octree
27 and sends it to the standard output, or to a file specified with the
28 .I \-o
29 option.
30 Most options and defaults are the same as
31 .I rpict(1),
32 although a few options are silently ignored, and the
33 .I rtrace(1)
34 .I \-co
35 boolean switch is supported.
36 Options incompatible with multi-processing may generate an error.
37 .PP
38 The
39 .I rtrace
40 tool is called with
41 .I vwrays(1)
42 to perform the actual work.
43 This enables the
44 .I \-n
45 option for multiprocessing on platforms that support it.
46 If the
47 .I \-n
48 option is not specified or is set to 1, then
49 .I rpict
50 is called directly.
51 There is no benefit in setting the number of processes to anything
52 greater than the number of virtual cores available on your machine.
53 Also, it is very important to set the
54 .I \-af
55 option if an irradiance cache is being generated;
56 otherwise, your speed-up will be far from linear.
57 .PP
58 If the
59 .I \-o
60 option has additional characters corresponding to output types from
61 .I rtrace,
62 it must be followed by the name of a directory that either exists or
63 will be created to contain image layers, one per output type.
64 The supported types are listed below, and do not include types that
65 are useless or have no convenient representation.
66 The table below shows the correspondence between output type and file name
67 in the specified directory:
68 .sp
69 .nf
70 v radiance.hdr
71 r r_refl.hdr
72 x r_unrefl.hdr
73 l d_effective.dpt
74 L d_firstsurf.dpt
75 R d_refl.dpt
76 X d_unrefl.dpt
77 n perturbed.nrm
78 N unperturbed.nrm
79 s surface.idx
80 m modifier.idx
81 M material.idx
82 .fi
83 .sp
84 Different encodings are associated with different data types.
85 Color data (from the 'v', 'r', and 'x' types) will be converted to
86 a flat RGBE picture by
87 .I pvalue(1),
88 unless the
89 .I \-co+
90 option is specified and
91 .I \-cs
92 is greater than 3.
93 In this case, a hyperspectral image will be generated for each
94 of the value types, converted by
95 .I rcomb(1)
96 and with its suffix set to ".hsr" rather than ".hdr".
97 Distances (from the 'l', 'L', 'R', and 'X' types) will be
98 converted to a 16-bit representation by
99 .I rcode_depth(1),
100 and the
101 .I \-d
102 option should be used to assign the reference (median) depth and world
103 units, which applies to the overall scene.
104 Surface normals (from the 'n' and 'N' types) will be converted
105 to a 32-bit representation by
106 .I rcode_norm(1).
107 Finally, identifiers (from the 's', 'm', and 'M' types) will be
108 converted to a 16-bit index format by
109 .I rcode_ident(1).
110 .PP
111 If the
112 .I \-i
113 option is used to turn on irradiane output, then the picture associated
114 with the 'v' type will be renamed
115 .I "irradiance.hdr"
116 or
117 .I "irradiance.hsr"
118 and some other output types become irrelevant
119 (i.e., 'r', 'x', 'R', and 'X').
120 If one or more of the associated output files already exists in the
121 destination directory, an error will be printed and the command will abort.
122 .SH EXAMPLES
123 To render a scene with four processes:
124 .IP "" .2i
125 rtpict -n 4 -vf mypers.vf -ab 1 -af scene.amb scene.oct > scene_pers.hdr
126 .PP
127 To render radiance, first surface distance, and normals in a layered image:
128 .IP "" .2i
129 rtpict -n 8 -vf fish.vf @render.opt -ovLn fisholay scene.oct
130 .PP
131 To render a hyperspectral irradiance image with 18 spectral samples:
132 .IP "" .2i
133 rtpict -vf inside.vf -i+ -cs 18 -co+ scene.oct > scene_inside.hsr
134 .SH AUTHOR
135 Greg Ward
136 .SH "SEE ALSO"
137 getinfo(1), mkpmap(1), oconv(1), pfilt(1),
138 pvalue(1), rad(1), rcode_depth(1), rcode_norm(1), rcode_ident(1),
139 rcomb(1), rcrop(1), rmtxop(1),
140 rpiece(1), rpict(1), rsplit(1), rtrace(1), rvu(1), vwrays(1)