Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10806


Ignore:
Timestamp:
Nov 16, 2015, 2:16:49 PM (9 years ago)
Author:
hzuellig
Message:

Added skybox and houses to betterearth.owx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/planetLevelHS15/data/levels/betterearth.oxw

    r10788 r10806  
    3737    />
    3838
     39<!--    <Light
     40      type="directional"
     41      position="-500000,-500000,0"
     42      direction="0.253, 0.593, -0.765"
     43      diffuse="1.0, 0.9, 0.9, 1.0"
     44      specular="1.0, 0.9, 0.9, 1.0"
     45    />
     46-->
     47
     48
     49    <SpawnPoint
     50      position="-613,-54,125"
     51      lookat="0-100,1000,-100"
     52      spawnclass="SpaceShip"
     53      pawndesign="spaceshipHXY"
     54    />
     55    <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/>
     56
     57    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
     58   
     59
     60    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
     61    <Planet
     62      position="3625700,0,0"
     63      scale="17370"
     64      collisionType="dynamic"
     65      linearDamping="0.8"
     66      angularDamping="0"
     67      mass="7.36e19"
     68      pitch="0"
     69      mesh="planets/moon.mesh"
     70      atmosphere="atmosphere1"
     71      rotationaxis="0,1,0"
     72      rotationrate="010"
     73      atmospheresize="80.0f"
     74      imagesize="1024.0f"
     75      collisiondamage = 2
     76      enablecollisiondamage = true
     77    >
     78      <attached>
     79        <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
     80      </attached>
     81      <collisionShapes>
     82        <SphereCollisionShape radius="17370" position="0,0,0" />
     83      </collisionShapes>
     84    </Planet>
     85<!--    <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> -->
     86      <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >
     87        <attached>
     88          <Model position="0,0,0" mesh="skyboxHoenggerberg.mesh" scale3D="100000,100000,100000" lodLevel="0"/>
     89          <PortalEndPoint position="0,0,0" id="1" distance="40" target="Pawn" design="PortalDefault"/>
     90         <Light type="point" position="0,0,0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
     91       </attached>
     92      </StaticEntity>
     93        <StaticEntity position="0,0,0" scale="100">
     94                <attached>
     95                        <Model  mesh="Glasstower1.mesh" />
     96
     97                </attached>
     98        </StaticEntity>
     99        <StaticEntity position="-500,0,-500" scale="10">
     100                <attached><LevelInfo
     101 name = "Better Earth Demonstration"
     102 description = "1:100 Scale Model of Earth with Gravity"
     103 tags = "showcase"
     104 screenshot = "earthdemonstration.png"
     105/>
     106
     107<?lua
     108  include("stats.oxo")
     109  include("HUDTemplates3.oxo")
     110  include("templates/lodInformation.oxt")
     111  include("templates/spaceshipHXY.oxt")
     112?>
     113
     114<Level>
     115  <templates>
     116    <Template link="lodtemplate_default" />
     117  </templates>
     118  <?lua include("includes/notifications.oxi") ?>
     119
     120  <Template name=PortalDefault>
     121      <PortalEndPoint>
     122          <attached>
     123              <Billboard material="Portals/Default" />
     124          </attached>
     125      </PortalEndPoint>
     126  </Template>
     127
     128  <Scene
     129    ambientlight = "0.8, 0.8, 0.8"
     130    skybox       = "Orxonox/skyboxempty"
     131  >
     132    <WorldAmbientSound
     133      source="Earth.ogg"
     134      looping="true"
     135      playOnLoad="true"
     136    />
     137
    39138    <Light
    40139      type="directional"
     
    48147
    49148    <SpawnPoint
    50       position="100,0,0"
    51       lookat="0,0,0"
     149      position="-613,-54,125"
     150      lookat="0-100,1000,-100"
    52151      spawnclass="SpaceShip"
    53152      pawndesign="spaceshipHXY"
     
    84183    </Planet>
    85184    <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
    86 
    87         <StaticEntity position="0,0,0" scale="100">
     185      <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >
     186        <attached>
     187          <Model position="0,0,0" mesh="skyboxHoenggerberg.mesh" scale3D="100000,100000,100000" lodLevel="0"/>
     188          <PortalEndPoint position="0,0,0" id="1" distance="40" target="Pawn" design="PortalDefault"/>
     189         <Light type="point" position="0,0,0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
     190       </attached>
     191      </StaticEntity>
     192  <StaticEntity position="0,0,0" scale="100">
     193    <attached>
     194      <Model  mesh="Glasstower1.mesh" />
     195
     196    </attached>
     197  </StaticEntity>
     198  <StaticEntity position="-500,0,-500" scale="10">
     199    <attached>
     200      <Model  mesh="PrimeTower.mesh" />
     201    </attached>
     202  </StaticEntity>
     203  <StaticEntity position="0,0,0" scale="1000">
     204    <attached>
     205      <Model  mesh="Plane.mesh" />
     206    </attached>
     207  </StaticEntity>
     208    <!-- Create portals from Earth to the Moon -->
     209    <PortalLink fromID="1" toID="2" />
     210    <PortalLink fromID="2" toID="1" />
     211  </Scene>
     212</Level>
     213
     214                        <Model  mesh="PrimeTower.mesh" />
     215                </attached>
     216        </StaticEntity>
     217        <StaticEntity position="0,0,0" scale="1000">
    88218                <attached>
    89                         <Model  mesh="Glasstower1.mesh" />
     219                        <Model  mesh="Plane.mesh" />
    90220                </attached>
    91221        </StaticEntity>
Note: See TracChangeset for help on using the changeset viewer.