ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/pcomb.1
(Generate patch)

Comparing ray/doc/man/man1/pcomb.1 (file contents):
Revision 1.17 by greg, Mon Dec 11 01:02:18 2023 UTC vs.
Revision 1.19 by greg, Tue Dec 12 16:31:45 2023 UTC

# Line 214 | Line 214 | by preceeding it with an exclamation point ('!').
214   .SH EXAMPLES
215   To produce a picture showing the difference between pic1 and pic2:
216   .IP "" .2i
217 < pcomb \-e 'ro=ri(1)\-ri(2);go=gi(1)\-gi(2);bo=bi(1)\-bi(2)' pic1 pic2 > diff
217 > pcomb \-e "ro=ri(1)\-ri(2);go=gi(1)\-gi(2);bo=bi(1)\-bi(2)" pic1 pic2 > diff
218   .PP
219   Or, more efficiently:
220   .IP "" .2i
# Line 222 | Line 222 | pcomb pic1 \-s \-1 pic2 > diff
222   .PP
223   To precompute the gamma correction for a picture:
224   .IP "" .2i
225 < pcomb \-e 'ro=ri(1)^.4;go=gi(1)^.4;bo=bi(1)^.4' inp.hdr > gam.hdr
225 > pcomb \-e "ro=ri(1)^.4;go=gi(1)^.4;bo=bi(1)^.4" inp.hdr > gam.hdr
226   .PP
227   To perform some special filtering:
228   .IP "" .2i
# Line 230 | Line 230 | pcomb \-f myfilt.cal \-x xmax/2 \-y ymax/2 input.hdr >
230   .PP
231   To make a picture of a dot:
232   .IP "" .2i
233 < pcomb \-x 100 \-y 100 \-e 'ro=b;go=b;bo=b;b=if((x-50)^2+(y-50)^2\-25^2,0,1)' > dot
233 > pcomb \-x 100 \-y 100 \-e "ro=b;go=b;bo=b;b=if((x-50)^2+(y-50)^2\-25^2,0,1)" > dot
234   .PP
235   Use a depth buffer to superimpose 3-D gridlines on rendered image:
236   .IP "" .2i
237   rcollate -hi -ff -o 3000x3000 raw_orig.zbf
238 < | pcomb -e 't=gi(2);Px=Ox(1)+t*Dx(1);Py=Oy(1)+t*Dy(1);Pz=Oz(1)+t*Dz(1)'
239 < -e 'frac(x):x-floor(x)' -e 'Rg:0;Gg:0;Bg:1;gsiz:0.04'
240 < -e 'ingr=gsiz-min(frac(Px),frac(Py),frac(Pz))'
241 < -e 'ro=if(ingr,Rg,ri(1));go=if(ingr,Gg,gi(1));bo=if(ingr,Bg,bi(1))'
238 > | pcomb -e "frac(x):x-floor(x);EPS:.0001"
239 > -e "t=gi(2);Px=Ox(1)+t*Dx(1)-EPS;Py=Oy(1)+t*Dy(1)-EPS;Pz=Oz(1)+t*Dz(1)-EPS"
240 > -e "Rg:0;Gg:0;Bg:1;gsiz:0.03"
241 > -e "ingr=gsiz-min(frac(Px),frac(Py),frac(Pz))"
242 > -e "ro=if(ingr,Rg,ri(1));go=if(ingr,Gg,gi(1));bo=if(ingr,Bg,bi(1))"
243   raw_orig.hdr - > trans_def_grid.hdr
244   .SH ENVIRONMENT
245   RAYPATH         the directories to check for auxiliary files.
# Line 246 | Line 247 | RAYPATH                the directories to check for auxiliary files.
247   Greg Ward
248   .SH "SEE ALSO"
249   getinfo(1), icalc(1), pcompos(1), pfilt(1), pvalue(1), rcalc(1),
250 < rcollate(1), rmtxcomb(1), rmtxop(1), rpict(1)
250 > rcollate(1), rcomb(1), rmtxop(1), rpict(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines