Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11128


Ignore:
Timestamp:
Mar 6, 2016, 1:56:26 PM (8 years ago)
Author:
landauf
Message:

let Planet inherit from Model to avoid code duplication (especially lod levels).
since model is a static entity, all planets with rotation and/or dynamic physics need to be attached to a movableentity now.

Location:
code/branches/ogre1.9
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/data/levels/Spacerace2.oxw

    r10624 r11128  
    123123
    124124    <!-- ------------------Planet----------------- -->
    125     <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     125    <MovableEntity position="0,0,0" scale=300 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     126      <attached>
     127        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     128      </attached>
     129    </MovableEntity>
    126130    <StaticEntity position="0,0,0" collisionType=static>
    127131        <collisionShapes>
  • code/branches/ogre1.9/data/levels/asteroidField.oxw

    r9939 r11128  
    6666
    6767    <!-- Planet close to spawn point -->
    68     <Planet
     68    <MovableEntity
    6969      position="15000,0,0"
    7070      scale="5000"
     
    7474      mass="10000000"
    7575      pitch="0"
    76       mesh="planets/muunilinst.mesh"
    77       atmosphere="atmosphere1"
    7876      rotationaxis="1,0,0"
    7977      rotationrate="1.0"
    80       atmospheresize="80.0f"
    81       imagesize="1024.0f"
    8278      collisiondamage = 2
    8379      enablecollisiondamage = true
    8480    >
    8581      <attached>
    86         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     82        <Planet
     83          mesh="planets/muunilinst.mesh"
     84          atmosphere="atmosphere1"
     85          atmospheresize="80.0f"
     86          imagesize="1024.0f"
     87        >
     88          <attached>
     89            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     90          </attached>
     91        </Planet>
    8792      </attached>
    8893      <collisionShapes>
    8994        <SphereCollisionShape radius="5000" position="0,0,0" />
    9095      </collisionShapes>
    91     </Planet>
     96    </MovableEntity>
    9297
    9398
  • code/branches/ogre1.9/data/levels/dockingToASpaceStation.oxw

    r11104 r11128  
    153153    ?>
    154154
    155     <Planet
     155    <MovableEntity
    156156      position="15000,0,-1000"
    157157      scale="5000"
     
    161161      mass="10000000"
    162162      pitch="0"
    163       mesh="planets/ganymede.mesh"
    164       atmosphere="atmosphere1"
    165163      rotationaxis="1,0,0"
    166164      rotationrate="1.0"
    167       atmospheresize="80.0f"
    168       imagesize="1024.0f"
    169165      collisiondamage = 2
    170166      enablecollisiondamage = true
    171167    >
    172168      <attached>
    173         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     169        <Planet
     170          mesh="planets/ganymede.mesh"
     171          atmosphere="atmosphere1"
     172          atmospheresize="80.0f"
     173          imagesize="1024.0f"
     174        >
     175          <attached>
     176            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     177          </attached>
     178        </Planet>
    174179      </attached>
    175180      <collisionShapes>
    176181        <SphereCollisionShape radius="5000" position="0,0,0" />
    177182      </collisionShapes>
    178     </Planet>
     183    </MovableEntity>
    179184
    180185  </Scene>
  • code/branches/ogre1.9/data/levels/dynamicMatch.oxw

    r9939 r11128  
    3333
    3434<!-- ------------------Planet needs gravity----------------- -->
    35 <Planet position="0,0,0" scale=500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
    36 <StaticEntity position="0,0,0" collisionType=static>
     35    <MovableEntity position="0,0,0" scale=500 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     36      <attached>
     37        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     38      </attached>
     39    </MovableEntity>
     40    <StaticEntity position="0,0,0" collisionType=static>
    3741      <collisionShapes>
    3842        <SphereCollisionShape radius="499" />
  • code/branches/ogre1.9/data/levels/earth.oxw

    r9016 r11128  
    5656
    5757    <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
    58     <Planet
     58    <MovableEntity
    5959      position="0,0,0"
    6060      scale="63000"
     61      pitch="0"
    6162      collisionType="dynamic"
    6263      linearDamping="0.8"
    6364      angularDamping="0"
    6465      mass="5.9e21"
    65       pitch="0"
    66       mesh="planets/earth.mesh"
    67       atmosphere="atmosphere1"
    6866      rotationaxis="0,1,0"
    6967      rotationrate="0.2"
    70       atmospheresize="80.0f"
    71       imagesize="1024.0f"
    7268      collisiondamage = 2
    7369      enablecollisiondamage = true
    7470    >
    7571      <attached>
    76         <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
     72        <Planet
     73          mesh="planets/earth.mesh"
     74          atmosphere="atmosphere1"
     75          atmospheresize="80.0f"
     76          imagesize="1024.0f"
     77        >
     78          <attached>
     79            <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
     80          </attached>
     81        </Planet>
    7782      </attached>
    7883      <collisionShapes>
    7984        <SphereCollisionShape radius="63000" position="0,0,0" />
    8085      </collisionShapes>
    81     </Planet>
     86    </MovableEntity>
    8287
    8388    <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 -->
    84     <Planet
     89    <MovableEntity
    8590      position="3625700,0,0"
    8691      scale="17370"
     92      pitch="0"
    8793      collisionType="dynamic"
    8894      linearDamping="0.8"
    8995      angularDamping="0"
    9096      mass="7.36e19"
    91       pitch="0"
    92       mesh="planets/moon.mesh"
    93       atmosphere="atmosphere1"
    9497      rotationaxis="0,1,0"
    9598      rotationrate="0.2"
    96       atmospheresize="80.0f"
    97       imagesize="1024.0f"
    9899      collisiondamage = 2
    99100      enablecollisiondamage = true
    100101    >
    101102      <attached>
    102         <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
     103        <Planet
     104          mesh="planets/moon.mesh"
     105          atmosphere="atmosphere1"
     106          atmospheresize="80.0f"
     107          imagesize="1024.0f"
     108        >
     109          <attached>
     110            <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
     111          </attached>
     112        </Planet>
    103113      </attached>
    104114      <collisionShapes>
    105115        <SphereCollisionShape radius="17370" position="0,0,0" />
    106116      </collisionShapes>
    107     </Planet>
     117    </MovableEntity>
    108118    <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/>
    109119
  • code/branches/ogre1.9/data/levels/expeditionSector.oxw

    r11104 r11128  
    588588    <!-- Planets -->
    589589
    590    <Planet
     590    <MovableEntity
    591591        position="<?lua printC(cPlanet1) ?>"
    592592        scale="3000"
     
    596596        mass="5000000"
    597597        pitch="0"
    598         mesh="planets/muunilinst.mesh"
    599         atmosphere="atmosphere1"
    600598        rotationaxis="1,0,0"
    601599        rotationrate="1.0"
    602         atmospheresize="80.0f"
    603         imagesize="1024.0f"
    604600        collisiondamage=2
    605601        enablecollisiondamage=true
    606               visible=true
    607               active=ture
    608       >
     602    >
    609603      <attached>
    610         <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
    611         </attached>
    612           <collisionShapes>
    613             <SphereCollisionShape radius="3000" position="0,0,0" />
     604        <Planet
     605            mesh="planets/muunilinst.mesh"
     606            atmosphere="atmosphere1"
     607            atmospheresize="80.0f"
     608            imagesize="1024.0f"
     609            visible=true
     610            active=ture
     611        >
     612          <attached>
     613            <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
     614          </attached>
     615        </Planet>
     616      </attached>
     617      <collisionShapes>
     618        <SphereCollisionShape radius="3000" position="0,0,0" />
    614619      </collisionShapes>
    615     </Planet>
     620    </MovableEntity>
    616621
    617622    <?lua
     
    620625    ?>
    621626
    622     <Planet
     627    <MovableEntity
    623628        position="<?lua printC(cPlanet2) ?>"
    624629        scale="2000"
     
    628633        mass="5000000"
    629634        pitch="0"
    630         mesh="planets/ganymede.mesh"
    631         atmosphere="atmosphere1"
    632635        rotationaxis="1,0,0"
    633636        rotationrate="1.0"
    634         atmospheresize="80.0f"
    635         imagesize="1024.0f"
    636637        collisiondamage=2
    637638        enablecollisiondamage=true
    638               visible=true
    639               active=true
    640       >
     639    >
    641640      <attached>
    642         <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
    643         </attached>
    644           <collisionShapes>
    645             <SphereCollisionShape radius="2000" position="0,0,0" />
     641          <Planet
     642            mesh="planets/ganymede.mesh"
     643            atmosphere="atmosphere1"
     644            atmospheresize="80.0f"
     645            imagesize="1024.0f"
     646            visible=true
     647            active=true
     648          >
     649            <attached>
     650              <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
     651            </attached>
     652          </Planet>
     653      </attached>
     654      <collisionShapes>
     655        <SphereCollisionShape radius="2000" position="0,0,0" />
    646656      </collisionShapes>
    647     </Planet>
     657    </MovableEntity>
    648658
    649659    <?lua
     
    654664    <!-- EnemyPlanet(s) -->
    655665
    656     <Planet
     666    <MovableEntity
    657667        position="<?lua printC(cEnemyBasePlanet) ?>"
    658668        scale="5000"
     
    662672        mass="5000000"
    663673        pitch="0"
    664         mesh="planets/jupiter.mesh"
    665         atmosphere="atmosphere1"
    666674        rotationaxis="1,0,0"
    667675        rotationrate="1.0"
    668         atmospheresize="80.0f"
    669         imagesize="1024.0f"
    670676        collisiondamage=2
    671677        enablecollisiondamage=true
    672               visible=false
    673               active=false
    674       >
     678    >
    675679      <attached>
    676         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" />
    677         </attached>
    678           <collisionShapes>
    679             <SphereCollisionShape radius="5000" position="0,0,0" />
     680        <Planet
     681            mesh="planets/jupiter.mesh"
     682            atmosphere="atmosphere1"
     683            atmospheresize="80.0f"
     684            imagesize="1024.0f"
     685            visible=false
     686            active=false
     687          >
     688          <attached>
     689            <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" />
     690          </attached>
     691        </Planet>
     692      </attached>
     693      <collisionShapes>
     694        <SphereCollisionShape radius="5000" position="0,0,0" />
    680695      </collisionShapes>
    681     </Planet>
     696    </MovableEntity>
    682697
    683698    <?lua
  • code/branches/ogre1.9/data/levels/iiJohnVane_Area51UnderFire.oxw

    r9992 r11128  
    20042004
    20052005    <!-- PLANETS -->
    2006       <Planet
    2007             position="2000,-250,9000"
    2008             scale=5000
    2009             pitch=1
     2006    <MovableEntity
     2007        position="2000,-250,9000"
     2008        scale=5000
     2009        pitch=1
     2010        rotationaxis="1,1,0"
     2011        rotationrate="0.5"
     2012        mass="10000000"
     2013        angularDamping=0
     2014        collisiondamage=2
     2015        enablecollisiondamage=true
     2016        collisionType="dynamic"
     2017    >
     2018      <attached>
     2019        <Planet
    20102020            mesh="iceplanet.mesh"
    20112021            atmosphere="atmosphere1"
    2012             rotationaxis="1,1,0"
    2013             rotationrate="0.5"
    20142022            atmospheresize=224.0f
    2015             imagesize=1024.0f
    2016             mass="10000000"
    2017             angularDamping=0
    2018             collisiondamage=2
    2019             enablecollisiondamage=true
    2020             collisionType="dynamic" />
     2023            imagesize=1024.0f />
     2024      </attached>
     2025    </MovableEntity>
    20212026
    20222027<!--  PICKUPS to make travelling faster  -->
  • code/branches/ogre1.9/data/levels/iiiJohnVane_EscapeTheBastards.oxw

    r11052 r11128  
    778778
    779779<!--Planet sun-->
    780     <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f />
     780    <MovableEntity position="15000,0,0" scale=1500 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     781      <attached>
     782        <Planet mesh="planets/sol.mesh" atmosphere="atmosphere1" atmospheresize=0 imagesize=1024.0f />
     783      </attached>
     784    </MovableEntity>
    781785    <StaticEntity position="2600,0,0" collisionType=static>
    782786        <collisionShapes>
     
    790794
    791795<!--Planet with Ally-->
    792     <Planet
     796    <MovableEntity
    793797      position="0,0,0"
    794798      scale="100"
     
    798802      mass="5000000"
    799803      pitch="0"
    800       mesh="iceplanet.mesh"
    801       atmosphere="atmosphere1"
    802804      rotationaxis="1,0,0"
    803805      rotationrate="1.0"
    804       atmospheresize="80.0f"
    805       imagesize="1024.0f"
    806806    >
    807807      <attached>
    808         <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
    809                     <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
     808        <Planet
     809          mesh="iceplanet.mesh"
     810          atmosphere="atmosphere1"
     811          atmospheresize="80.0f"
     812          imagesize="1024.0f"
     813        >
     814          <attached>
     815            <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     816                        <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
     817          </attached>
     818        </Planet>
    810819      </attached>
    811820      <collisionShapes>
    812821        <SphereCollisionShape radius="100" position="0,0,0" />
    813822      </collisionShapes>
    814     </Planet>
     823    </MovableEntity>
    815824<!-- Planet with Ally END-->
    816825
    817826
    818827<!-- Homeplanet -->
    819     <Planet
     828    <MovableEntity
    820829      position="-3000,12000,-10000"
    821830      scale="3000"
     
    825834      mass="5000000000000"
    826835      pitch="0"
    827       mesh="planets/muunilinst.mesh"
    828       atmosphere="atmosphere1"
    829836      rotationaxis="0,0,0"
    830837      rotationrate="0.0"
    831       atmospheresize="80.0f"
    832       imagesize="1024.0f"
    833838    >
    834839      <attached>
    835         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" />
     840        <Planet
     841          mesh="planets/muunilinst.mesh"
     842          atmosphere="atmosphere1"
     843          atmospheresize="80.0f"
     844          imagesize="1024.0f"
     845        >
     846          <attached>
     847            <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" />
     848          </attached>
     849        </Planet>
    836850      </attached>
    837851      <collisionShapes>
    838852        <SphereCollisionShape radius="3000" position="0,0,0" />
    839853      </collisionShapes>
    840     </Planet>
     854    </MovableEntity>
    841855<!-- Homeplanet  END-->
    842856
    843857<!-- Planet around the cave-->
    844858
    845 <Planet position="-43500,-30000,31900" scale=5000 pitch=-90 mesh="planets/moon.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f />
     859    <MovableEntity position="-43500,-30000,31900" scale=5000 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     860      <attached>
     861        <Planet mesh="planets/moon.mesh" atmosphere="atmosphere1" atmospheresize=0 imagesize=1024.0f />
     862      </attached>
     863    </MovableEntity>
    846864
    847865<!-- Planet around the cave END-->
    848866
    849867<!-- Anotherplanet -->
    850     <Planet
     868    <MovableEntity
    851869      position="-20000,6000,7000"
    852870      scale="3000"
     
    856874      mass="5000000000000"
    857875      pitch="0"
    858       mesh="planets/ganymede.mesh"
    859       atmosphere="atmosphere1"
    860876      rotationaxis="0,0,0"
    861877      rotationrate="0.0"
    862       atmospheresize="80.0f"
    863       imagesize="1024.0f"
    864878    >
     879      <attached>
     880        <Planet
     881          mesh="planets/ganymede.mesh"
     882          atmosphere="atmosphere1"
     883          atmospheresize="80.0f"
     884          imagesize="1024.0f"
     885        />
     886      </attached>
    865887      <collisionShapes>
    866888        <SphereCollisionShape radius="3000" position="0,0,0" />
    867889      </collisionShapes>
    868     </Planet>
     890    </MovableEntity>
    869891<!-- LAAAGS :-(
    870892
  • code/branches/ogre1.9/data/levels/kecks.oxw

    r11052 r11128  
    423423           
    424424        <!--Heimatplanet-->
     425    <MovableEntity
     426      position="0,100000,0"
     427      scale="10000"
     428      collisionType="dynamic"
     429      linearDamping="0.8"
     430      angularDamping="0"
     431      mass="5000000"
     432      pitch="180"
     433      yaw="0"
     434      roll="0"
     435      rotationaxis="0,0,1"
     436      rotationrate="5.0"
     437      collisiondamage = 1
     438      enablecollisiondamage = true
     439    >
     440      <attached>
    425441                <Planet
    426                   position="0,100000,0"
    427                   scale="10000"
    428                   collisionType="dynamic"
    429                   linearDamping="0.8"
    430                   angularDamping="0"
    431                   mass="5000000"
    432                   pitch="180"
    433                   yaw="0"
    434                   roll="0"
    435442                  mesh="planets/earth.mesh"
    436443                  atmosphere="atmosphere1"
    437                   rotationaxis="0,0,1"
    438                   rotationrate="5.0"
    439444                  atmospheresize="80.0f"
    440445                  imagesize="1024.0f"
    441                   collisiondamage = 1
    442                   enablecollisiondamage = true
    443446                  >
    444447                  <attached>
    445                           <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
    446                         </attached>
    447                         <collisionShapes>
    448                           <SphereCollisionShape radius="10000" position="0,0,0" />
    449                         </collisionShapes>
    450                   </Planet>     
     448                        <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     449                  </attached>
     450                </Planet>       
     451      </attached>
     452      <collisionShapes>
     453        <SphereCollisionShape radius="10000" position="0,0,0" />
     454      </collisionShapes>
     455    </MovableEntity>
    451456        <!--ENDE Heimatplanet-->       
    452457
  • code/branches/ogre1.9/data/levels/levelTry.oxw

    r11104 r11128  
    149149    ?>
    150150
    151     <Planet
     151    <MovableEntity
    152152      position="15000,0,-1000"
    153153      scale="5000"
     
    157157      mass="10000000"
    158158      pitch="0"
    159       mesh="planets/ganymede.mesh"
    160       atmosphere="atmosphere1"
    161159      rotationaxis="1,0,0"
    162160      rotationrate="1.0"
    163       atmospheresize="80.0f"
    164       imagesize="1024.0f"
    165161      collisiondamage = 2
    166162      enablecollisiondamage = true
    167163    >
    168164      <attached>
    169         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     165        <Planet
     166          mesh="planets/ganymede.mesh"
     167          atmosphere="atmosphere1"
     168          atmospheresize="80.0f"
     169          imagesize="1024.0f"
     170        >
     171          <attached>
     172            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     173          </attached>
     174        </Planet>
    170175      </attached>
    171176      <collisionShapes>
    172177        <SphereCollisionShape radius="5000" position="0,0,0" />
    173178      </collisionShapes>
    174     </Planet>
     179    </MovableEntity>
    175180
    176181  </Scene>
  • code/branches/ogre1.9/data/levels/missionOne.oxw

    r11052 r11128  
    12051205
    12061206<!-- @Objects: planet && spaceboundaries  -->
    1207     <Planet
     1207    <MovableEntity
    12081208      position="-44000,0,0"
    12091209      scale="2500"
     
    12131213      mass="10000000"
    12141214      pitch="0"
    1215       mesh="planets/muunilinst.mesh"
    1216       atmosphere="atmosphere1"
    12171215      rotationaxis="1,0,0"
    12181216      rotationrate="1.0"
    1219       atmospheresize="80.0f"
    1220       imagesize="1024.0f"
    12211217      collisiondamage = "2"
    12221218      enablecollisiondamage = "false"
    12231219    >
    1224       <!--attached>
    1225         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
    1226       </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
     1220      <attached>
     1221        <Planet
     1222          mesh="planets/muunilinst.mesh"
     1223          atmosphere="atmosphere1"
     1224          atmospheresize="80.0f"
     1225          imagesize="1024.0f"
     1226        >
     1227          <!--attached>
     1228            <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     1229          </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
     1230        </Planet>
     1231      </attached>
    12271232      <collisionShapes>
    12281233        <SphereCollisionShape radius="2500" position="0,0,0" />
    12291234      </collisionShapes>
    1230     </Planet>
     1235    </MovableEntity>
    12311236
    12321237
  • code/branches/ogre1.9/data/levels/planets.oxw

    r9348 r11128  
    4545    />
    4646
    47     <Planet
     47    <MovableEntity
    4848      position="0,0,0"
    4949      scale="1000"
     
    5353      mass="10000000"
    5454      pitch="0"
    55       mesh="planets/muunilinst.mesh"
    56       atmosphere="atmosphere1"
    5755      rotationaxis="1,0,0"
    5856      rotationrate="1.0"
    59       atmospheresize="80.0f"
    60       imagesize="1024.0f"
    6157      collisiondamage = 2
    6258      enablecollisiondamage = true
    6359    >
    6460      <attached>
    65         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     61        <Planet
     62          mesh="planets/muunilinst.mesh"
     63          atmosphere="atmosphere1"
     64          atmospheresize="80.0f"
     65          imagesize="1024.0f"
     66        >
     67          <attached>
     68            <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     69          </attached>
     70        </Planet>
    6671      </attached>
    6772      <collisionShapes>
    6873        <SphereCollisionShape radius="1000" position="0,0,0" />
    6974      </collisionShapes>
    70     </Planet>
     75    </MovableEntity>
    7176
    72     <Planet
     77    <MovableEntity
    7378      position="10000,0,0"
    7479      scale="100"
     
    7883      mass="5000000"
    7984      pitch="0"
    80       mesh="planets/muunilinst.mesh"
    81       atmosphere="atmosphere1"
    8285      rotationaxis="1,0,0"
    8386      rotationrate="1.0"
    84       atmospheresize="80.0f"
    85       imagesize="1024.0f"
    8687      collisiondamage = 2
    8788      enablecollisiondamage = true
    8889    >
    8990      <attached>
    90         <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     91        <Planet
     92          mesh="planets/muunilinst.mesh"
     93          atmosphere="atmosphere1"
     94          atmospheresize="80.0f"
     95          imagesize="1024.0f"
     96        >
     97          <attached>
     98            <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" />
     99          </attached>
     100        </Planet>
    91101      </attached>
    92102      <collisionShapes>
    93103        <SphereCollisionShape radius="100" position="0,0,0" />
    94104      </collisionShapes>
    95     </Planet>
     105    </MovableEntity>
    96106  </Scene>
    97107</Level>
  • code/branches/ogre1.9/data/levels/presentation09.oxw

    r9348 r11128  
    5757    <?lua end ?>
    5858   
    59     <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 />
     59    <MovableEntity position="0,0,0" scale=10000 pitch=-90 rotationaxis="1,1,0" rotationrate="1">
     60      <attached>
     61        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     62      </attached>
     63    </MovableEntity>
    6064
    6165  </Scene>
  • code/branches/ogre1.9/data/levels/presentationFS11.oxw

    r9939 r11128  
    111111
    112112    <!-- EARTH -->
    113     <Planet
     113    <MovableEntity
    114114      position="80500,0,0"
    115115      scale="63000"
     
    120120      pitch="-90"
    121121      yaw="50"
    122       mesh="planets/earth.mesh"
    123       atmosphere="atmosphere1"
    124122      rotationaxis="0,1,0"
    125123      rotationrate="0.2"
    126       atmospheresize="80.0f"
    127       imagesize="1024.0f"
    128124      collisiondamage = 2
    129125      enablecollisiondamage = true
    130126    >
    131127      <attached>
    132         <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
     128        <Planet
     129          mesh="planets/earth.mesh"
     130          atmosphere="atmosphere1"
     131          atmospheresize="80.0f"
     132          imagesize="1024.0f"
     133        >
     134          <attached>
     135            <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
     136          </attached>
     137        </Planet>
    133138      </attached>
    134139      <collisionShapes>
    135140        <SphereCollisionShape radius="63000" position="0,0,0" />
    136141      </collisionShapes>
    137     </Planet>
     142    </MovableEntity>
    138143
    139144    <!-- PARTICLE EFFECT -->
     
    329334   
    330335    <!-- MOON -->
    331     <Planet
     336    <MovableEntity
    332337      position="-80000,0,0"
    333338      scale="4000"
     
    337342      mass="7.36e19"
    338343      pitch="0"
    339       mesh="planets/moon.mesh"
    340       atmosphere="atmosphere1"
    341344      rotationaxis="0,1,0"
    342345      rotationrate="0.2"
    343       atmospheresize="0.0f"
    344       imagesize="1024.0f"
    345346      collisiondamage = 2
    346347      enablecollisiondamage = true
    347348    >
    348349      <attached>
    349         <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
     350        <Planet
     351          mesh="planets/moon.mesh"
     352          atmosphere="atmosphere1"
     353          atmospheresize="0.0f"
     354          imagesize="1024.0f"
     355        >
     356          <attached>
     357            <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" />
     358          </attached>
     359        </Planet>
    350360      </attached>
    351361      <collisionShapes>
    352362        <SphereCollisionShape radius="4000" position="0,0,0" />
    353363      </collisionShapes>
    354     </Planet>
     364    </MovableEntity>
    355365
    356366    <SimpleNotification message="Hydrogen farmer/space station by Hans" >
  • code/branches/ogre1.9/data/levels/presentationHS09.oxw

    r9348 r11128  
    393393      </MovableEntity>
    394394    <?lua end ?>
    395    
    396 <!--
    397     <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 />
    398 -->
    399395
    400396  </Scene>
  • code/branches/ogre1.9/data/levels/presentationHS12.oxw

    r10624 r11128  
    353353    ?>
    354354
    355     <Planet
     355    <MovableEntity
    356356      position="15000,0,-1000"
    357357      scale="5000"
     
    361361      mass="10000000"
    362362      pitch="0"
    363       mesh="planets/ganymede.mesh"
    364       atmosphere="atmosphere1"
    365363      rotationaxis="1,0,0"
    366364      rotationrate="1.0"
    367       atmospheresize="80.0f"
    368       imagesize="1024.0f"
    369365      collisiondamage = 2
    370366      enablecollisiondamage = true
    371367    >
    372368      <attached>
    373         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     369        <Planet
     370          mesh="planets/ganymede.mesh"
     371          atmosphere="atmosphere1"
     372          atmospheresize="80.0f"
     373          imagesize="1024.0f"
     374        >
     375          <attached>
     376            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     377          </attached>
     378        </Planet>
    374379      </attached>
    375380      <collisionShapes>
    376381        <SphereCollisionShape radius="5000" position="0,0,0" />
    377382      </collisionShapes>
    378     </Planet>
     383    </MovableEntity>
    379384
    380385<StaticEntity position="6750,-750,2000" yaw=0 pitch=0>
  • code/branches/ogre1.9/data/levels/shadertest.oxw

    r11080 r11128  
    7878    <!-- Planet close to spawn point -->
    7979
    80     <Planet
     80    <MovableEntity
    8181      position="15000,0,-1000"
    8282      scale="5000"
     
    8686      mass="10000000"
    8787      pitch="0"
    88       mesh="planets/muunilinst.mesh"
    89       atmosphere="atmosphere1"
    9088      rotationaxis="1,0,0"
    9189      rotationrate="1.0"
    92       atmospheresize="80.0f"
    93       imagesize="1024.0f"
    9490      collisiondamage = 2
    9591      enablecollisiondamage = true
    9692    >
    9793      <attached>
    98         <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     94        <Planet
     95          mesh="planets/muunilinst.mesh"
     96          atmosphere="atmosphere1"
     97          atmospheresize="80.0f"
     98          imagesize="1024.0f"
     99        >
     100          <attached>
     101            <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     102          </attached>
     103        </Planet>
    99104      </attached>
    100105      <collisionShapes>
    101106        <SphereCollisionShape radius="5000" position="0,0,0" />
    102107      </collisionShapes>
    103     </Planet>
     108    </MovableEntity>
    104109
    105110
  • code/branches/ogre1.9/data/levels/shuttleAttack.oxw

    r11104 r11128  
    930930    ?>
    931931
    932     <Planet
     932    <MovableEntity
    933933        position="<?lua printC(cPlanet1) ?>"
    934934        scale="2000"
     
    938938        mass="5000000"
    939939        pitch="0"
    940         mesh="planets/muunilinst.mesh"
    941         atmosphere="atmosphere1"
    942940        rotationaxis="1,0,0"
    943941        rotationrate="1.0"
    944         atmospheresize="80.0f"
    945         imagesize="1024.0f"
    946942        collisiondamage = 2
    947943        enablecollisiondamage = true
    948       >
     944    >
    949945      <attached>
    950         <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
    951         </attached>
    952           <collisionShapes>
    953             <SphereCollisionShape radius="2000" position="0,0,0" />
     946        <Planet
     947            mesh="planets/muunilinst.mesh"
     948            atmosphere="atmosphere1"
     949            atmospheresize="80.0f"
     950            imagesize="1024.0f"
     951        >
     952          <attached>
     953            <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
     954          </attached>
     955        </Planet>
     956      </attached>
     957      <collisionShapes>
     958        <SphereCollisionShape radius="2000" position="0,0,0" />
    954959      </collisionShapes>
    955     </Planet>
     960    </MovableEntity>
    956961
    957962    <?lua
     
    960965    ?>
    961966
    962     <Planet
     967    <MovableEntity
    963968        position="<?lua printC(cPlanet2) ?>"
    964969        scale="3000"
     
    968973        mass="5000000"
    969974        pitch="0"
    970         mesh="planets/planet3.mesh"
    971         atmosphere="atmosphere1"
    972975        rotationaxis="1,0,0"
    973976        rotationrate="1.0"
    974         atmospheresize="80.0f"
    975         imagesize="1024.0f"
    976977        collisiondamage = 2
    977978        enablecollisiondamage = true
    978       >
     979    >
    979980      <attached>
    980         <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
    981         </attached>
    982           <collisionShapes>
    983             <SphereCollisionShape radius="3000" position="0,0,0" />
     981        <Planet
     982            mesh="planets/planet3.mesh"
     983            atmosphere="atmosphere1"
     984            atmospheresize="80.0f"
     985            imagesize="1024.0f"
     986          >
     987          <attached>
     988            <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
     989          </attached>
     990        </Planet>
     991      </attached>
     992      <collisionShapes>
     993        <SphereCollisionShape radius="3000" position="0,0,0" />
    984994      </collisionShapes>
    985     </Planet>
     995    </MovableEntity>
    986996
    987997    <?lua
  • code/branches/ogre1.9/data/levels/shuttleRetaliation.oxw

    r11104 r11128  
    880880    <!-- Planets -->
    881881
    882    <Planet
     882    <MovableEntity
    883883        position="<?lua printC(cPlanet1) ?>"
    884884        scale="3000"
     
    888888        mass="5000000"
    889889        pitch="0"
    890         mesh="planets/muunilinst.mesh"
    891         atmosphere="atmosphere1"
    892890        rotationaxis="1,0,0"
    893891        rotationrate="1.0"
    894         atmospheresize="80.0f"
    895         imagesize="1024.0f"
    896892        collisiondamage = 2
    897893        enablecollisiondamage = true
    898     visible=true
    899     active=true
    900       >
     894    >
    901895      <attached>
    902         <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
    903         </attached>
    904         <collisionShapes>
    905             <SphereCollisionShape radius="3000" position="0,0,0" />
     896        <Planet
     897            mesh="planets/muunilinst.mesh"
     898            atmosphere="atmosphere1"
     899            atmospheresize="80.0f"
     900            imagesize="1024.0f"
     901            visible=true
     902            active=true
     903        >
     904          <attached>
     905            <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" />
     906          </attached>
     907        </Planet>
     908      </attached>
     909      <collisionShapes>
     910        <SphereCollisionShape radius="3000" position="0,0,0" />
    906911      </collisionShapes>
    907     </Planet>
     912    </MovableEntity>
    908913
    909914    <?lua
     
    912917    ?>
    913918
    914     <Planet
     919    <MovableEntity
    915920        position="<?lua printC(cPlanet2) ?>"
    916921        scale="2000"
     
    920925        mass="5000000"
    921926        pitch="0"
    922         mesh="planets/ganymede.mesh"
    923         atmosphere="atmosphere1"
    924927        rotationaxis="1,0,0"
    925928        rotationrate="1.0"
    926         atmospheresize="80.0f"
    927         imagesize="1024.0f"
    928929        collisiondamage = 2
    929930        enablecollisiondamage = true
    930         visible=true
    931         active=true
    932       >
     931    >
    933932      <attached>
    934         <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
    935         </attached>
    936           <collisionShapes>
    937             <SphereCollisionShape radius="2000" position="0,0,0" />
     933        <Planet
     934            mesh="planets/ganymede.mesh"
     935            atmosphere="atmosphere1"
     936            atmospheresize="80.0f"
     937            imagesize="1024.0f"
     938            visible=true
     939            active=true
     940        >
     941          <attached>
     942            <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" />
     943          </attached>
     944        </Planet>
     945      </attached>
     946      <collisionShapes>
     947        <SphereCollisionShape radius="2000" position="0,0,0" />
    938948      </collisionShapes>
    939     </Planet>
     949    </MovableEntity>
    940950
    941951    <?lua
     
    946956    <!-- EnemyPlanet -->
    947957
    948     <Planet
     958    <MovableEntity
    949959        position="<?lua printC(cEnemyBasePlanet) ?>"
    950960        scale="5000"
     
    954964        mass="5000000"
    955965        pitch="0"
    956         mesh="planets/jupiter.mesh"
    957         atmosphere="atmosphere1"
    958966        rotationaxis="1,0,0"
    959967        rotationrate="1.0"
    960         atmospheresize="80.0f"
    961         imagesize="1024.0f"
    962968        collisiondamage = 2
    963969        enablecollisiondamage = true
    964         visible=false
    965         active=false
    966970    >
    967         <attached>
     971      <attached>
     972        <Planet
     973            mesh="planets/jupiter.mesh"
     974            atmosphere="atmosphere1"
     975            atmospheresize="80.0f"
     976            imagesize="1024.0f"
     977            visible=false
     978            active=false
     979        >
     980          <attached>
    968981           <ForceField position="0,0,0" rotationaxis="0.1,1,0.1"mode="sphere" diameter="10000" velocity="-500" />
    969         </attached>
    970         <events>
     982          </attached>
     983          <events>
    971984            <activity>
    972985                <Trigger  name="enemyPlanetVisible" mode=and>
     
    10051018                 </Trigger>
    10061019            </visibility>
    1007         </events>
    1008         <collisionShapes>
    1009           <SphereCollisionShape position="0,0,0" radius=5000/>
    1010         </collisionShapes>
    1011     </Planet>
     1020          </events>
     1021        </Planet>
     1022      </attached>
     1023      <collisionShapes>
     1024        <SphereCollisionShape position="0,0,0" radius=5000/>
     1025      </collisionShapes>
     1026    </MovableEntity>
    10121027
    10131028    <!-- Pawn that represents the planet during destruction -->
  • code/branches/ogre1.9/data/levels/spaceRace.oxw

    r10624 r11128  
    360360
    361361    <!-- ------------------Planet----------------- -->
    362     <Planet position="0,0,0" scale=300 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
     362    <MovableEntity position="0,0,0" scale=300 pitch=-90 rotationaxis="8,1,0" rotationrate="1">
     363      <attached>
     364        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     365      </attached>
     366    </MovableEntity>
    363367    <StaticEntity position="0,0,0" collisionType=static>
    364368        <collisionShapes>
  • code/branches/ogre1.9/data/levels/testSwallow.oxw

    r9348 r11128  
    5656?>
    5757<?lua end ?>
    58     <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 />
     58    <MovableEntity position="0,0,0" scale=10000 pitch=-90 rotationaxis="1,1,0" rotationrate="1" >
     59      <attached>
     60        <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f />
     61      </attached>
     62    </MovableEntity>
    5963
    6064  </Scene>
  • code/branches/ogre1.9/src/modules/objects/Planet.cc

    r10624 r11128  
    4747     * @brief Constructor
    4848     */
    49     Planet::Planet(Context* context) : MovableEntity(context)
     49    Planet::Planet(Context* context) : Model(context)
    5050    {
    5151        RegisterObject(Planet);
     52        this->setLodEnabled(false);
    5253        this->registerVariables();
    5354    }
     
    5859    Planet::~Planet()
    5960    {
    60         if (this->isInitialized() && this->mesh_.getEntity())
    61             this->detachOgreObject(this->mesh_.getEntity());
    6261    }
    6362
     
    8786    }
    8887
    89     void Planet::changedMesh()
     88    void Planet::changedAtmosphere()
    9089    {
    9190        if( GameMode::showsGraphics() )
    9291        {
    93             if (this->mesh_.getEntity())
    94                 this->detachOgreObject(this->mesh_.getEntity());
    95 
    96             this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
    97 
    98             if (this->mesh_.getEntity())
     92            if (this->getMesh().getEntity())
    9993            {
    100                 this->attachOgreObject(this->mesh_.getEntity());
    101                 this->mesh_.getEntity()->setCastShadows(this->bCastShadows_);
    102                 this->mesh_.setVisible(this->isVisible());
    103 
    104                 float scaleFactor = this->getScale();
    105 
    106 #if OGRE_VERSION >= 0x010800
    107                 Ogre::ProgressiveMesh::LodValueList distList;
    108 #elif OGRE_VERSION >= 0x010700
    109                 Ogre::Mesh::LodValueList distList;
    110 #else
    111                 Ogre::Mesh::LodDistanceList distList;
    112 #endif
    113 
    114                 distList.push_back(10.0f*scaleFactor);
    115                 distList.push_back(19.0f*scaleFactor);
    116                 distList.push_back(27.0f*scaleFactor);
    117                 distList.push_back(34.0f*scaleFactor);
    118                 distList.push_back(40.0f*scaleFactor);
    119                 distList.push_back(45.0f*scaleFactor);
    120                 distList.push_back(49.0f*scaleFactor);
    121                 distList.push_back(52.0f*scaleFactor);
    122                 distList.push_back(54.0f*scaleFactor);
    123                 distList.push_back(55.0f*scaleFactor);
    124 
    125                 float reductionValue = 0.2f;
    126 
    127 #if OGRE_VERSION >= 0x010800
    128                 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL,
    129                     reductionValue);
    130 #else
    131                 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue);
    132 #endif
    133                 billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0));
     94                this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0));
    13495
    13596                this->attachOgreObject(this->billboard_.getBillboardSet());
    13697                this->billboard_.getBillboardSet()->setUseAccurateFacing(true);
    137                 this->setCastShadows(true);
    138                 this->billboard_.getBillboardSet()->setRenderQueueGroup(this->mesh_.getEntity()->getRenderQueueGroup());
    139                 this->mesh_.setCastShadows(true);
     98                this->billboard_.getBillboardSet()->setRenderQueueGroup(this->getMesh().getEntity()->getRenderQueueGroup());
    14099            }
    141100        }
    142     }
    143 
    144     void Planet::changedShadows()
    145     {
    146         this->mesh_.setCastShadows(this->bCastShadows_);
    147101    }
    148102
     
    154108        XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode);
    155109        XMLPortParam(Planet, "imagesize", setImageSize, getImageSize, xmlelement,mode);
    156         XMLPortParam(Planet, "mesh", setMeshSource, getMeshSource, xmlelement, mode);
    157         XMLPortParam(Planet, "shadow", setCastShadows, getCastShadows, xmlelement, mode).defaultValues(true);
    158110    }
    159111
    160112    void Planet::registerVariables()
    161113    {
    162         registerVariable(this->atmosphere_, VariableDirection::ToClient);
     114        registerVariable(this->atmosphere_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedAtmosphere));
    163115        registerVariable(this->atmosphereSize, VariableDirection::ToClient);
    164116        registerVariable(this->imageSize, VariableDirection::ToClient);
    165         // Note: the meshSrc should be synchronised after atmosphere and other values, because the meshSrc callback setts the atmosphere billboards
    166         registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedMesh));
    167         registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedShadows));
    168117    }
    169118
     
    171120    {
    172121        SUPER(Planet, changedVisibility);
    173         if (this->isInitialized())
    174         {
    175             this->mesh_.setVisible(this->isVisible());
    176             this->billboard_.setVisible(this->isVisible());
    177         }
     122
     123        this->billboard_.setVisible(this->isVisible());
    178124    }
    179125}
  • code/branches/ogre1.9/src/modules/objects/Planet.h

    r11071 r11128  
    4141#include "tools/BillboardSet.h"
    4242#include "tools/Mesh.h"
    43 #include "worldentities/MovableEntity.h"
     43#include "tools/interfaces/Tickable.h"
     44#include "graphics/Model.h"
    4445
    4546namespace orxonox
    4647{
    47     class _ObjectsExport Planet : public MovableEntity
     48    class _ObjectsExport Planet : public Model, public Tickable
    4849    {
    4950        public:
     
    5859            virtual void changedVisibility() override;
    5960
    60             inline void setMeshSource(const std::string& meshname)
    61                 { this->meshSrc_ = meshname; this->changedMesh(); }
    62 
    63             inline const std::string& getMeshSource() const
    64                 { return this->meshSrc_; }
    65 
    66             inline void setCastShadows(bool bCastShadows)
    67                 { this->bCastShadows_ = bCastShadows; this->changedShadows(); }
    68 
    69             inline bool getCastShadows() const
    70                 { return this->bCastShadows_; }
    71 
    72             inline const std::string& getMesh() const{
    73                 return this->meshSrc_;
    74             }
    75 
    7661            inline void setAtmosphereSize(float size){
    7762                this->atmosphereSize = size;
     
    8469            inline void setAtmosphere(const std::string& atmosphere){
    8570                this->atmosphere_ = atmosphere;
     71                this->changedAtmosphere();
    8672            }
    8773
     
    10389            void registerVariables();
    10490
    105             void changedMesh();
    106             void changedShadows();
     91            void changedAtmosphere();
    10792
    108             std::string meshSrc_;
    10993            std::string atmosphere_;
    110             Mesh mesh_;
    11194            float atmosphereSize;
    11295            float imageSize;
    11396            BillboardSet billboard_;
    114             bool bCastShadows_;
    11597
    11698    };
  • code/branches/ogre1.9/src/orxonox/graphics/Model.h

    r11126 r11128  
    9090                { return this->mesh_; }
    9191
     92            inline void setLodEnabled(bool bLodEnabled)
     93                { this->bLodEnabled_ = bLodEnabled; }
     94
    9295        private:
    9396            /**
Note: See TracChangeset for help on using the changeset viewer.