Debian Codegraph @

models/oiv_compliance/environment.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check rendering with SoEnvironment.
4 #
5 # Turn off headlight in viewer to better assert some of the effects.
6 #
7 # 19990515 mortene
8
9 Separator {
10 DirectionalLight {
11 intensity 0.1
12 direction 1 1 -10
13 }
14
15 # (ROW 0) Check ambientIntensity field.
16 Separator {
17 Cube { }
18
19 Translation { translation +4 0 0 }
20 Separator {
21 Environment { ambientIntensity 0.0 }
22 Cube { }
23 }
24
25 Translation { translation +4 0 0 }
26 Separator {
27 Environment { ambientIntensity 0.2 }
28 Cube { }
29 }
30
31 Translation { translation +4 0 0 }
32 Separator {
33 Environment { ambientIntensity 0.4 }
34 Cube { }
35 }
36
37 Translation { translation +4 0 0 }
38 Separator {
39 Environment { ambientIntensity 0.6 }
40 Cube { }
41 }
42
43 Translation { translation +4 0 0 }
44 Separator {
45 Environment { ambientIntensity 0.8 }
46 Cube { }
47 }
48
49 Translation { translation +4 0 0 }
50 Separator {
51 Environment { ambientIntensity 1.0 }
52 Cube { }
53 }
54 }
55
56 # (ROW 1) Check ambientColor field.
57 Translation { translation 0 4 0 }
58 Separator {
59 Cube { }
60
61 Translation { translation +4 0 0 }
62 Separator {
63 Environment { ambientColor 0 0 0 }
64 Cube { }
65 }
66
67 Translation { translation +4 0 0 }
68 Separator {
69 Environment { ambientColor 0.8 0 0 }
70 Cube { }
71 }
72
73 Translation { translation +4 0 0 }
74 Separator {
75 Environment { ambientColor 0 0.8 0 }
76 Cube { }
77 }
78
79 Translation { translation +4 0 0 }
80 Separator {
81 Environment { ambientColor 0 0 0.8 }
82 Cube { }
83 }
84
85 Translation { translation +4 0 0 }
86 Separator {
87 Environment { ambientColor 0.5 0.5 0 }
88 Cube { }
89 }
90
91 Translation { translation +4 0 0 }
92 Separator {
93 Environment { ambientColor 1 1 1 }
94 Cube { }
95 }
96 }
97
98 # (ROW 2) Check attenuation field.
99 Translation { translation 0 4 0 }
100 Separator {
101 Cube { }
102
103 Translation { translation +4 0 0 }
104 Separator {
105 Environment { attenuation 0 0 0 }
106 PointLight { location -5 5 5 }
107 Cube { }
108 }
109
110 Translation { translation +4 0 0 }
111 Separator {
112 Environment { attenuation 0 0 1 }
113 PointLight { location -5 5 5 }
114 Cube { }
115 }
116
117 Translation { translation +4 0 0 }
118 Separator {
119 Environment { attenuation 0 0 2 }
120 PointLight { location -5 5 5 }
121 Cube { }
122 }
123
124 Translation { translation +4 0 0 }
125 Separator {
126 Environment { attenuation 0 0 10 }
127 PointLight { location -5 5 5 }
128 Cube { }
129 }
130
131 Translation { translation +4 0 0 }
132 Separator {
133 Environment { attenuation 1 0 1 }
134 PointLight { location -5 5 5 }
135 Cube { }
136 }
137
138 Translation { translation +4 0 0 }
139 Separator {
140 Environment { attenuation 2 0 1 }
141 PointLight { location -5 5 5 }
142 Cube { }
143 }
144
145 Translation { translation +4 0 0 }
146 Separator {
147 Environment { attenuation 10 0 1 }
148 PointLight { location -5 5 5 }
149 Cube { }
150 }
151
152 Translation { translation +4 0 0 }
153 Separator {
154 Environment { attenuation 0 1 1 }
155 PointLight { location -5 5 5 }
156 Cube { }
157 }
158
159 Translation { translation +4 0 0 }
160 Separator {
161 Environment { attenuation 0 2 1 }
162 PointLight { location -5 5 5 }
163 Cube { }
164 }
165
166 Translation { translation +4 0 0 }
167 Separator {
168 Environment { attenuation 0 10 1 }
169 PointLight { location -5 5 5 }
170 Cube { }
171 }
172 }
173
174 # (ROW 3) Check fog fields.
175 Translation { translation 0 4 0 }
176 Separator {
177 DirectionalLight {
178 intensity 0.8
179 direction 1 -1 5
180 }
181
182 Cube { }
183
184 Translation { translation +4 0 0 }
185 Separator {
186 Environment { fogType HAZE }
187 Cube { }
188 }
189
190 Translation { translation +4 0 0 }
191 Separator {
192 Environment { fogType FOG }
193 Cube { }
194 }
195
196 Translation { translation +4 0 0 }
197 Separator {
198 Environment { fogType SMOKE }
199 Cube { }
200 }
201
202 Translation { translation +4 0 0 }
203 Separator {
204 Environment {
205 fogType FOG
206 fogColor 1 0 0
207 }
208 Cube { }
209 }
210
211 Translation { translation +4 0 0 }
212 Separator {
213 Environment {
214 fogType FOG
215 fogColor 0 1 0
216 }
217 Cube { }
218 }
219
220 Translation { translation +4 0 0 }
221 Separator {
222 Environment {
223 fogType FOG
224 fogVisibility 0
225 }
226 Cube { }
227 }
228
229 Translation { translation +4 0 0 }
230 Separator {
231 Environment {
232 fogType FOG
233 fogVisibility 100
234 }
235 Cube { }
236 }
237
238 Translation { translation +4 0 0 }
239 Separator {
240 Environment {
241 fogType FOG
242 fogVisibility 200
243 }
244 Cube { }
245 }
246
247 Translation { translation +4 0 0 }
248 Separator {
249 Environment {
250 fogType FOG
251 fogVisibility 400
252 }
253 Cube { }
254 }
255
256 Translation { translation +4 0 0 }
257 Separator {
258 Environment {
259 fogType FOG
260 fogVisibility 800
261 }
262 Cube { }
263 }
264 }
265
266 # (ROW 4) Check ignore flags
267 Translation { translation 0 +4 0 }
268 Separator {
269 Environment {
270 ambientIntensity 1.0 ~
271 ambientColor 1 1 0 ~
272 attenuation 0 0 0 ~
273 fogType SMOKE ~
274 fogColor 0 0 1 ~
275 fogVisibility 1 ~
276 }
277 Cube { }
278 }
279 }