077a220c |
1 | puts "============" |
2 | puts "0030807: Visualization, TKOpenGl - supporting cubemaps" |
3 | puts "============" |
4 | puts "" |
5 | |
6 | set aCubeMap_V [locate_data_file Circus_CubeMap_V.png] |
7 | set aCubeMap_V_021345 [locate_data_file Circus_CubeMap_V_021345.png] |
8 | set aCubeMap_H [locate_data_file Circus_CubeMap_H.png] |
9 | set aCubeMap_GridV [locate_data_file Circus_CubeMap_GridV.png] |
10 | set aCubeMap_GridV_021345 [locate_data_file Circus_CubeMap_GridV_021345.png] |
11 | set aCubeMap_GridH [locate_data_file Circus_CubeMap_GridH.png] |
12 | set aCubeMap_GridH_021345 [locate_data_file Circus_CubeMap_GridH_021345.png] |
13 | set aCubeMap_posx [locate_data_file SF_CubeMap_posx.jpg] |
14 | set aCubeMap_negx [locate_data_file SF_CubeMap_negx.jpg] |
15 | set aCubeMap_posy [locate_data_file SF_CubeMap_posy.jpg] |
16 | set aCubeMap_negy [locate_data_file SF_CubeMap_negy.jpg] |
17 | set aCubeMap_posz [locate_data_file SF_CubeMap_posz.jpg] |
18 | set aCubeMap_negz [locate_data_file SF_CubeMap_negz.jpg] |
19 | |
20 | vclear |
21 | vclose ALL |
22 | vinit v -w 512 -h 512 |
23 | vcamera -fovy 100 |
24 | |
25 | #vertical tiles orientation |
26 | vbackground -cubemap $aCubeMap_V |
27 | vfront |
28 | vdump $imagedir/${casename}_V_front.png |
29 | vback |
30 | vdump $imagedir/${casename}_V_back.png |
31 | vtop |
32 | vdump $imagedir/${casename}_V_top.png |
33 | vbottom |
34 | vdump $imagedir/${casename}_V_bottom.png |
35 | vleft |
36 | vdump $imagedir/${casename}_V_left.png |
37 | vright |
38 | vdump $imagedir/${casename}_V_right.png |
39 | |
40 | #test of flipping |
41 | vbackground -cubemap $aCubeMap_V -invertedz |
42 | vfront |
43 | vdump $imagedir/${casename}_flip_front.png |
44 | vback |
45 | vdump $imagedir/${casename}_flip_back.png |
46 | vtop |
47 | vdump $imagedir/${casename}_flip_top.png |
48 | vbottom |
49 | vdump $imagedir/${casename}_flip_bottom.png |
50 | vleft |
51 | vdump $imagedir/${casename}_flip_left.png |
52 | vright |
53 | vdump $imagedir/${casename}_flip_right.png |
54 | |
55 | #vertical tiles orientation (disordered) |
56 | vbackground -cubemap $aCubeMap_V_021345 -order 0 2 1 3 4 5 |
57 | vfront |
58 | vdump $imagedir/${casename}_V_021345_front.png |
59 | vback |
60 | vdump $imagedir/${casename}_V_021345_back.png |
61 | vtop |
62 | vdump $imagedir/${casename}_V_021345_top.png |
63 | vbottom |
64 | vdump $imagedir/${casename}_V_021345_bottom.png |
65 | vleft |
66 | vdump $imagedir/${casename}_V_021345_left.png |
67 | vright |
68 | vdump $imagedir/${casename}_V_021345_right.png |
69 | |
70 | #horizontal tile orientation |
71 | vbackground -cubemap $aCubeMap_H |
72 | vfront |
73 | vdump $imagedir/${casename}_H_front.png |
74 | vback |
75 | vdump $imagedir/${casename}_H_back.png |
76 | vtop |
77 | vdump $imagedir/${casename}_H_top.png |
78 | vbottom |
79 | vdump $imagedir/${casename}_H_bottom.png |
80 | vleft |
81 | vdump $imagedir/${casename}_H_left.png |
82 | vright |
83 | vdump $imagedir/${casename}_H_right.png |
84 | |
85 | #vertical grid tile orientation |
86 | vbackground -cubemap $aCubeMap_GridV |
87 | vfront |
88 | vdump $imagedir/${casename}_GridV_front.png |
89 | vback |
90 | vdump $imagedir/${casename}_GridV_back.png |
91 | vtop |
92 | vdump $imagedir/${casename}_GridV_top.png |
93 | vbottom |
94 | vdump $imagedir/${casename}_GridV_bottom.png |
95 | vleft |
96 | vdump $imagedir/${casename}_GridV_left.png |
97 | vright |
98 | vdump $imagedir/${casename}_GridV_right.png |
99 | |
100 | #vertical grid tile orientation (disordered) |
101 | vbackground -cubemap $aCubeMap_GridV_021345 -order 0 2 1 3 4 5 |
102 | vfront |
103 | vdump $imagedir/${casename}_GridV_021345_front.png |
104 | vback |
105 | vdump $imagedir/${casename}_GridV_021345_back.png |
106 | vtop |
107 | vdump $imagedir/${casename}_GridV_021345_top.png |
108 | vbottom |
109 | vdump $imagedir/${casename}_GridV_021345_bottom.png |
110 | vleft |
111 | vdump $imagedir/${casename}_GridV_021345_left.png |
112 | vright |
113 | vdump $imagedir/${casename}_GridV_021345_right.png |
114 | |
115 | #horizontal grid tile orientation |
116 | vbackground -cubemap $aCubeMap_GridH |
117 | vfront |
118 | vdump $imagedir/${casename}_GridH_front.png |
119 | vback |
120 | vdump $imagedir/${casename}_GridH_back.png |
121 | vtop |
122 | vdump $imagedir/${casename}_GridH_top.png |
123 | vbottom |
124 | vdump $imagedir/${casename}_GridH_bottom.png |
125 | vleft |
126 | vdump $imagedir/${casename}_GridH_left.png |
127 | vright |
128 | vdump $imagedir/${casename}_GridH_right.png |
129 | |
130 | #horizontal grid tile orientation (disordered) |
131 | vbackground -cubemap $aCubeMap_GridH_021345 -order 0 2 1 3 4 5 |
132 | vfront |
133 | vdump $imagedir/${casename}_GridH_021345_front.png |
134 | vback |
135 | vdump $imagedir/${casename}_GridH_021345_back.png |
136 | vtop |
137 | vdump $imagedir/${casename}_GridH_021345_top.png |
138 | vbottom |
139 | vdump $imagedir/${casename}_GridH_021345_bottom.png |
140 | vleft |
141 | vdump $imagedir/${casename}_GridH_021345_left.png |
142 | vright |
143 | vdump $imagedir/${casename}_GridH_021345_right.png |
144 | |
145 | #multiimage cubemap |
146 | vbackground -cubemap $aCubeMap_posx $aCubeMap_negx $aCubeMap_posy $aCubeMap_negy $aCubeMap_posz $aCubeMap_negz |
147 | vfront |
148 | vdump $imagedir/${casename}_multi_front.png |
149 | vback |
150 | vdump $imagedir/${casename}_multi_back.png |
151 | vtop |
152 | vdump $imagedir/${casename}_multi_top.png |
153 | vbottom |
154 | vdump $imagedir/${casename}_multi_bottom.png |
155 | vleft |
156 | vdump $imagedir/${casename}_multi_left.png |
157 | vright |
158 | vdump $imagedir/${casename}_multi_right.png |