Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/tutorial.oxw @ 7036

Last change on this file since 7036 was 7036, checked in by scheusso, 14 years ago

some changes regarding lod:

  • added lodtemplate in different levels
  • trying to avoid sigabrt's because of models with too much lod levels
  • Property svn:eol-style set to native
File size: 5.2 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5?>
6
7<Level
8 name         = "Presentation"
9 description  = "A simple testlevel"
10>
11  <templates>
12    <Template link=lodtemplate_default />
13  </templates>
14  <Scene
15   ambientlight = "0.5, 0.5, 0.5"
16   skybox       = "Orxonox/skypanoramagen1"
17  >
18
19 
20 
21 
22<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
23  <attached>
24    <Model scale="1" mesh="drone.mesh"/>
25  </attached>
26  <collisionShapes>
27    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
28  </collisionShapes>
29</Drone>
30
31    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
32      <attached>
33        <Model scale="1" mesh="rocket.mesh"/>
34      </attached>
35      <collisionShapes>
36        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
37      </collisionShapes>
38    </Drone>
39
40    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
41
42    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
43    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
44
45    <?lua
46      for i = 1, 10, 1 do
47    ?>
48      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
49    <?lua end ?>
50
51    <GlobalShader compositor="Bloom" visible=false>
52      <events>
53        <visibility>
54          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
55        </visibility>
56      </events>
57    </GlobalShader>
58    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
59    <StaticEntity position="0,0,0" collisionType=static>
60      <collisionShapes>
61        <SphereCollisionShape radius="20" />
62      </collisionShapes>
63    </StaticEntity>
64
65<!--
66    <?lua
67      for i = 1, 70, 1 do
68    ?>
69      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
70        <attached>
71          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
72        </attached>
73      </MovableEntity>
74      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
75        <attached>
76          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
77        </attached>
78      </MovableEntity>
79
80      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
81        <attached>
82          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
83        </attached>
84      </MovableEntity>
85      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
86        <attached>
87          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
88        </attached>
89      </MovableEntity>
90
91      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
92        <attached>
93          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
94        </attached>
95      </MovableEntity>
96      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
97        <attached>
98          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
99        </attached>
100      </MovableEntity>
101    <?lua end ?>
102-->
103
104  </Scene>
105</Level>
Note: See TracBrowser for help on using the repository browser.