1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3    file                 : b-speedway.xml
4    created              : Sun Mar 19 00:13:46 CET 2000
5    copyright            : (C) 2000 by Eric Espie
6    email                : torcs@free.fr
7    version              : $Id: c-speedway.xml,v 1.2 2004/02/09 05:42:42 torcs Exp $
8-->
9
10<!--    This program is free software; you can redistribute it and/or modify  -->
11<!--    it under the terms of the GNU General Public License as published by  -->
12<!--    the Free Software Foundation; either version 2 of the License, or     -->
13<!--    (at your option) any later version.                                   -->
14
15<!DOCTYPE params SYSTEM "../../../../src/libs/tgf/params.dtd" [
16<!-- general definitions for tracks -->
17<!ENTITY default-surfaces SYSTEM "../../../data/tracks/surfaces.xml">
18<!ENTITY default-objects SYSTEM "../../../data/tracks/objects.xml">
19]>
20
21<params name="C-Speedway" type="trackdef" mode="mw">
22
23
24  <!-- Surfaces -->
25  <section name="Surfaces">
26      &default-surfaces;
27  </section>
28
29  <!-- Objects -->
30  <section name="Objects">
31      &default-objects;
32  </section>  <!-- Objects -->
33
34  <section name="Header">
35    <attstr name="name"        val="C-Speedway"/>
36    <attstr name="category"    val="oval"/>
37    <attnum name="version"     val="4"/>
38    <attstr name="author"      val="E.Espie"/>
39    <attstr name="description" val="Oval shaped SpeedWay"/>
40  </section>
41
42  <section name="Graphic">
43    <attstr name="3d description" val="c-speedway.ac"/>
44
45    <attstr name="background image" val="background.png"/>
46    <attnum name="background type" val="4"/>
47
48    <attnum name="background color R" val="0.5"/>
49    <attnum name="background color G" val="0.5"/>
50    <attnum name="background color B" val="0.55"/>
51
52    <attnum name="ambient color R" val="0.1"/>
53    <attnum name="ambient color G" val="0.1"/>
54    <attnum name="ambient color B" val="0.05"/>
55
56    <attnum name="diffuse color R" val="1"/>
57    <attnum name="diffuse color G" val="1"/>
58    <attnum name="diffuse color B" val="1"/>
59
60    <attnum name="specular color R" val="0.1"/>
61    <attnum name="specular color G" val="0.1"/>
62    <attnum name="specular color B" val="0.1"/>
63
64
65    <attnum name="light position x" val="-0"/>
66    <attnum name="light position y" val="1000"/>
67    <attnum name="light position z" val="300"/>
68
69
70    <section name="Environment Mapping">
71      <section name="1">
72	<attstr name="env map image" val="env.png"/>
73      </section>
74    </section>
75
76    <section name="Terrain Generation">
77      <attnum name="track step" unit="m" val="20"/>
78      <attnum name="border margin" unit="m" val="300"/>
79      <attnum name="border step" unit="m" val="50"/>
80      <attnum name="border height" unit="m" val="20"/>
81      <attstr name="surface" val="grass6"/>
82      <attstr name="relief file" val="c-speedway-relief.ac"/>
83    </section>
84
85  </section>
86
87
88  <section name="Main Track">
89
90    <attnum name="width" unit="m" val="30.0"/>
91    <attnum name="profil steps length" unit="m" val="10"/>
92
93    <!-- PITS -->
94    <section name="Pits">
95      <attstr name="type" val="track side"/>
96      <attstr name="side" val="left"/>
97      <attstr name="entry" val="pit entry"/>
98      <attstr name="start" val="last seg"/>
99      <attstr name="end" val="start lane"/>
100      <attstr name="exit" val="pit exit"/>
101      <attnum name="length" unit="m" val="15"/>
102      <attnum name="width" unit="m" val="6"/>
103    </section>  <!-- PITS -->
104
105    <section name="Track Segments">
106
107      <section name="start lane">
108        <attstr name="type" val="str"/>
109	<attnum name="lg" unit="m" val="150"/>
110	<attstr name="surface" val="concrete4"/>
111	<attnum name="banking start" unit="deg" val="-15"/>
112	<attnum name="banking end" unit="deg" val="-15"/>
113
114	<section name="Right Barrier">
115	  <attstr name="surface" val="wall"/>
116	  <attstr name="style" val="wall"/>
117	  <attnum name="width" val="0.5"/>
118	  <attnum name="height" val="1.5"/>
119	</section>
120
121	<section name="Left Border">
122	  <attstr name="surface" val="b-concrete4-concrete-l1"/>
123	  <attnum name="width" val="1.0"/>
124	  <attstr name="style" val="plan"/>
125	</section>
126
127	<section name="Left Side">
128	  <attnum name="start width" val="15"/>
129	  <attnum name="end width" val="15"/>
130	  <attstr name="surface" val="concrete-pits"/>
131	  <attstr name="type" in="level,tangent" val="level"/>
132	</section>
133      </section>
134
135      <section name="pit exit">
136        <attstr name="type" val="str"/>
137	<attnum name="lg" unit="m" val="150"/>
138	<attnum name="banking end" unit="deg" val="-15"/>
139
140 	<section name="Left Border">
141	  <attstr name="surface" val="b-concrete4-concrete-l1p"/>
142	  <attnum name="width" val="1.0"/>
143	  <attstr name="style" val="plan"/>
144	</section>
145
146	<section name="Left Side">
147	  <attstr name="surface" val="concrete"/>
148	  <attnum name="end width" val="8"/>
149	</section>
150      </section>
151
152      <section name="turn1-1">
153        <attstr name="type" val="lft"/>
154	<attnum name="radius" unit="m" val="400"/>
155	<attnum name="arc" unit="deg" val="30"/>
156	<attnum name="banking end" unit="deg" val="-16"/>
157	<attnum name="z end" val="3.88"/>
158
159 	<section name="Left Border">
160	  <attstr name="surface" val="b-concrete4-concrete-l1"/>
161	  <attnum name="width" val="1.0"/>
162	  <attstr name="style" val="plan"/>
163	</section>
164      </section>
165
166      <section name="turn1-2">
167        <attstr name="type" val="lft"/>
168	<attnum name="radius" unit="m" val="300"/>
169	<attnum name="arc" unit="deg" val="120"/>
170      </section>
171
172      <section name="turn1-3">
173        <attstr name="type" val="lft"/>
174	<attnum name="radius" unit="m" val="400"/>
175	<attnum name="arc" unit="deg" val="30"/>
176	<attnum name="banking end" unit="deg" val="-15"/>
177	<attnum name="z end" val="0"/>
178      </section>
179
180      <section name="line2-1">
181        <attstr name="type" val="str"/>
182	<attnum name="lg" unit="m" val="300"/>
183	<attnum name="banking end" unit="deg" val="-15"/>
184	<attnum name="z end" val="0"/>
185      </section>
186
187      <section name="line2-2">
188        <attstr name="type" val="str"/>
189	<attnum name="lg" unit="m" val="300"/>
190	<attnum name="banking end" unit="deg" val="-15"/>
191	<attnum name="z end" val="0"/>
192     </section>
193
194      <section name="turn2-1">
195        <attstr name="type" val="lft"/>
196	<attnum name="radius" unit="m" val="400"/>
197	<attnum name="arc" unit="deg" val="30"/>
198	<attnum name="banking end" unit="deg" val="-16"/>
199 	<attnum name="z end" val="3.88"/>
200     </section>
201
202      <section name="turn2-2">
203        <attstr name="type" val="lft"/>
204	<attnum name="radius" unit="m" val="300"/>
205	<attnum name="arc" unit="deg" val="120"/>
206      </section>
207
208      <section name="turn2-3">
209        <attstr name="type" val="lft"/>
210	<attnum name="radius" unit="m" val="400"/>
211	<attnum name="arc" unit="deg" val="30"/>
212	<attnum name="banking end" unit="deg" val="-15"/>
213	<attnum name="z end" val="0"/>
214      </section>
215
216      <section name="pit entry">
217        <attstr name="type" val="str"/>
218	<attnum name="lg" unit="m" val="150"/>
219	<attnum name="banking end" unit="deg" val="-15"/>
220	<attnum name="z end" val="0"/>
221
222 	<section name="Left Border">
223	  <attstr name="surface" val="b-concrete4-concrete-l1p"/>
224	  <attnum name="width" val="1.0"/>
225	  <attstr name="style" val="plan"/>
226	</section>
227
228	<section name="Left Side">
229	  <attstr name="surface" val="concrete"/>
230	  <attnum name="end width" val="15"/>
231	</section>
232      </section>
233
234
235      <section name="last seg">
236        <attstr name="type" val="str"/>
237	<attnum name="lg" unit="m" val="150"/>
238
239	<section name="Left Border">
240	  <attstr name="surface" val="b-concrete4-concrete-l1"/>
241	  <attnum name="width" val="1.0"/>
242	  <attstr name="style" val="plan"/>
243	</section>
244
245	<section name="Left Side">
246	  <attnum name="end width" val="15"/>
247	  <attstr name="surface" val="concrete-pits"/>
248	  <attstr name="type" in="level,tangent" val="level"/>
249	</section>
250      </section>
251
252
253    </section>
254  </section>
255
256  <!-- Cameras -->
257  <section name="Cameras">
258
259    <section name="cam 0">
260      <!-- Camera's position relative to a segment -->
261      <attstr name="segment"  val="start lane"/>
262      <attnum name="to right" val="0"/>
263      <attnum name="to start" val="100"/>
264      <attnum name="height"   val="4"/>
265      <!-- Camera field of view, indicates the first and last segment viewed -->
266      <attstr name="fov start" val="start lane"/> <!-- included  -->
267      <attstr name="fov end"   val="turn1-1"/> <!-- excluded -->
268    </section>
269
270    <section name="cam 1">
271      <!-- Camera's position relative to a segment -->
272      <attstr name="segment"  val="turn1-2"/>
273      <attnum name="to right" val="40"/>
274      <attnum name="to start" unit="deg" val="30"/>
275      <attnum name="height"   val="2"/>
276      <!-- Camera field of view, indicates the first and last segment viewed -->
277      <attstr name="fov start" val="turn1-1"/> <!-- included  -->
278      <attstr name="fov end"   val="line2-1"/> <!-- excluded -->
279    </section>
280
281    <section name="cam 2">
282      <!-- Camera's position relative to a segment -->
283      <attstr name="segment"  val="line2-1"/>
284      <attnum name="to right" val="50"/>
285      <attnum name="to start" val="150"/>
286      <attnum name="height"   val="4"/>
287      <!-- Camera field of view, indicates the first and last segment viewed -->
288      <attstr name="fov start" val="line2-1"/> <!-- included  -->
289      <attstr name="fov end"   val="line2-2"/> <!-- excluded -->
290    </section>
291
292    <section name="cam 3">
293      <!-- Camera's position relative to a segment -->
294      <attstr name="segment"  val="line2-2"/>
295      <attnum name="to right" val="50"/>
296      <attnum name="to start" val="150"/>
297      <attnum name="height"   val="4"/>
298      <!-- Camera field of view, indicates the first and last segment viewed -->
299      <attstr name="fov start" val="line2-2"/> <!-- included  -->
300      <attstr name="fov end"   val="turn2-1"/> <!-- excluded -->
301    </section>
302
303    <section name="cam 4">
304      <!-- Camera's position relative to a segment -->
305      <attstr name="segment"  val="turn2-2"/>
306      <attnum name="to right" val="40"/>
307      <attnum name="to start" unit="deg" val="30"/>
308      <attnum name="height"   val="2"/>
309      <!-- Camera field of view, indicates the first and last segment viewed -->
310      <attstr name="fov start" val="turn2-1"/> <!-- included  -->
311      <attstr name="fov end"   val="pit entry"/> <!-- excluded -->
312    </section>
313
314
315    <section name="cam 8">
316      <!-- Camera's position relative to a segment -->
317      <attstr name="segment"  val="last seg"/>
318      <attnum name="to right" val="0"/>
319      <attnum name="to start" val="100"/>
320      <attnum name="height"   val="4"/>
321      <!-- Camera field of view, indicates the first and last segment viewed -->
322      <attstr name="fov start" val="pit entry"/> <!-- included  -->
323      <attstr name="fov end"   val="start lane"/> <!-- excluded -->
324    </section>
325
326  </section>
327
328
329</params>
330
331