ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/vwright.1
Revision: 1.9
Committed: Mon Jun 22 00:03:47 2009 UTC (14 years, 11 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad4R2, rad4R1, rad4R0, rad4R2P1, rad5R3, HEAD
Changes since 1.8: +4 -2 lines
Log Message:
Fixed synopsis

File Contents

# Content
1 .\" RCSid "$Id: vwright.1,v 1.8 2009/06/14 00:33:15 greg Exp $"
2 .TH VWRIGHT 1 8/29/96 RADIANCE
3 .SH NAME
4 vwright - normalize a RADIANCE view, shift it to the right
5 .SH SYNOPSIS
6 .B vwright
7 .B "[ view options ]"
8 .B distance
9 .br
10 .B vwright
11 .B "[ view options ]"
12 .B name
13 .SH DESCRIPTION
14 In the first form,
15 .I vwright
16 shifts a RADIANCE view
17 the specified distance to the right, putting out a complete set of
18 view parameters in a single line on the standard output.
19 This utility is most often used to compute a right-eyed view from
20 a left-eye view for stereo imaging.
21 .PP
22 If no options are specified on the command line,
23 .I vwright
24 reads a view from its standard input.
25 .PP
26 The
27 .I distance
28 given is in world coordinate units.
29 A negative value indicates a shift to the left rather than the
30 right.
31 .PP
32 The second form substitutes a name prefix in place of the shift
33 distance, and produces constant assignments on the standard output
34 suitable for passing directly to
35 .I rcalc(1).
36 For a given prefix
37 .I N,
38 the constant names are as follows:
39 .sp
40 .nf
41 Nt: view type ('v'==1,'l'==2,'a'==3,'h'==4,'c'==5,'s'==6)
42 Npx: view point x value
43 Npy: view point y value
44 Npz: view point z value
45 Ndx: view direction x value (normalized)
46 Ndy: view direction y value (normalized)
47 Ndz: view direction z value (normalized)
48 Nd: view focal distance
49 Nux: view up vector x value (normalized)
50 Nuy: view up vector y value (normalized)
51 Nuz: view up vector z value (normalized)
52 Nh: view horizontal size
53 Nv: view vertical size
54 Ns: view shift
55 Nl: view lift
56 No: view fore clipping distance
57 Na: view aft clipping distance
58 Nhx: derived horizontal image vector x value (normalized)
59 Nhy: derived horizontal image vector y value (normalized)
60 Nhz: derived horizontal image vector z value (normalized)
61 Nhn: derived horizontal image vector multiplier
62 Nvx: derived vertical image vector x value (normalized)
63 Nvy: derived vertical image vector y value (normalized)
64 Nvz: derived vertical image vector z value (normalized)
65 Nvn: derived vertical image vector multiplier
66 .fi
67 .SH EXAMPLES
68 To start
69 .I rpict(1)
70 on a view .06 meters left of the view in the file "right.vf":
71 .IP "" .2i
72 rpict `vwright -.06 < right.vf` scene.oct > right.hdr &
73 .PP
74 To move the
75 .I rad(1)
76 view named "left" 2.5 inches to the right
77 and render from there:
78 .IP "" .2i
79 rad \-v "right `rad \-n \-s \-V \-v left examp.rif | vwright 2.5`" examp.rif &
80 .PP
81 To pass a view to
82 .I rcalc
83 for conversion to some other view:
84 .IP "" .2i
85 rcalc \-n \-e `vwright orig < orig.vf` \-f viewmod.cal \-o view.fmt > new.vf
86 .SH AUTHOR
87 Greg Ward
88 .SH "SEE ALSO"
89 pdfblur(1), rad(1), rcalc(1), rpict(1), rvu(1)