Debian Codegraph @

models/oiv_compliance/spotlight.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check rendering with an SoSpotLight.
4 # NB: turn off the headlight in the viewer when viewing this file.
5 #
6 # 19990423 mortene
7
8 Separator {
9 Switch {
10 whichChild -1
11 DEF mesh Array {
12 numElements1 10
13 numElements2 10
14 separation1 1 0 0
15 separation2 0 1 0
16 origin CENTER
17
18 Group {
19 Coordinate3 {
20 point [
21 0.5 -0.5 0, -0.5 -0.5 0, # lr, ll
22 0.5 0.5 0, -0.5 0.5 0, # ur, ul
23 ]
24 }
25 IndexedFaceSet {
26 coordIndex [ 1, 0, 2, -1, 1, 2, 3, -1 ]
27 }
28 }
29 }
30 }
31
32 # ROW 0 -- different locations
33 Translation { translation 0 +10 0 }
34 Separator {
35 BaseColor { rgb 1 0 0 }
36 Separator {
37 SpotLight { }
38 USE mesh
39 }
40
41 BaseColor { rgb 0 1 0 }
42 Translation { translation +12 0 0 }
43 Separator {
44 SpotLight { location -4 -4 1 }
45 USE mesh
46 }
47
48 BaseColor { rgb 1 1 0 }
49 Translation { translation +12 0 0 }
50 Separator {
51 SpotLight { location 4 -4 1}
52 USE mesh
53 }
54
55 BaseColor { rgb 1 0 1 }
56 Translation { translation +12 0 0 }
57 Separator {
58 SpotLight { location 4 4 1 }
59 USE mesh
60 }
61
62 BaseColor { rgb 1 1 1 }
63 Translation { translation +12 0 0 }
64 Separator {
65 SpotLight { location -4 4 1 }
66 USE mesh
67 }
68 }
69
70 # ROW 1 -- misc field settings
71 Translation { translation 0 +12 0 }
72 Separator {
73 BaseColor { rgb 1 0 0 }
74 Separator {
75 SpotLight { on FALSE }
76 USE mesh
77 }
78
79 BaseColor { rgb 1 1 0 }
80 Translation { translation +12 0 0 }
81 Separator {
82 SpotLight { intensity 0.8 }
83 USE mesh
84 }
85
86 BaseColor { rgb 1 1 0 }
87 Translation { translation +12 0 0 }
88 Separator {
89 SpotLight { intensity 0.5 }
90 USE mesh
91 }
92
93 BaseColor { rgb 1 1 0 }
94 Translation { translation +12 0 0 }
95 Separator {
96 SpotLight { intensity 0.2 }
97 USE mesh
98 }
99
100 BaseColor { rgb 1 1 1 }
101 Translation { translation +12 0 0 }
102 Separator {
103 SpotLight { color 1 0 0 }
104 USE mesh
105 }
106
107 BaseColor { rgb 0 0 0 }
108 Translation { translation +12 0 0 }
109 Separator {
110 SpotLight { color 1 0 0 }
111 USE mesh
112 }
113 }
114
115 # ROW 2 -- set ignore flags
116 Translation { translation 0 +12 0 }
117 Separator {
118 BaseColor { rgb 1 0 0 }
119 Separator {
120 SpotLight { location 4 4 -1 ~ }
121 USE mesh
122 }
123
124 BaseColor { rgb 1 1 0 }
125 Translation { translation +12 0 0 }
126 Separator {
127 SpotLight { intensity 0.2 ~ }
128 USE mesh
129 }
130
131 BaseColor { rgb 1 1 1 }
132 Translation { translation +12 0 0 }
133 Separator {
134 SpotLight { on FALSE ~ }
135 USE mesh
136 }
137
138 BaseColor { rgb 1 1 1 }
139 Translation { translation +12 0 0 }
140 Separator {
141 SpotLight { color 1 0 0 ~ }
142 USE mesh
143 }
144 }
145
146 # ROW 3 -- try different direction vectors
147 Translation { translation 0 +12 0 }
148 Separator {
149 BaseColor { rgb 1 0 0 }
150 Separator {
151 SpotLight { direction 0 -1 -1 }
152 USE mesh
153 }
154
155 BaseColor { rgb 1 1 0 }
156 Translation { translation +12 0 0 }
157 Separator {
158 SpotLight { direction 0 1 -1 }
159 USE mesh
160 }
161
162 BaseColor { rgb 1 1 1 }
163 Translation { translation +12 0 0 }
164 Separator {
165 SpotLight { direction -1 0 -1 }
166 USE mesh
167 }
168
169 BaseColor { rgb 0 1 0 }
170 Translation { translation +12 0 0 }
171 Separator {
172 SpotLight { direction 1 0 -1 }
173 USE mesh
174 }
175
176 BaseColor { rgb 0 0 1 }
177 Translation { translation +12 0 0 }
178 Separator {
179 SpotLight { direction -1 -1 -1 }
180 USE mesh
181 }
182
183 BaseColor { rgb 1 0 1 }
184 Translation { translation +12 0 0 }
185 Separator {
186 SpotLight { direction 1 1 -1 }
187 USE mesh
188 }
189 }
190
191 # ROW 4 -- try different dropoff rates
192 Translation { translation 0 +12 0 }
193 Separator {
194 BaseColor { rgb 1 0 0 }
195 Separator {
196 SpotLight {
197 direction 0 -1 -1
198 dropOffRate 0.0
199 }
200 USE mesh
201 }
202
203 BaseColor { rgb 1 1 0 }
204 Translation { translation +12 0 0 }
205 Separator {
206 SpotLight {
207 direction 0 -1 -1
208 dropOffRate 0.015
209 }
210 USE mesh
211 }
212
213 BaseColor { rgb 0 1 0 }
214 Translation { translation +12 0 0 }
215 Separator {
216 SpotLight {
217 direction 0 -1 -1
218 dropOffRate 0.025
219 }
220 USE mesh
221 }
222
223 BaseColor { rgb 1 1 1 }
224 Translation { translation +12 0 0 }
225 Separator {
226 SpotLight {
227 direction 0 -1 -1
228 dropOffRate 0.050
229 }
230 USE mesh
231 }
232
233 BaseColor { rgb 0 1 1 }
234 Translation { translation +12 0 0 }
235 Separator {
236 SpotLight {
237 direction 0 -1 -1
238 dropOffRate 0.2
239 }
240 USE mesh
241 }
242
243 BaseColor { rgb 1 0 1 }
244 Translation { translation +12 0 0 }
245 Separator {
246 SpotLight {
247 direction 0 -1 -1
248 dropOffRate 1.0
249 }
250 USE mesh
251 }
252 }
253
254 # ROW 5 -- try different cutOffAngle values
255 Translation { translation 0 +12 0 }
256 Separator {
257 BaseColor { rgb 1 0 1 }
258 Translation { translation +12 0 0 }
259 Separator {
260 SpotLight {
261 direction 0 -1 -1
262 cutOffAngle 3.141592653589793 # pi
263 }
264 USE mesh
265 }
266
267 BaseColor { rgb 1 0 0 }
268 Translation { translation +12 0 0 }
269 Separator {
270 SpotLight {
271 direction 0 -1 -1
272 cutOffAngle 1.5707963267948966 # pi/2
273 }
274 USE mesh
275 }
276
277 BaseColor { rgb 1 1 0 }
278 Translation { translation +12 0 0 }
279 Separator {
280 SpotLight {
281 direction 0 -1 -1
282 cutOffAngle 1.0471975511965976 # pi/3
283 }
284 USE mesh
285 }
286
287 BaseColor { rgb 0 1 0 }
288 Translation { translation +12 0 0 }
289 Separator {
290 SpotLight {
291 direction 0 -1 -1
292 cutOffAngle 0.7853981633974483 # pi/4
293 }
294 USE mesh
295 }
296
297 BaseColor { rgb 0 0 1 }
298 Translation { translation +12 0 0 }
299 Separator {
300 SpotLight {
301 direction 0 -1 -1
302 cutOffAngle 0.6283185307179586 # pi/5
303 }
304 USE mesh
305 }
306
307 BaseColor { rgb 1 1 1 }
308 Translation { translation +12 0 0 }
309 Separator {
310 SpotLight {
311 direction 0 -1 -1
312 cutOffAngle 0.5235987755982988 # pi/6
313 }
314 USE mesh
315 }
316
317 BaseColor { rgb 1 0 0 }
318 Translation { translation +12 0 0 }
319 Separator {
320 SpotLight {
321 direction 0 -1 -1
322 cutOffAngle 0.39269908169872414 # pi/8
323 }
324 USE mesh
325 }
326
327 BaseColor { rgb 1 1 0 }
328 Translation { translation +12 0 0 }
329 Separator {
330 SpotLight {
331 direction 0 -1 -1
332 cutOffAngle 0.19634954084936207 # pi/16
333 }
334 USE mesh
335 }
336
337 BaseColor { rgb 0 1 0 }
338 Translation { translation +12 0 0 }
339 Separator {
340 SpotLight {
341 direction 0 -1 -1
342 cutOffAngle 0.04908738521234052 # pi/64
343 }
344 USE mesh
345 }
346
347 BaseColor { rgb 1 0 1 }
348 Translation { translation +12 0 0 }
349 Separator {
350 SpotLight {
351 direction 0 -1 -1
352 cutOffAngle 0.0
353 }
354 USE mesh
355 }
356 }
357 }