Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/test_ghost.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: 2.0 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_ghost.oxt")
5  include("templates/spaceship_pirate.oxt")
6  include("templates/lodinformation.oxt")
7?>
8
9<Level
10 name         = "Presentation09"
11 description  = "presentation level for Orxonox Convention X"
12
13>
14  <templates>
15    <Template link=lodtemplate_default />
16  </templates>
17
18  <Scene
19   ambientlight = "0.5, 0.5, 0.5"
20   skybox       = "Orxonox/skypanoramagen1"
21  >
22
23    <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" />
24
25    <SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipghost />
26
27    <?lua
28      max = 20
29      for i = 1, max, 1 do
30        x = math.sin(i/max*6)*40000
31        y = math.cos(i/max*6)*40000
32        z = i*100
33        for k = 1, 25, 1 do
34          j = math.random()
35    ?>
36      <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
37        <attached>
38          <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
39        </attached>
40        <?lua if i == 5 then ?><collisionShapes>
41          <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
42        </collisionShapes> <?lua end ?>
43      </MovableEntity>
44    <?lua
45        end
46      end
47    ?>
48   
49    <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
50
51  </Scene>
52</Level>
Note: See TracBrowser for help on using the repository browser.