[Orxonox-commit 1534] r6252 - in code/branches/presentation2/data: levels particle
decapitb at orxonox.net
decapitb at orxonox.net
Sun Dec 6 15:21:14 CET 2009
Author: decapitb
Date: 2009-12-06 15:21:13 +0100 (Sun, 06 Dec 2009)
New Revision: 6252
Added:
code/branches/presentation2/data/levels/presentationHS09.oxw
code/branches/presentation2/data/particle/Steam.particle
Log:
Fog and asteroid Tests in Level presentationHS09
Added: code/branches/presentation2/data/levels/presentationHS09.oxw
===================================================================
--- code/branches/presentation2/data/levels/presentationHS09.oxw (rev 0)
+++ code/branches/presentation2/data/levels/presentationHS09.oxw 2009-12-06 14:21:13 UTC (rev 6252)
@@ -0,0 +1,410 @@
+<?lua
+ include("hudtemplates3.oxo")
+ include("stats.oxo")
+ include("templates/spaceship_assff.oxt")
+ include("templates/spaceship_H2.oxt")
+ include("templates/spaceship_pirate.oxt")
+?>
+
+<Level
+ name = "Presentation09"
+ description = "presentation level for Orxonox Convention X"
+ gametype = TeamDeathmatch
+ hasPhysics = true
+>
+ <Scene
+ ambientlight = "0.6, 0.4, 0.4"
+ skybox = "Orxonox/skypanoramagen2"
+ >
+ <Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="0.8, 0.5, 0.5, 1.0" specular="0.8, 0.4, 0.4, 1.0" />
+
+ <Template name="JumpItem" baseclass="Jump">
+ <Jump velocity="0,0,-1000" jumpsAvailable="4" guiImage="jumpturbinepickup.jpg" guiText="Jump" />
+ </Template>
+ <Template name="HealthImmediateItem" baseclass="HealthImmediate">
+ <HealthImmediate recoveredHealth="100" guiImage="decal.jpg" guiText="Health" />
+ </Template>
+ <Template name="HealthUsableItem" baseclass="HealthUsable">
+ <HealthImmediate recoveredHealth="80" guiImage="goldwrenchpickup.jpg" guiText="Health" />
+ </Template>
+
+ <SpawnPoint position="-3800, 2500, 1500" direction="-0.683, -0.289, -0.670" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
+
+
+ <SpaceShip position="-3900,3000,1000">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4100,2600,1600">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4000,2500,1500">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0>
+ <waypoints>
+ <StaticEntity position="-3850,2800,1450" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4100,2700,1500">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0 />
+ </controller>
+ </SpaceShip>
+
+ <SpaceShip position="-4150,2750,1550">
+ <templates>
+ <Template link=spaceshipHtwo/>
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=100 team=0 />
+ </controller>
+ </SpaceShip>
+
+ <Billboard material="Test/Fog" position="-3800, 2500, 1500" alpha="0.1" color="1, 1, 1, 0.1" scale="0.5" />
+
+ <PickupSpawner item="JumpItem" triggerDistance="20" respawnTime="10000" position="-3800, 2500, 1500">
+ <attached>
+ <!--<Model mesh="jumpthrust.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale="0.5" />-->
+ </attached>
+ </PickupSpawner>
+
+ <PickupSpawner item="HealthUsableItem" triggerDistance="20" respawnTime="10000" position="-4150,2750,1550">
+ <attached>
+ <Model mesh="gwrench.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.3, 0.8, 1.0" scale="0.5" />
+ </attached>
+ </PickupSpawner>
+
+ <PickupSpawner item="HealthImmediateItem" triggerDistance="20" respawnTime="3" position="2300, 4300, 2400">
+ <attached>
+ <Model mesh="gwrench.mesh" scale="1.0" />
+ <Billboard material="Examples/Flare" colour="0.9, 1.0, 0.1" scale="0.5" />
+ </attached>
+ </PickupSpawner>
+
+ <Billboard position="-2500, 2400, 1500" material="Examples/Flare" />
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=pirates />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="-2500, 2400, 1500" distance=250 target="SpaceShip" stayactive=true />
+ </activity>
+ </events>
+ </EventDispatcher>
+
+<?lua
+for i = 1, 10, 1
+do
+?>
+ <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>">
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=pirates alertnessradius=1000 team=1 active=false>
+ <waypoints>
+ <StaticEntity position="3100, 2000, 1500" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+<?lua
+for i = 1, 12, 1
+do
+?>
+ <SpaceShip position="<?lua print(2800 + math.random() * 2000 - 1000) ?>,<?lua print(2500+ math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=0>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 1000 - 500) ?>,<?lua print(2500 + math.random() * 1000 - 500) ?>,<?lua print(1500 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+ <Billboard position="2300, 4400, 2500" material="Examples/Flare" />
+ <EventDispatcher>
+ <targets>
+ <EventTarget target=attacker />
+ </targets>
+ <events>
+ <activity>
+ <DistanceTrigger position="2300, 4400, 2500" distance=50 target="SpaceShip" stayactive=true />
+ </activity>
+ </events>
+ </EventDispatcher>
+
+<?lua
+for i = 1, 12, 1
+do
+?>
+ <SpaceShip position="<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(4800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>" >
+ <templates>
+ <Template link=spaceshipassff />
+ </templates>
+ <controller>
+ <WaypointPatrolController name=attacker alertnessradius=<?lua print(math.random() * 2000) ?> team=0 active=false>
+ <waypoints>
+ <StaticEntity position="<?lua print(2800 + math.random() * 500 - 250) ?>,<?lua print(2500 + math.random() * 500 - 250) ?>,<?lua print(1500 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(5000 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>,<?lua print(0 + math.random() * 500 - 250) ?>" />
+ <StaticEntity position="<?lua print(7500 + math.random() * 500 - 250) ?>,<?lua print(-2500 + math.random() * 500 - 250) ?>,<?lua print(-1500 + math.random() * 500 - 250) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+ <StaticEntity position="2800, 2500, 2500">
+ <attached>
+ <CheckPoint />
+ <Model position="400, 0, 0" scale="40" mesh="DuBall2.mesh"/>
+ <Model position="-400, 0, 0" scale="40" mesh="DuBall1.mesh"/>
+ </attached>
+ </StaticEntity>
+<!--
+ <Destroyer position="6500, -2000, -1000" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=500>
+ <attached>
+ <CheckPoint />
+ <Model position="0,0,0" scale="5" mesh="Carrier.mesh"/>
+ <Backlight
+ mainstate=activity
+ active=false
+ scale=0.4
+ name=bltest
+ position=" 7.6, 0, 6"
+ colour="0.2, 0.65, 1.0, 1.0"
+ width=15
+ length=1500
+ lifetime=2
+ elements=50
+ trailmaterial="Trail/backlighttrail"
+ turnontime=1
+ turnofftime=1
+ material="Flares/ThrusterFlare1"
+ />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
+ <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
+ <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
+ </collisionShapes>
+ </Destroyer>
+-->
+ <Destroyer
+ position = "6500,-2000,-1000"
+ collisionType = dynamic
+ mass = 100000
+ angularDamping = 0.9999999
+ health = 1000
+ maxhealth = 1000
+ initialhealth = 1000
+ >
+ <controller>
+ <WaypointPatrolController team=1 />
+ </controller>
+ <attached>
+ <Model mesh="Carrier.mesh" scale="5" />
+ <Backlight
+ mainstate=activity
+ active=false
+ scale=0.4
+ name=bltest
+ position=" 7.6, 0, 6"
+ colour="0.2, 0.65, 1.0, 1.0"
+ width=15
+ length=1500
+ lifetime=2
+ elements=50
+ trailmaterial="Trail/backlighttrail"
+ turnontime=1
+ turnofftime=1
+ material="Flares/ThrusterFlare1"
+ />
+ <?lua for i=0,8,1 do ?>
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?> ,15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+
+ <BlinkingBillboard
+ position="<?lua print(200-270/8*i)?>,-15,2"
+ material="Examples/Flare"
+ colour="1.0, 0.5, 0.3"
+ phase=<?lua print(-360/8*i)?>
+ amplitude=0.1
+ frequency=0.5
+ quadratic=1
+ />
+ <?lua end ?>
+
+ <Backlight
+ scale=1
+ position=" 169, 75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare"
+ />
+ <Backlight
+ scale=1
+ position=" 169, -75, -15"
+ colour="1, 0.85, 0.5, 0.5"
+ width=40
+ length=1000
+ lifetime=5
+ elements=15
+ trailmaterial="Trail/backlighttrail"
+ material="Examples/Flare" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" />
+ <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" />
+ <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" />
+ <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" />
+ <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" />
+ </collisionShapes>
+ </Destroyer>
+
+<?lua
+for i = 1, 10, 1
+do
+?>
+ <SpaceShip position="<?lua print(6200 + math.random() * 2000 - 1000) ?>,<?lua print(-1500 + math.random() * 1000 - 500) ?>,<?lua print(-700 + math.random() * 1000 - 500) ?>" >
+ <templates>
+ <Template link=spaceshippirate />
+ </templates>
+ <controller>
+ <WaypointPatrolController alertnessradius=1000 team=1>
+ <waypoints>
+ <StaticEntity position="<?lua print(6000 + math.random() * 1000 - 500) ?>,<?lua print(-2000 + math.random() * 1000 - 500) ?>,<?lua print(-1000 + math.random() * 1000 - 500) ?>" />
+ </waypoints>
+ </WaypointPatrolController>
+ </controller>
+ </SpaceShip>
+<?lua
+end
+?>
+
+<?lua
+elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 100, 1
+do
+x = math.random() * 100 + (i) * 100
+y = math.random() * 3000 - 1500
+z = math.random() * 3000 - 1500 + (i-100) * 10
+s = math.random() * 60 + 30
+e = math.floor(math.random()*elements.length()+1)
+?>
+
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+
+<?lua
+for i = 1, 100, 1
+do
+x = math.random() * 200 + i*200
+y = math.random() * 3000 - 1500
+z = math.random() * 3000 - 1500 + (i-100) * 10
+s = math.random() * 60 + 30
+?>
+ <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
+<!-- <Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" color="1, 1, 1, 0.01" scale="20" />
+-->
+<?lua
+end
+?>
+
+<?lua
+elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+sizes = {4, 4, 4, 4, 4, 10, 20}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 150, 1
+do
+x = math.random() * 750 - 4500
+y = math.random() * 1000 + 2000
+z = math.random() * 500 + 1000
+e = math.floor(math.random()*elements.length()+1)
+?>
+
+ <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30- 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+<!--
+ <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
+-->
+</Scene>
+</Level>
Added: code/branches/presentation2/data/particle/Steam.particle
===================================================================
--- code/branches/presentation2/data/particle/Steam.particle (rev 0)
+++ code/branches/presentation2/data/particle/Steam.particle 2009-12-06 14:21:13 UTC (rev 6252)
@@ -0,0 +1,47 @@
+
+particle_system Orxonox/Steam
+{
+ quota 1
+ material PE/smoke
+ particle_width 2000
+ particle_height 2000
+ cull_each false
+ renderer billboard
+ sorted false
+ local_space false
+ iteration_interval 0
+ nonvisible_update_timeout 0
+ billboard_type point
+ billboard_origin center
+ billboard_rotation_type texcoord
+ common_up_vector 0 1 0
+ point_rendering false
+ accurate_facing false
+
+ emitter Ellipsoid
+ {
+ angle 180
+ colour 1 1 1 0.1
+ colour_range_start 1 1 1 0.1
+ colour_range_end 1 1 1 0.02
+ direction 0 1 0
+ emission_rate 1
+ position 0 0 0
+ velocity 5
+ velocity_min 5
+ velocity_max 5
+ time_to_live 100
+ time_to_live_min 100
+ time_to_live_max 100
+ duration 0
+ duration_min 0
+ duration_max 0
+ repeat_delay 0
+ repeat_delay_min 0
+ repeat_delay_max 0
+ width 2000
+ height 1000
+ depth 119.4
+ }
+}
+
More information about the Orxonox-commit
mailing list