source: trunk/src/testing/app/volvis/README @ 4

Revision 4, 5.1 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1README for Vol-a-Tile
2---------------------
3Shalini Venkataraman, Luc Renambot
4Sep 2003
5
6Usage
7-----
8Please run the .bat files in this dir for the different datasets
9or
10type
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                                                                               
13where
14
15-f filename fileX fileY fileZ
16filename : file containing the raw volume
17fileX : columns in the file(x)
18fileY : rows in the file(y)
19fileZ : no of slices in file(z)
20This is used when data is locally acceses
21
22-v volName dataServerFile
23For 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:-
24rank# serverIP
25
26-d volX volY volZ
27dimesions 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
32This can be used to skip or specify an offset from where the volume the read in
33offsetX : X offset to start reading from
34offsetY : Y offset to start reading from
35offsetZ : Z offset to start reading from
36
37-s stereoType 
38stereoType :    0 for no stereo/default
39                1 for AGAVE stereo
40                2 forCross-Eye Stereo
41
42-w width height
43width: width of window
44height: height of window
45
46-n netConfigFile
47used 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                                                                               
49Interaction
50-----------
51Keyboard
52B : toggle display of bounding box
53C : Switch between moving clip plane and object
54F : Rotate about z (-ve), roam in Z
55F : Toggle printing FPS
56G : Save the gradient volume to a file
57H : Print usage help
58N : Toggle printing number of slices
59O : Write the volume to a file (like out256x256x256.raw)
60Q : Rotate about z (+ve), roam in Z
61R : Toggle Roam mode
62+ : Increase sample rate
63- : Decrease sample rate
64UP: Rotate about x (-ve), roam up in roam mode
65DOWN: Rotate about x (+ve),roam down in roam mode 
66LEFT : Rotate about y (-ve), roam left in roam mode
67RIGHT: Rotate about y (+ve), roam right in roam mode
68PAGE UP : Increase Eye Separation for stereo
69PAGE DOWN : Decrease Eye Separation for stereo
70ESC : Quit
71                                                                               
72Mouse
73Left : Click and drag to rotate volume or clipPlane whichever is active
74Middle : Click and drag to translate volume
75Right : Click and drag to zoom volume or clipPlane whichever is active
76
77
78                                                                               
79Cluster Rendering
80-----------------
81For the machines.dat file, the view frustums are calculated as percentages
82Scylla
83------
84Width - 14.0'
85Height - 11.2'
86mullionX = 0.6'
87mullionY = 0.58'
88
89So, for the perspectile with resolution 1280x1024
90mullionX = (0.6/14.0)*1280 = 55 
91mullionY = (0.58/11.2)*1024 = 53 
92total resolution is
93X: 55 + 1280 + 2(55) + 1280 + 2(55) + 1280 + 2(55) + 1280 + 2(55) + 1280 = 6895
94Y: 53 + 1024 + 2(53) + 1024 + 2(53) + 1024 = 3337
95aspect = 2.066
96
97mullion-X = 55/6895 = 0.8
982*mullion-X = 1.6
99mullion-Y = 53/3337 = 1.59
1002*mullion-y = 3.18
101
102resolution-X = 1280/6895 = 18.56
103resolution-Y = 1024/3337 = 30.68
104
105so for each tile from bottom -left onwards
1063 0.80 19.36 1.59 32.27
1076 20.96 39.52 1.59 32.27
1089 41.12 59.68 1.59 32.27
10912 61.28 79.84 1.59 32.27
11015 81.44 100.0 1.59 32.27
111
1122 0.8 19.36 35.45 66.13
1135 20.96 39.52 35.45 66.13
1148 41.12 59.68 35.45 66.13
11511 61.28 79.84 35.45 66.13
11614 81.44 100.0 35.45 66.13
117
1181 0.8 19.36 69.31 99.9
1194 20.96 39.52 69.31 99.9
1207 41.12 59.68 69.31 99.9
12110 61.28 79.84 69.31 99.9
12213 81.44 100.0 69.31 99.9
123
124
125Cluster Config on XINDI
126-----------------------
127Width - 15.95'
128Height - 12.05'
129mullionX = 0.725'
130mullionY = 0.65'
131
132Each tile in XINDI has resolution 1600x1200 with
133mullionX =  72.73
134mullionY = 64.73
135
136total resolution is
137X: 72.73 + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 + 2(72.73) + 1600 = 8654.57
138Y: 64.73 + 1200 + 2(64.73) + 1200 + 2(64.73) + 1200 = 3923.65
139aspect = 8654.57/3923.65 = 2.2
140
141as percentages
142mullion-X = 72.73/8654.57 = 0.84
1432*mullion-X = 1.68
144mullion-Y = 64.73/3923.65 = 1.65
1452*mullion-y = 3.3
146
147resolution-X = 1600/8654.57 = 18.48
148resolution-Y = 1200/3923.65 = 30.6
149
150so for each tile from bottom -left onwards
1513 0.84 19.32 1.65 32.25
1526 21.0 39.48 1.65 32.25
1539 41.16 59.64 1.65 32.25
15412 61.32 79.8 1.65 32.25
15515 81.48 99.96 1.65 32.25
156
1572 0.84 19.32 35.55 66.15
1585 21.0 39.48 35.55 66.15
1598 41.16 59.64 35.55 66.15
16011 61.32 79.8 35.55 66.15
16114 81.48 99.96 35.55 66.15
162
1631 0.84 19.32 69.45 100.0
1644 21.0 39.48 69.45 100.0
1657 41.16 59.64 69.45 100.0
16610 61.32 79.8 69.45 100.0
16713 81.48 99.96 69.45 100.0
168
169
170
171
172
Note: See TracBrowser for help on using the repository browser.