| 29 |
|
} |
| 30 |
|
.B octree |
| 31 |
|
.br |
| 32 |
+ |
.B rsensor |
| 33 |
+ |
[ |
| 34 |
+ |
.B -h |
| 35 |
+ |
] |
| 36 |
+ |
{ |
| 37 |
+ |
[ |
| 38 |
+ |
.B -rd nrays |
| 39 |
+ |
][ |
| 40 |
+ |
.B sensor_view |
| 41 |
+ |
] |
| 42 |
+ |
.B sensor_file .. |
| 43 |
+ |
} |
| 44 |
+ |
.B "." |
| 45 |
+ |
.br |
| 46 |
|
.B "rsensor [ options ] \-defaults" |
| 47 |
|
.SH DESCRIPTION |
| 48 |
|
.I Rsensor |
| 52 |
|
sending the computed sensor value to the standard output. |
| 53 |
|
(The octree may be given as the output of a command enclosed in quotes |
| 54 |
|
and preceded by a `!'.)\0 |
| 55 |
< |
In the second form, the default values |
| 55 |
> |
In the second form, a single period ('.') is given in place of an |
| 56 |
> |
octree, and the origin and directions of the specified |
| 57 |
> |
number of rays will be printed on the standard output. |
| 58 |
> |
If these rays are later traced and added together, the results |
| 59 |
> |
will sum to a signal proportional to the given sensor distribution. |
| 60 |
> |
In the third form, the default values |
| 61 |
|
for the options (modified by those options present) |
| 62 |
|
are printed with a brief explanation. |
| 63 |
|
.PP |
| 82 |
|
The fore clipping distance may be used as well, but other view |
| 83 |
|
options will be ignored. |
| 84 |
|
(See |
| 85 |
< |
.I rpict\.1 |
| 85 |
> |
.I rpict(1) |
| 86 |
|
for details on how to specify a view.)\0 |
| 87 |
|
The actual data contained in the sensor file corresponds to the |
| 88 |
|
.I SPOT |
| 105 |
|
.I \-rd |
| 106 |
|
option controls the number of ray samples sent at random, and the |
| 107 |
|
.I \-dn |
| 108 |
< |
option controls the number of rays sent to light sources per sensor. |
| 108 |
> |
option controls the number of rays sent to each light source per sensor. |
| 109 |
|
.PP |
| 110 |
|
The |
| 111 |
|
.I \-h |
| 115 |
|
option may be used to specify multiple calculation processes on |
| 116 |
|
systems with more than one CPU. |
| 117 |
|
For additional options, consult the |
| 118 |
< |
.I rtrace\.1 |
| 118 |
> |
.I rtrace(1) |
| 119 |
|
man page. |
| 120 |
|
The final |
| 121 |
|
.I octree |
| 125 |
|
To compute values for the same sensor with two different positions: |
| 126 |
|
.IP "" .2i |
| 127 |
|
rsensor -ab 2 -vf posA.vf mysens.dat -vf posB.vf mysens.dat scene.oct |
| 128 |
+ |
.PP |
| 129 |
+ |
To generate a set of rays corresponding to a given sensor and compute |
| 130 |
+ |
the resulting signal with rtrace: |
| 131 |
+ |
.IP "" .2i |
| 132 |
+ |
rsensor -h -vf posC.vf mysens.dat . | rtrace -h scene.oct | total -m |
| 133 |
|
.SH ENVIRONMENT |
| 134 |
|
RAYPATH the directories to check for auxiliary files. |
| 135 |
|
.SH AUTHOR |