This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
test.xml
135 lines (114 loc) · 5.54 KB
/
test.xml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="iso-8859-1"?>
<XperiML version="2.0">
<!-- application info -->
<applicationInfo>
<string id="author"> Sälly.Doe@tübingen.de </string>
<string id="version"> 0.5.0 </string>
<string id="date"> 2004-11-23 - 2006-08-18 </string>
<string id="shortDescr"> a demonstration application for LuaXML scripting </string>
<string id="usage"> [ -i(ini.xml) ] </string>
</applicationInfo>
<!-- initialization of the window -->
<deviceWindow id="0" name="window" deviceContainer="input">
<string id="winTitle"> my window </string>
<float id="mouseRelative"> 0 </float>
<float id="mouseNeutral"> 0.0 </float>
<bool id="mouseVisible"> 0 </bool>
<bool id="fullScreen"> 0 </bool>
<int id="zBufferBits"> 24 </int>
<int id="stencilBufferBits"> 0 </int>
<int id="winSizeX"> 800 </int>
<int id="winSizeY"> 600 </int>
<floatArray id="bgColor"> 0.5 0.6 0.7 </floatArray>
<!-- 2d visualization / overlay initialization -->
<overlay>
<floatArray id="bgNormalColor"> 1.0 1.0 1.0 0.2 </floatArray>
<floatArray id="fgNormalColor"> 1.0 0.0 1.0 0.7 </floatArray>
<floatArray id="bgSelectColor"> 0.0 0.5 1.0 0.7 </floatArray>
<floatArray id="fgSelectColor"> 1.0 1.0 1.0 1.0 </floatArray>
<!-- overlay plane minimum and maximum coordinates -->
<float id="minX"> -1.0 </float>
<float id="minY"> -1.0 </float>
<float id="maxX"> 1.0 </float>
<float id="maxY"> 1.0 </float>
</overlay>
<!-- X Y Z H P R (output axes) -->
<axesInputMapping> 0 1 2 3 4 5 </axesInputMapping>
<axesInputScale> 1 1 1 1 1 1 </axesInputScale>
<axesInputShift> 0 0 0 0 0 0 </axesInputShift>
</deviceWindow>
<deviceGraphics id="0">
<!-- 3d visualization initialization -->
<float id="nearClipping"> 0.1 </float>
<float id="farClipping"> 2000 </float>
<float id="frustumLeft"> -1.0 </float>
<float id="frustumRight"> 1.0 </float>
<float id="frustumBottom">-.75 </float>
<float id="frustumTop"> .75 </float>
<bool id="backFaceCulling"> 1 </bool>
<!-- camera initialization -->
<camera object="observer" pos="0 -3 1.6 0 0 0"/>
</deviceGraphics>
<!-- audio device initialization -->
<deviceAudio id="0" class="deviceAudioAL"> <!-- specific global settings for OpenAL -->
<int id="distanceModel"> 1 </int> <!-- valid arguments are NONE=0, INVERSE_DISTANCE=1 (default), INVERSE_DISTANCE_CLAMPED=2, see OpenAL ref. man. p.21 -->
<float id="dopplerVelocity"> 330.0 </float> <!-- corresponds to sonic speed for doppler effect calculations -->
<float id="dopplerFactor"> 1.0 </float> <!-- additional scaling factor for doppler effect calculations -->
</deviceAudio>
<!-- internal script definitions -->
<scripts>
<script name="main" mime="application/x-lua">
<![CDATA[
-- initialization
if nFrames==nil then
nFrames=0;
tLastFrames=ve.now();
end
-- termination
if obj.getFlag(INPUT,27) then
ve.exit();
end
-- update info line:
if ve.now()>=tLastFrames+1.0 then
tLastFrames=ve.now()
ovl.text(1,-1,ALIGN_RIGHT,ALIGN_BOTTOM,nFrames," fps");
nFrames=0;
end
nFrames=nFrames+1;
]]>
</script>
</scripts>
<!-- resource definition -->
<resources>
<resource mime="model/vrml" id="1" name="virtualab" url="resources/virtualab.wrl"/>
<resource mime="model/vrml" id="2" name="surface" url="resources/virtualab_surface.wrl"/>
<resource mime="model/vrml" id="3" name="cube" url="resources/box.wrl"/>
<resource mime="model/vrml" id="5" name="ball" url="resources/ball01.wrl"/>
<resource mime="image/png" id="6" name="veRner" url="resources/veRner_small.png" sizeX="6" sizeY="3"/>
<resource mime="image/png" id="7" name="explo" url="resources/explo.png" sizeX="3" sizeY="3" timeSpan="1.0" loop="true" tileX="4" tileY="4" usePitch="true"/>
<resource mime="font/txf" id="10" name="default" url="default.txf" size="24"/>
<resource mime="audio/wav" id="11" loop="true" url="resources/ding.wav"/>
<resource mime="audio/wav" id="12" pitch="1.0" loop="true" attenuationDist="3.0" url="resources/riff01.wav"/>
<resource mime="audio/wav" id="13" pitch="1.0" loop="true" url="resources/river.wav"/>
<container id="20" name="box" shape="3" sound="12"/>
<container id="21" name="ufo" shape="5" sound="13"/>
</resources>
<!-- scene and simulation initialization -->
<scene id="0" script="main">
<object id="0" name="observer" script="camera.lua" input="window"/>
<object id="1" shape="1" surface="2" pos="0 0 0"/>
<object id="3" shape="20" sound="20" pos="-5 5 0 225 0 0"/>
<object id="5" shape="21" sound="21" pos="2 2 2" speed="0 2 0 30 0 0"/>
<object id="6" shape="6" pos="0 7 5"/>
<object id="7" shape="7" pos="-4.5 4.5 1.7"/>
<object id="11" sound="11" pos="10 -10 0"/>
<light id="0" enabled="1" position="-.5 -.75 1.0 0.0" ambient="0.3 0.3 0.3 1.0" diffuse="0.7 0.7 0.7 1.0" specular="1.0 1.0 1.0 1.0"/>
</scene>
<cdata_test>
<chars><![CDATA[x<works>]]></chars>
<tagged><![CDATA[<works>]]></tagged>
<open><![CDATA[<]]></open>
<close><![CDATA[>]]></close>
<empty><![CDATA[]]></empty>
</cdata_test>
</XperiML>