1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <COLLADA xmlns="http://www.collada.org/2005/COLLADASchema" version="1.3.0"> |
---|
3 | <asset> |
---|
4 | <copyright>Copyright 2005 Sony Computer Entertainment Inc., All Rights Reserved.</copyright> |
---|
5 | <authoring_tool>editor</authoring_tool> |
---|
6 | <up_axis>Y_UP</up_axis> |
---|
7 | <unit name="centimeter" meter="1.e-002"/> |
---|
8 | <author>fup</author> |
---|
9 | <modified>2006-02-12</modified> |
---|
10 | </asset> |
---|
11 | <library type="IMAGE"> |
---|
12 | <image id="Img_Textures_Checker" name="Img_Textures_Checker" source="NeHe.bmp"/> |
---|
13 | </library> |
---|
14 | <library type="TEXTURE"> |
---|
15 | <texture id="Img_Textures_Checker-DIFFUSE"> |
---|
16 | <param name="DIFFUSE" type="float3" flow="OUT"/> |
---|
17 | <technique profile="COMMON"> |
---|
18 | <input semantic="IMAGE" source="#Img_Textures_Checker"/> |
---|
19 | </technique> |
---|
20 | </texture> |
---|
21 | </library> |
---|
22 | <library type="MATERIAL"> |
---|
23 | <material id="Default" name="Default"> |
---|
24 | <shader> |
---|
25 | <technique profile="COMMON"> |
---|
26 | <pass> |
---|
27 | <input semantic="TEXTURE" source="#Img_Textures_Checker-DIFFUSE"/> |
---|
28 | <program url="PHONG"> |
---|
29 | <param name="DIFFUSE" type="float3" flow="IN" sid="diffuse">1. 1. 1.</param> |
---|
30 | <param name="AMBIENT" type="float3" flow="IN" sid="param1">0 0 0</param> |
---|
31 | <param name="TRANSPARENT" type="float3" flow="IN" sid="transparent">0 0 0</param> |
---|
32 | <param name="TRANSPARENCY" type="float" flow="IN">0</param> |
---|
33 | <param name="EMISSION" type="float3" flow="IN" sid="param4">0 0 0</param> |
---|
34 | <param name="SPECULAR" type="float3" flow="IN" sid="param5">0.5 0.5 0.5</param> |
---|
35 | <param name="REFLECTIVE" type="float3" flow="IN" sid="param6">1. 1. 1.</param> |
---|
36 | <param name="REFLECTIVITY" type="float" flow="IN" sid="param7">0.5</param> |
---|
37 | <param name="SHININESS" type="float" flow="IN" sid="param8">10.</param> |
---|
38 | </program> |
---|
39 | </pass> |
---|
40 | </technique> |
---|
41 | </shader> |
---|
42 | </material> |
---|
43 | </library> |
---|
44 | <library type="GEOMETRY"> |
---|
45 | <geometry id="box-lib" name="box"> |
---|
46 | <mesh> |
---|
47 | <source id="box-lib-Position"> |
---|
48 | <float_array id="box-lib-Position-array" count="24"> |
---|
49 | 50. -50. 50. |
---|
50 | 50. 50. 50. |
---|
51 | -50. 50. 50. |
---|
52 | -50. -50. 50. |
---|
53 | 50. -50. -50. |
---|
54 | 50. 50. -50. |
---|
55 | -50. 50. -50. |
---|
56 | -50. -50. -50. |
---|
57 | </float_array> |
---|
58 | <technique profile="COMMON"> |
---|
59 | <accessor source="#box-lib-Position-array" count="8" stride="3"> |
---|
60 | <param name="X" type="float" flow="OUT"/> |
---|
61 | <param name="Y" type="float" flow="OUT"/> |
---|
62 | <param name="Z" type="float" flow="OUT"/> |
---|
63 | </accessor> |
---|
64 | </technique> |
---|
65 | </source> |
---|
66 | <source id="box-lib-Normal"> |
---|
67 | <float_array id="box-lib-Normal-array" count="18"> |
---|
68 | 0 0 1. |
---|
69 | 1. 0 0 |
---|
70 | 0 1. 0 |
---|
71 | -1. 0 0 |
---|
72 | 0 -1. 0 |
---|
73 | 0 0 -1. |
---|
74 | </float_array> |
---|
75 | <technique profile="COMMON"> |
---|
76 | <accessor source="#box-lib-Normal-array" count="6" stride="3"> |
---|
77 | <param name="X" type="float" flow="OUT"/> |
---|
78 | <param name="Y" type="float" flow="OUT"/> |
---|
79 | <param name="Z" type="float" flow="OUT"/> |
---|
80 | </accessor> |
---|
81 | </technique> |
---|
82 | </source> |
---|
83 | <source id="box-lib-map1" name="map1"> |
---|
84 | <float_array id="box-lib-map1-array" count="8"> |
---|
85 | 0 1 |
---|
86 | 1 1 |
---|
87 | 1 0 |
---|
88 | 0 0 |
---|
89 | </float_array> |
---|
90 | <technique profile="COMMON"> |
---|
91 | <accessor source="#box-lib-map1-array" count="4" stride="2"> |
---|
92 | <param name="S" type="float" flow="OUT"/> |
---|
93 | <param name="T" type="float" flow="OUT"/> |
---|
94 | </accessor> |
---|
95 | </technique> |
---|
96 | </source> |
---|
97 | <vertices id="box-lib-Vertex"> |
---|
98 | <input semantic="POSITION" source="#box-lib-Position"/> |
---|
99 | </vertices> |
---|
100 | <polygons material="#Default" count="6"> |
---|
101 | <input semantic="VERTEX" idx="0" source="#box-lib-Vertex"/> |
---|
102 | <input semantic="NORMAL" idx="1" source="#box-lib-Normal"/> |
---|
103 | <input semantic="TEXCOORD" idx="2" source="#box-lib-map1"/> |
---|
104 | <p>3 0 0 0 0 1 1 0 2 2 0 3</p> |
---|
105 | <p>0 1 3 4 1 0 5 1 1 1 1 2</p> |
---|
106 | <p>1 2 1 5 2 2 6 2 3 2 2 0</p> |
---|
107 | <p>6 3 3 7 3 0 3 3 1 2 3 2</p> |
---|
108 | <p>3 4 3 7 4 0 4 4 1 0 4 2</p> |
---|
109 | <p>4 5 3 7 5 0 6 5 1 5 5 2</p> |
---|
110 | </polygons> |
---|
111 | </mesh> |
---|
112 | </geometry> |
---|
113 | </library> |
---|
114 | <library type="LIGHT"> |
---|
115 | <light id="Lt_Light-lib" name="Lt_Light" type="POINT"> |
---|
116 | <param name="COLOR" type="float3" flow="IN" sid="param0">1. 1. 1.</param> |
---|
117 | <param name="ATTENUATION" type="function" flow="IN">CONSTANT</param> |
---|
118 | <param name="ATTENUATION_SCALE" type="float" flow="IN">1.</param> |
---|
119 | </light> |
---|
120 | <light id="pointLightShape1-lib" name="pointLightShape1" type="POINT"> |
---|
121 | <param name="COLOR" type="float3" flow="IN" sid="param0">1. 1. 1.</param> |
---|
122 | <param name="ATTENUATION" type="function" flow="IN">CONSTANT</param> |
---|
123 | <param name="ATTENUATION_SCALE" type="float" flow="IN">1.</param> |
---|
124 | </light> |
---|
125 | </library> |
---|
126 | <library type="CAMERA"> |
---|
127 | <camera id="PerspCamera-lib" name="PerspCamera"> |
---|
128 | <technique profile="COMMON"> |
---|
129 | <optics> |
---|
130 | <program url="PERSPECTIVE"> |
---|
131 | <param name="YFOV" type="float" flow="IN" sid="param0">36.</param> |
---|
132 | <param name="ZNEAR" type="float" flow="IN" sid="param1">10.</param> |
---|
133 | <param name="ZFAR" type="float" flow="IN" sid="param2">3.2767e+006</param> |
---|
134 | </program> |
---|
135 | </optics> |
---|
136 | </technique> |
---|
137 | </camera> |
---|
138 | <camera id="testCameraShape-lib" name="testCameraShape"> |
---|
139 | <technique profile="COMMON"> |
---|
140 | <optics> |
---|
141 | <program url="PERSPECTIVE"> |
---|
142 | <param name="YFOV" type="float" flow="IN" sid="param0">37.85</param> |
---|
143 | <param name="ZNEAR" type="float" flow="IN" sid="param1">1.e-002</param> |
---|
144 | <param name="ZFAR" type="float" flow="IN" sid="param2">1000.</param> |
---|
145 | </program> |
---|
146 | </optics> |
---|
147 | </technique> |
---|
148 | </camera> |
---|
149 | </library> |
---|
150 | <scene name="texturedcube_I-Maya"> |
---|
151 | <boundingbox> |
---|
152 | <min>-501. -50. -50.</min> |
---|
153 | <max>50. 1001. 424.262</max> |
---|
154 | </boundingbox> |
---|
155 | <node id="Camera" name="Camera"> |
---|
156 | <boundingbox> |
---|
157 | <min>-187.469 140.618 419.567</min> |
---|
158 | <max>-184.005 143.486 424.231</max> |
---|
159 | </boundingbox> |
---|
160 | <translate sid="translate">-185.786 141.852 422.013</translate> |
---|
161 | <rotate sid="rotateY">0 1 0 -23.25</rotate> |
---|
162 | <rotate sid="rotateX">1 0 0 -17.9454</rotate> |
---|
163 | <skew sid="shearYZ">1.51835e-007 0 0 1 0 1 0</skew> |
---|
164 | <instance url="#PerspCamera-lib"/> |
---|
165 | </node> |
---|
166 | <node id="Light" name="Light"> |
---|
167 | <boundingbox> |
---|
168 | <min>-501. 999. 399.</min> |
---|
169 | <max>-499. 1001. 401.</max> |
---|
170 | </boundingbox> |
---|
171 | <translate sid="translate">-500. 1000. 400.</translate> |
---|
172 | <instance url="#Lt_Light-lib"/> |
---|
173 | </node> |
---|
174 | <node id="Box" name="Box"> |
---|
175 | <boundingbox> |
---|
176 | <min>-50. -50. -50.</min> |
---|
177 | <max>50. 50. 50.</max> |
---|
178 | </boundingbox> |
---|
179 | <instance url="#box-lib"/> |
---|
180 | </node> |
---|
181 | <node id="testCamera" name="testCamera"> |
---|
182 | <boundingbox> |
---|
183 | <min>-187.523 140.584 419.546</min> |
---|
184 | <max>-183.955 143.486 424.262</max> |
---|
185 | </boundingbox> |
---|
186 | <translate sid="translate">-185.786 141.852 422.013</translate> |
---|
187 | <rotate sid="rotateY">0 1 0 -23.25</rotate> |
---|
188 | <rotate sid="rotateX">1 0 0 -17.9454</rotate> |
---|
189 | <instance url="#testCameraShape-lib"/> |
---|
190 | </node> |
---|
191 | <node id="pointLight1" name="pointLight1"> |
---|
192 | <boundingbox> |
---|
193 | <min>2. 3. 9.</min> |
---|
194 | <max>4. 5. 11.</max> |
---|
195 | </boundingbox> |
---|
196 | <translate sid="translate">3. 4. 10.</translate> |
---|
197 | <instance url="#pointLightShape1-lib"/> |
---|
198 | </node> |
---|
199 | </scene> |
---|
200 | </COLLADA> |
---|