-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxml_syntax.xml
More file actions
61 lines (50 loc) · 2.5 KB
/
xml_syntax.xml
File metadata and controls
61 lines (50 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<world> <!-- a world can have a camera, a set of lights, and a single group -->
<camera>
<position x="10" y="10" z="10" />
<lookAt x="0" y="0" z="0" />
<up x="0" y="1" z="0" /> <!-- optional, use these values as default-->
<projection fov="60" near="1" far="1000" /> <!-- optional, use these values as default-->
</camera>
<lights> <!-- Required only in phase 4. It can contain up to 8 "light" items -->
<light type="point" posX="0" posY="10" posZ="0" />
<light type="directional" dirX="1" dirY="1" dirZ="1"/>
<light type="spotlight" posX="0" posY="10" posZ="0" dirX="1" dirY="1" dirZ="1" cutoff="45" />
</lights>
<group> <!-- can contain a single "transform" item, a single "models" item,
and multiple "group" items -->
<transform> <!-- not required in phase 1. A single "transform" node is allowed-->
<!-- only one entry for each type of transformation (translate, rotate, scale) -->
<!-- order is relevant: translate followed by scale can produce results different
from scale followed by translation -->
<translate x="5" y="0" z="2" />
<rotate angle="45" x="0" y="1" z="0" />
<scale x="2" y="2" z="2" />
</transform>
<models> <!-- can contain multiple 'model' items.
Each model requires a file. Texture and color are optional -->
<model file="sphere.3d" >
<!-- it texture is not specified then the model is rendered with color only-->
<texture file="earth.jpg" />
<!-- if color is not specified, use the values below as default -->
<color>
<diffuse R="200" G="200" B="200" />
<ambient R="50" G="50" B="50" />
<specular R="0" G="0" B="0" />
<emissive R="0" G="0" B="0" />
<shininess value="0" /> <!-- Max 255 -->
</color>
</model>
</models>
</group>
</world>
<?ignore
<!-- Translation can be defined as a path if presented as follow: -->
<translate time = "10" align="True" > <!-- Align's parameter tells if the object must face the curve's orientation -->
<point x = "0" y = "0" z = "4" />
<point x = "4" y = "0" z = "0" />
<point x = "0" y = "0" z = "-4" />
<point x = "-4" y = "10" z = "0" />
</translate>
<!-- Rotation can be defined as a infinite rotation over time as follow: -->
<rotate time="5" x="0" y="1" z="0" />
?>