Debian Codegraph @

models/oiv_compliance/pointlight.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check rendering with an SoPointLight.
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,
22 0.5 0.5 0, -0.5 0.5 0,
23 ]
24 }
25 QuadMesh {
26 verticesPerColumn 2
27 verticesPerRow 2
28 }
29 }
30 }
31 }
32
33 # ROW 0 -- different locations
34 Translation { translation 0 +10 0 }
35 Separator {
36 BaseColor { rgb 1 0 0 }
37 Separator {
38 PointLight { }
39 USE mesh
40 }
41
42 BaseColor { rgb 0 1 0 }
43 Translation { translation +12 0 0 }
44 Separator {
45 PointLight { location -4 -4 1 }
46 USE mesh
47 }
48
49 BaseColor { rgb 1 1 0 }
50 Translation { translation +12 0 0 }
51 Separator {
52 PointLight { location 4 -4 1}
53 USE mesh
54 }
55
56 BaseColor { rgb 1 0 1 }
57 Translation { translation +12 0 0 }
58 Separator {
59 PointLight { location 4 4 1 }
60 USE mesh
61 }
62
63 BaseColor { rgb 1 1 1 }
64 Translation { translation +12 0 0 }
65 Separator {
66 PointLight { location -4 4 1 }
67 USE mesh
68 }
69 }
70
71 # ROW 1 -- misc field settings
72 Translation { translation 0 +12 0 }
73 Separator {
74 BaseColor { rgb 1 0 0 }
75 Separator {
76 PointLight { on FALSE }
77 USE mesh
78 }
79
80 BaseColor { rgb 1 1 0 }
81 Translation { translation +12 0 0 }
82 Separator {
83 PointLight { intensity 0.8 }
84 USE mesh
85 }
86
87 BaseColor { rgb 1 1 0 }
88 Translation { translation +12 0 0 }
89 Separator {
90 PointLight { intensity 0.5 }
91 USE mesh
92 }
93
94 BaseColor { rgb 1 1 0 }
95 Translation { translation +12 0 0 }
96 Separator {
97 PointLight { intensity 0.2 }
98 USE mesh
99 }
100
101 BaseColor { rgb 1 1 1 }
102 Translation { translation +12 0 0 }
103 Separator {
104 PointLight { color 1 0 0 }
105 USE mesh
106 }
107
108 BaseColor { rgb 0 0 0 }
109 Translation { translation +12 0 0 }
110 Separator {
111 PointLight { color 1 0 0 }
112 USE mesh
113 }
114 }
115
116 # ROW 2 -- set ignore flags
117 Translation { translation 0 +12 0 }
118 Separator {
119 BaseColor { rgb 1 0 0 }
120 Separator {
121 PointLight { location 4 4 -1 ~ }
122 USE mesh
123 }
124
125 BaseColor { rgb 1 1 0 }
126 Translation { translation +12 0 0 }
127 Separator {
128 PointLight { intensity 0.2 ~ }
129 USE mesh
130 }
131
132 BaseColor { rgb 1 1 1 }
133 Translation { translation +12 0 0 }
134 Separator {
135 PointLight { on FALSE ~ }
136 USE mesh
137 }
138
139 BaseColor { rgb 1 1 1 }
140 Translation { translation +12 0 0 }
141 Separator {
142 PointLight { color 1 0 0 ~ }
143 USE mesh
144 }
145 }
146 }