Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/sample3.oxw @ 5322

Last change on this file since 5322 was 5312, checked in by landauf, 16 years ago

added shaders (compositors, materials, cg programs and textures)

  • Property svn:eol-style set to native
File size: 7.5 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates3.oxw")
7?>
8
9<Level
10 name         = "Sample"
11 description  = "Just a few tests"
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/Starbox"
16  >
17    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
18    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
19    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
20
21    <GlobalShader compositor="Old TV" visible=false>
22      <events>
23        <visibility>
24          <DistanceTrigger position="0,-200,0" distance=50 target="ControllableEntity" switch=true />
25        </visibility>
26      </events>
27    </GlobalShader>
28
29    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
30      <events>
31        <activity>
32          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
33        </activity>
34      </events>
35      <attached>
36        <Billboard material="Examples/Flare" colour="0.5, 0.5, 1.0, 1.0" scale=4 />
37        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
38        <PositionableEntity position="0,0,100">
39          <attached>
40            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
41            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
42              <attached>
43                <Model position="0,35,0" scale=2 mesh="ast1.mesh">
44                  <attached>
45                    <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
46                  </attached>
47                </Model>
48                <Model position="0,-35,0" scale=2 mesh="ast1.mesh">
49                  <attached>
50                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
51                  </attached>
52                </Model>
53                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
54                  <attached>
55                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
56                    <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
57                  </attached>
58                </Model>
59                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
60                  <attached>
61                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
62                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
63                  </attached>
64                </Model>
65              </attached>
66            </MovableEntity>
67          </attached>
68        </PositionableEntity>
69        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
70          <attached>
71            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
72            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
73            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
74            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
75          </attached>
76        </MovableEntity>
77      </attached>
78    </MovableEntity>
79
80
81    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
82    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
83    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
84    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
85    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
86
87
88    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
89      <events>
90        <spawn>
91          <EventTrigger delay=1>
92            <events>
93              <trigger>
94                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
95              </trigger>
96            </events>
97          </EventTrigger>
98        </spawn>
99      </events>
100    </ParticleSpawner>
101
102
103    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
104      <events>
105        <activity>
106          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
107        </activity>
108      </events>
109    </ParticleEmitter>
110    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
111      <events>
112        <activity>
113          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
114        </activity>
115      </events>
116    </ParticleEmitter>
117    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
118      <events>
119        <activity>
120          <EventListener event=firetrigger1 />
121          <EventListener event=firetrigger2 />
122        </activity>
123      </events>
124    </ParticleEmitter>
125
126
127    <EventDispatcher>
128      <targets>
129        <EventTarget name=fireright />
130        <EventTarget name=firecenter />
131        <EventTarget name=fireleft />
132      </targets>
133      <events>
134        <activity>
135          <DistanceTrigger position="0,0,200" distance=50 target="ControllableEntity" />
136        </activity>
137      </events>
138    </EventDispatcher>
139
140<!--
141    <EventDispatcher>
142      <targets>
143        <EventTarget name=bltest />
144      </targets>
145      <events>
146        <activity>
147          <DistanceTrigger switch=1 position="0,200,0" distance=100 target="ControllableEntity" />
148        </activity>
149      </events>
150    </EventDispatcher>
151-->
152
153    <Model position="0,50,0" scale=3 mesh="assff.mesh">
154      <events>
155        <visibility>
156          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
157        </visibility>
158      </events>
159    </Model>
160
161
162    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
163    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
164    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
165    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
166    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
167    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
168
169    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
170
171    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
172    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
173    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
174
175
176<?lua
177for i = 1, 0, 1
178do ?>
179  <MovableEntity position="<?lua print(math.random() * 3000 - 1500)?>, <?lua print(math.random() * 3000 - 1500) ?>, <?lua print(math.random() * 3000 - 1500) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
180    <attached>
181      <Model scale="<?lua print(math.random() * 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
182    </attached>
183  </MovableEntity>
184<?lua
185end
186?>
187
188  </Scene>
189</Level>
Note: See TracBrowser for help on using the repository browser.