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