1 | README for Vol-a-Tile |
---|
2 | --------------------- |
---|
3 | Shalini Venkataraman, Luc Renambot |
---|
4 | Sep 2003 |
---|
5 | |
---|
6 | Usage |
---|
7 | ----- |
---|
8 | Please run the .bat files in this dir for the different datasets |
---|
9 | or |
---|
10 | type |
---|
11 | ./volvis -f filename fileX fileY fileZ -v volName dataServerFile -d volX volY volZ -g gradientFileName -o offsetX offsetY offsetZ -s stereoType -w width height -h -n netConfigFile |
---|
12 | |
---|
13 | where |
---|
14 | |
---|
15 | -f filename fileX fileY fileZ |
---|
16 | filename : file containing the raw volume |
---|
17 | fileX : columns in the file(x) |
---|
18 | fileY : rows in the file(y) |
---|
19 | fileZ : no of slices in file(z) |
---|
20 | This is used when data is locally acceses |
---|
21 | |
---|
22 | -v volName dataServerFile |
---|
23 | For remote date access. volName is the symbolic name of the volume as specified in the optistore servers config. dataServerFile is the name of the file that associates the render nodes to optistore server nodes. Something like this for each render node:- |
---|
24 | rank# serverIP |
---|
25 | |
---|
26 | -d volX volY volZ |
---|
27 | dimesions of the volume that will actually be rendered. If volX, volY and volZ are not powers of 2, they are EXPANDED to the nearest power of 2. so a volume with dimensions 440x290x198 becomes 512x512x256. |
---|
28 | |
---|
29 | -g gradFilename : file containing the gradient volume. If this file is not specified, the gradient volume is computed on the fly |
---|
30 | |
---|
31 | -o offsetX offsetY offsetZ |
---|
32 | This can be used to skip or specify an offset from where the volume the read in |
---|
33 | offsetX : X offset to start reading from |
---|
34 | offsetY : Y offset to start reading from |
---|
35 | offsetZ : Z offset to start reading from |
---|
36 | |
---|
37 | -s stereoType |
---|
38 | stereoType : 0 for no stereo/default |
---|
39 | 1 for AGAVE stereo |
---|
40 | 2 forCross-Eye Stereo |
---|
41 | |
---|
42 | -w width height |
---|
43 | width: width of window |
---|
44 | height: height of window |
---|
45 | |
---|
46 | -n netConfigFile |
---|
47 | used for distributed rendering in a cluster. The cluster configuration is specified by the netConfigFile (in our case machines.dat). For file specs, see under "cluster rendering" |
---|
48 | |
---|
49 | Interaction |
---|
50 | ----------- |
---|
51 | Keyboard |
---|
52 | B : toggle display of bounding box |
---|
53 | C : Switch between moving clip plane and object |
---|
54 | F : Rotate about z (-ve), roam in Z |
---|
55 | F : Toggle printing FPS |
---|
56 | G : Save the gradient volume to a file |
---|
57 | H : Print usage help |
---|
58 | N : Toggle printing number of slices |
---|
59 | O : Write the volume to a file (like out256x256x256.raw) |
---|
60 | Q : Rotate about z (+ve), roam in Z |
---|
61 | R : Toggle Roam mode |
---|
62 | + : Increase sample rate |
---|
63 | - : Decrease sample rate |
---|
64 | UP: Rotate about x (-ve), roam up in roam mode |
---|
65 | DOWN: Rotate about x (+ve),roam down in roam mode |
---|
66 | LEFT : Rotate about y (-ve), roam left in roam mode |
---|
67 | RIGHT: Rotate about y (+ve), roam right in roam mode |
---|
68 | PAGE UP : Increase Eye Separation for stereo |
---|
69 | PAGE DOWN : Decrease Eye Separation for stereo |
---|
70 | ESC : Quit |
---|
71 | |
---|
72 | Mouse |
---|
73 | Left : Click and drag to rotate volume or clipPlane whichever is active |
---|
74 | Middle : Click and drag to translate volume |
---|
75 | Right : Click and drag to zoom volume or clipPlane whichever is active |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | Cluster Rendering |
---|
80 | ----------------- |
---|
81 | For the machines.dat file, the view frustums are calculated as percentages |
---|
82 | Scylla |
---|
83 | ------ |
---|
84 | Width - 14.0' |
---|
85 | Height - 11.2' |
---|
86 | mullionX = 0.6' |
---|
87 | mullionY = 0.58' |
---|
88 | |
---|
89 | So, for the perspectile with resolution 1280x1024 |
---|
90 | mullionX = (0.6/14.0)*1280 = 55 |
---|
91 | mullionY = (0.58/11.2)*1024 = 53 |
---|
92 | total resolution is |
---|
93 | X: 55 + 1280 + 2(55) + 1280 + 2(55) + 1280 + 2(55) + 1280 + 2(55) + 1280 = 6895 |
---|
94 | Y: 53 + 1024 + 2(53) + 1024 + 2(53) + 1024 = 3337 |
---|
95 | aspect = 2.066 |
---|
96 | |
---|
97 | mullion-X = 55/6895 = 0.8 |
---|
98 | 2*mullion-X = 1.6 |
---|
99 | mullion-Y = 53/3337 = 1.59 |
---|
100 | 2*mullion-y = 3.18 |
---|
101 | |
---|
102 | resolution-X = 1280/6895 = 18.56 |
---|
103 | resolution-Y = 1024/3337 = 30.68 |
---|
104 | |
---|
105 | so for each tile from bottom -left onwards |
---|
106 | 3 0.80 19.36 1.59 32.27 |
---|
107 | 6 20.96 39.52 1.59 32.27 |
---|
108 | 9 41.12 59.68 1.59 32.27 |
---|
109 | 12 61.28 79.84 1.59 32.27 |
---|
110 | 15 81.44 100.0 1.59 32.27 |
---|
111 | |
---|
112 | 2 0.8 19.36 35.45 66.13 |
---|
113 | 5 20.96 39.52 35.45 66.13 |
---|
114 | 8 41.12 59.68 35.45 66.13 |
---|
115 | 11 61.28 79.84 35.45 66.13 |
---|
116 | 14 81.44 100.0 35.45 66.13 |
---|
117 | |
---|
118 | 1 0.8 19.36 69.31 99.9 |
---|
119 | 4 20.96 39.52 69.31 99.9 |
---|
120 | 7 41.12 59.68 69.31 99.9 |
---|
121 | 10 61.28 79.84 69.31 99.9 |
---|
122 | 13 81.44 100.0 69.31 99.9 |
---|
123 | |
---|
124 | |
---|
125 | Cluster Config on XINDI |
---|
126 | ----------------------- |
---|
127 | Width - 15.95' |
---|
128 | Height - 12.05' |
---|
129 | mullionX = 0.725' |
---|
130 | mullionY = 0.65' |
---|
131 | |
---|
132 | Each tile in XINDI has resolution 1600x1200 with |
---|
133 | mullionX = 72.73 |
---|
134 | mullionY = 64.73 |
---|
135 | |
---|
136 | total resolution is |
---|
137 | X: 72.73 + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 = 8654.57 |
---|
138 | Y: 64.73 + 1200 + 2(64.73) + 1200 + 2(64.73) + 1200 = 3923.65 |
---|
139 | aspect = 8654.57/3923.65 = 2.2 |
---|
140 | |
---|
141 | as percentages |
---|
142 | mullion-X = 72.73/8654.57 = 0.84 |
---|
143 | 2*mullion-X = 1.68 |
---|
144 | mullion-Y = 64.73/3923.65 = 1.65 |
---|
145 | 2*mullion-y = 3.3 |
---|
146 | |
---|
147 | resolution-X = 1600/8654.57 = 18.48 |
---|
148 | resolution-Y = 1200/3923.65 = 30.6 |
---|
149 | |
---|
150 | so for each tile from bottom -left onwards |
---|
151 | 3 0.84 19.32 1.65 32.25 |
---|
152 | 6 21.0 39.48 1.65 32.25 |
---|
153 | 9 41.16 59.64 1.65 32.25 |
---|
154 | 12 61.32 79.8 1.65 32.25 |
---|
155 | 15 81.48 99.96 1.65 32.25 |
---|
156 | |
---|
157 | 2 0.84 19.32 35.55 66.15 |
---|
158 | 5 21.0 39.48 35.55 66.15 |
---|
159 | 8 41.16 59.64 35.55 66.15 |
---|
160 | 11 61.32 79.8 35.55 66.15 |
---|
161 | 14 81.48 99.96 35.55 66.15 |
---|
162 | |
---|
163 | 1 0.84 19.32 69.45 100.0 |
---|
164 | 4 21.0 39.48 69.45 100.0 |
---|
165 | 7 41.16 59.64 69.45 100.0 |
---|
166 | 10 61.32 79.8 69.45 100.0 |
---|
167 | 13 81.48 99.96 69.45 100.0 |
---|
168 | |
---|
169 | |
---|
170 | |
---|
171 | |
---|
172 | |
---|