Changeset 11128
- Timestamp:
- Mar 6, 2016, 1:56:26 PM (9 years ago)
- Location:
- code/branches/ogre1.9
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/data/levels/Spacerace2.oxw
r10624 r11128 123 123 124 124 <!-- ------------------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> 126 130 <StaticEntity position="0,0,0" collisionType=static> 127 131 <collisionShapes> -
code/branches/ogre1.9/data/levels/asteroidField.oxw
r9939 r11128 66 66 67 67 <!-- Planet close to spawn point --> 68 < Planet68 <MovableEntity 69 69 position="15000,0,0" 70 70 scale="5000" … … 74 74 mass="10000000" 75 75 pitch="0" 76 mesh="planets/muunilinst.mesh"77 atmosphere="atmosphere1"78 76 rotationaxis="1,0,0" 79 77 rotationrate="1.0" 80 atmospheresize="80.0f"81 imagesize="1024.0f"82 78 collisiondamage = 2 83 79 enablecollisiondamage = true 84 80 > 85 81 <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> 87 92 </attached> 88 93 <collisionShapes> 89 94 <SphereCollisionShape radius="5000" position="0,0,0" /> 90 95 </collisionShapes> 91 </ Planet>96 </MovableEntity> 92 97 93 98 -
code/branches/ogre1.9/data/levels/dockingToASpaceStation.oxw
r11104 r11128 153 153 ?> 154 154 155 < Planet155 <MovableEntity 156 156 position="15000,0,-1000" 157 157 scale="5000" … … 161 161 mass="10000000" 162 162 pitch="0" 163 mesh="planets/ganymede.mesh"164 atmosphere="atmosphere1"165 163 rotationaxis="1,0,0" 166 164 rotationrate="1.0" 167 atmospheresize="80.0f"168 imagesize="1024.0f"169 165 collisiondamage = 2 170 166 enablecollisiondamage = true 171 167 > 172 168 <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> 174 179 </attached> 175 180 <collisionShapes> 176 181 <SphereCollisionShape radius="5000" position="0,0,0" /> 177 182 </collisionShapes> 178 </ Planet>183 </MovableEntity> 179 184 180 185 </Scene> -
code/branches/ogre1.9/data/levels/dynamicMatch.oxw
r9939 r11128 33 33 34 34 <!-- ------------------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> 37 41 <collisionShapes> 38 42 <SphereCollisionShape radius="499" /> -
code/branches/ogre1.9/data/levels/earth.oxw
r9016 r11128 56 56 57 57 <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> 58 < Planet58 <MovableEntity 59 59 position="0,0,0" 60 60 scale="63000" 61 pitch="0" 61 62 collisionType="dynamic" 62 63 linearDamping="0.8" 63 64 angularDamping="0" 64 65 mass="5.9e21" 65 pitch="0"66 mesh="planets/earth.mesh"67 atmosphere="atmosphere1"68 66 rotationaxis="0,1,0" 69 67 rotationrate="0.2" 70 atmospheresize="80.0f"71 imagesize="1024.0f"72 68 collisiondamage = 2 73 69 enablecollisiondamage = true 74 70 > 75 71 <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> 77 82 </attached> 78 83 <collisionShapes> 79 84 <SphereCollisionShape radius="63000" position="0,0,0" /> 80 85 </collisionShapes> 81 </ Planet>86 </MovableEntity> 82 87 83 88 <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> 84 < Planet89 <MovableEntity 85 90 position="3625700,0,0" 86 91 scale="17370" 92 pitch="0" 87 93 collisionType="dynamic" 88 94 linearDamping="0.8" 89 95 angularDamping="0" 90 96 mass="7.36e19" 91 pitch="0"92 mesh="planets/moon.mesh"93 atmosphere="atmosphere1"94 97 rotationaxis="0,1,0" 95 98 rotationrate="0.2" 96 atmospheresize="80.0f"97 imagesize="1024.0f"98 99 collisiondamage = 2 99 100 enablecollisiondamage = true 100 101 > 101 102 <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> 103 113 </attached> 104 114 <collisionShapes> 105 115 <SphereCollisionShape radius="17370" position="0,0,0" /> 106 116 </collisionShapes> 107 </ Planet>117 </MovableEntity> 108 118 <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> 109 119 -
code/branches/ogre1.9/data/levels/expeditionSector.oxw
r11104 r11128 588 588 <!-- Planets --> 589 589 590 <Planet590 <MovableEntity 591 591 position="<?lua printC(cPlanet1) ?>" 592 592 scale="3000" … … 596 596 mass="5000000" 597 597 pitch="0" 598 mesh="planets/muunilinst.mesh"599 atmosphere="atmosphere1"600 598 rotationaxis="1,0,0" 601 599 rotationrate="1.0" 602 atmospheresize="80.0f"603 imagesize="1024.0f"604 600 collisiondamage=2 605 601 enablecollisiondamage=true 606 visible=true 607 active=ture 608 > 602 > 609 603 <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" /> 614 619 </collisionShapes> 615 </ Planet>620 </MovableEntity> 616 621 617 622 <?lua … … 620 625 ?> 621 626 622 < Planet627 <MovableEntity 623 628 position="<?lua printC(cPlanet2) ?>" 624 629 scale="2000" … … 628 633 mass="5000000" 629 634 pitch="0" 630 mesh="planets/ganymede.mesh"631 atmosphere="atmosphere1"632 635 rotationaxis="1,0,0" 633 636 rotationrate="1.0" 634 atmospheresize="80.0f"635 imagesize="1024.0f"636 637 collisiondamage=2 637 638 enablecollisiondamage=true 638 visible=true 639 active=true 640 > 639 > 641 640 <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" /> 646 656 </collisionShapes> 647 </ Planet>657 </MovableEntity> 648 658 649 659 <?lua … … 654 664 <!-- EnemyPlanet(s) --> 655 665 656 < Planet666 <MovableEntity 657 667 position="<?lua printC(cEnemyBasePlanet) ?>" 658 668 scale="5000" … … 662 672 mass="5000000" 663 673 pitch="0" 664 mesh="planets/jupiter.mesh"665 atmosphere="atmosphere1"666 674 rotationaxis="1,0,0" 667 675 rotationrate="1.0" 668 atmospheresize="80.0f"669 imagesize="1024.0f"670 676 collisiondamage=2 671 677 enablecollisiondamage=true 672 visible=false 673 active=false 674 > 678 > 675 679 <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" /> 680 695 </collisionShapes> 681 </ Planet>696 </MovableEntity> 682 697 683 698 <?lua -
code/branches/ogre1.9/data/levels/iiJohnVane_Area51UnderFire.oxw
r9992 r11128 2004 2004 2005 2005 <!-- 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 2010 2020 mesh="iceplanet.mesh" 2011 2021 atmosphere="atmosphere1" 2012 rotationaxis="1,1,0"2013 rotationrate="0.5"2014 2022 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> 2021 2026 2022 2027 <!-- PICKUPS to make travelling faster --> -
code/branches/ogre1.9/data/levels/iiiJohnVane_EscapeTheBastards.oxw
r11052 r11128 778 778 779 779 <!--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> 781 785 <StaticEntity position="2600,0,0" collisionType=static> 782 786 <collisionShapes> … … 790 794 791 795 <!--Planet with Ally--> 792 < Planet796 <MovableEntity 793 797 position="0,0,0" 794 798 scale="100" … … 798 802 mass="5000000" 799 803 pitch="0" 800 mesh="iceplanet.mesh"801 atmosphere="atmosphere1"802 804 rotationaxis="1,0,0" 803 805 rotationrate="1.0" 804 atmospheresize="80.0f"805 imagesize="1024.0f"806 806 > 807 807 <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> 810 819 </attached> 811 820 <collisionShapes> 812 821 <SphereCollisionShape radius="100" position="0,0,0" /> 813 822 </collisionShapes> 814 </ Planet>823 </MovableEntity> 815 824 <!-- Planet with Ally END--> 816 825 817 826 818 827 <!-- Homeplanet --> 819 < Planet828 <MovableEntity 820 829 position="-3000,12000,-10000" 821 830 scale="3000" … … 825 834 mass="5000000000000" 826 835 pitch="0" 827 mesh="planets/muunilinst.mesh"828 atmosphere="atmosphere1"829 836 rotationaxis="0,0,0" 830 837 rotationrate="0.0" 831 atmospheresize="80.0f"832 imagesize="1024.0f"833 838 > 834 839 <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> 836 850 </attached> 837 851 <collisionShapes> 838 852 <SphereCollisionShape radius="3000" position="0,0,0" /> 839 853 </collisionShapes> 840 </ Planet>854 </MovableEntity> 841 855 <!-- Homeplanet END--> 842 856 843 857 <!-- Planet around the cave--> 844 858 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> 846 864 847 865 <!-- Planet around the cave END--> 848 866 849 867 <!-- Anotherplanet --> 850 < Planet868 <MovableEntity 851 869 position="-20000,6000,7000" 852 870 scale="3000" … … 856 874 mass="5000000000000" 857 875 pitch="0" 858 mesh="planets/ganymede.mesh"859 atmosphere="atmosphere1"860 876 rotationaxis="0,0,0" 861 877 rotationrate="0.0" 862 atmospheresize="80.0f"863 imagesize="1024.0f"864 878 > 879 <attached> 880 <Planet 881 mesh="planets/ganymede.mesh" 882 atmosphere="atmosphere1" 883 atmospheresize="80.0f" 884 imagesize="1024.0f" 885 /> 886 </attached> 865 887 <collisionShapes> 866 888 <SphereCollisionShape radius="3000" position="0,0,0" /> 867 889 </collisionShapes> 868 </ Planet>890 </MovableEntity> 869 891 <!-- LAAAGS :-( 870 892 -
code/branches/ogre1.9/data/levels/kecks.oxw
r11052 r11128 423 423 424 424 <!--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> 425 441 <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"435 442 mesh="planets/earth.mesh" 436 443 atmosphere="atmosphere1" 437 rotationaxis="0,0,1"438 rotationrate="5.0"439 444 atmospheresize="80.0f" 440 445 imagesize="1024.0f" 441 collisiondamage = 1442 enablecollisiondamage = true443 446 > 444 447 <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> 451 456 <!--ENDE Heimatplanet--> 452 457 -
code/branches/ogre1.9/data/levels/levelTry.oxw
r11104 r11128 149 149 ?> 150 150 151 < Planet151 <MovableEntity 152 152 position="15000,0,-1000" 153 153 scale="5000" … … 157 157 mass="10000000" 158 158 pitch="0" 159 mesh="planets/ganymede.mesh"160 atmosphere="atmosphere1"161 159 rotationaxis="1,0,0" 162 160 rotationrate="1.0" 163 atmospheresize="80.0f"164 imagesize="1024.0f"165 161 collisiondamage = 2 166 162 enablecollisiondamage = true 167 163 > 168 164 <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> 170 175 </attached> 171 176 <collisionShapes> 172 177 <SphereCollisionShape radius="5000" position="0,0,0" /> 173 178 </collisionShapes> 174 </ Planet>179 </MovableEntity> 175 180 176 181 </Scene> -
code/branches/ogre1.9/data/levels/missionOne.oxw
r11052 r11128 1205 1205 1206 1206 <!-- @Objects: planet && spaceboundaries --> 1207 < Planet1207 <MovableEntity 1208 1208 position="-44000,0,0" 1209 1209 scale="2500" … … 1213 1213 mass="10000000" 1214 1214 pitch="0" 1215 mesh="planets/muunilinst.mesh"1216 atmosphere="atmosphere1"1217 1215 rotationaxis="1,0,0" 1218 1216 rotationrate="1.0" 1219 atmospheresize="80.0f"1220 imagesize="1024.0f"1221 1217 collisiondamage = "2" 1222 1218 enablecollisiondamage = "false" 1223 1219 > 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> 1227 1232 <collisionShapes> 1228 1233 <SphereCollisionShape radius="2500" position="0,0,0" /> 1229 1234 </collisionShapes> 1230 </ Planet>1235 </MovableEntity> 1231 1236 1232 1237 -
code/branches/ogre1.9/data/levels/planets.oxw
r9348 r11128 45 45 /> 46 46 47 < Planet47 <MovableEntity 48 48 position="0,0,0" 49 49 scale="1000" … … 53 53 mass="10000000" 54 54 pitch="0" 55 mesh="planets/muunilinst.mesh"56 atmosphere="atmosphere1"57 55 rotationaxis="1,0,0" 58 56 rotationrate="1.0" 59 atmospheresize="80.0f"60 imagesize="1024.0f"61 57 collisiondamage = 2 62 58 enablecollisiondamage = true 63 59 > 64 60 <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> 66 71 </attached> 67 72 <collisionShapes> 68 73 <SphereCollisionShape radius="1000" position="0,0,0" /> 69 74 </collisionShapes> 70 </ Planet>75 </MovableEntity> 71 76 72 < Planet77 <MovableEntity 73 78 position="10000,0,0" 74 79 scale="100" … … 78 83 mass="5000000" 79 84 pitch="0" 80 mesh="planets/muunilinst.mesh"81 atmosphere="atmosphere1"82 85 rotationaxis="1,0,0" 83 86 rotationrate="1.0" 84 atmospheresize="80.0f"85 imagesize="1024.0f"86 87 collisiondamage = 2 87 88 enablecollisiondamage = true 88 89 > 89 90 <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> 91 101 </attached> 92 102 <collisionShapes> 93 103 <SphereCollisionShape radius="100" position="0,0,0" /> 94 104 </collisionShapes> 95 </ Planet>105 </MovableEntity> 96 106 </Scene> 97 107 </Level> -
code/branches/ogre1.9/data/levels/presentation09.oxw
r9348 r11128 57 57 <?lua end ?> 58 58 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> 60 64 61 65 </Scene> -
code/branches/ogre1.9/data/levels/presentationFS11.oxw
r9939 r11128 111 111 112 112 <!-- EARTH --> 113 < Planet113 <MovableEntity 114 114 position="80500,0,0" 115 115 scale="63000" … … 120 120 pitch="-90" 121 121 yaw="50" 122 mesh="planets/earth.mesh"123 atmosphere="atmosphere1"124 122 rotationaxis="0,1,0" 125 123 rotationrate="0.2" 126 atmospheresize="80.0f"127 imagesize="1024.0f"128 124 collisiondamage = 2 129 125 enablecollisiondamage = true 130 126 > 131 127 <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> 133 138 </attached> 134 139 <collisionShapes> 135 140 <SphereCollisionShape radius="63000" position="0,0,0" /> 136 141 </collisionShapes> 137 </ Planet>142 </MovableEntity> 138 143 139 144 <!-- PARTICLE EFFECT --> … … 329 334 330 335 <!-- MOON --> 331 < Planet336 <MovableEntity 332 337 position="-80000,0,0" 333 338 scale="4000" … … 337 342 mass="7.36e19" 338 343 pitch="0" 339 mesh="planets/moon.mesh"340 atmosphere="atmosphere1"341 344 rotationaxis="0,1,0" 342 345 rotationrate="0.2" 343 atmospheresize="0.0f"344 imagesize="1024.0f"345 346 collisiondamage = 2 346 347 enablecollisiondamage = true 347 348 > 348 349 <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> 350 360 </attached> 351 361 <collisionShapes> 352 362 <SphereCollisionShape radius="4000" position="0,0,0" /> 353 363 </collisionShapes> 354 </ Planet>364 </MovableEntity> 355 365 356 366 <SimpleNotification message="Hydrogen farmer/space station by Hans" > -
code/branches/ogre1.9/data/levels/presentationHS09.oxw
r9348 r11128 393 393 </MovableEntity> 394 394 <?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 -->399 395 400 396 </Scene> -
code/branches/ogre1.9/data/levels/presentationHS12.oxw
r10624 r11128 353 353 ?> 354 354 355 < Planet355 <MovableEntity 356 356 position="15000,0,-1000" 357 357 scale="5000" … … 361 361 mass="10000000" 362 362 pitch="0" 363 mesh="planets/ganymede.mesh"364 atmosphere="atmosphere1"365 363 rotationaxis="1,0,0" 366 364 rotationrate="1.0" 367 atmospheresize="80.0f"368 imagesize="1024.0f"369 365 collisiondamage = 2 370 366 enablecollisiondamage = true 371 367 > 372 368 <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> 374 379 </attached> 375 380 <collisionShapes> 376 381 <SphereCollisionShape radius="5000" position="0,0,0" /> 377 382 </collisionShapes> 378 </ Planet>383 </MovableEntity> 379 384 380 385 <StaticEntity position="6750,-750,2000" yaw=0 pitch=0> -
code/branches/ogre1.9/data/levels/shadertest.oxw
r11080 r11128 78 78 <!-- Planet close to spawn point --> 79 79 80 < Planet80 <MovableEntity 81 81 position="15000,0,-1000" 82 82 scale="5000" … … 86 86 mass="10000000" 87 87 pitch="0" 88 mesh="planets/muunilinst.mesh"89 atmosphere="atmosphere1"90 88 rotationaxis="1,0,0" 91 89 rotationrate="1.0" 92 atmospheresize="80.0f"93 imagesize="1024.0f"94 90 collisiondamage = 2 95 91 enablecollisiondamage = true 96 92 > 97 93 <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> 99 104 </attached> 100 105 <collisionShapes> 101 106 <SphereCollisionShape radius="5000" position="0,0,0" /> 102 107 </collisionShapes> 103 </ Planet>108 </MovableEntity> 104 109 105 110 -
code/branches/ogre1.9/data/levels/shuttleAttack.oxw
r11104 r11128 930 930 ?> 931 931 932 < Planet932 <MovableEntity 933 933 position="<?lua printC(cPlanet1) ?>" 934 934 scale="2000" … … 938 938 mass="5000000" 939 939 pitch="0" 940 mesh="planets/muunilinst.mesh"941 atmosphere="atmosphere1"942 940 rotationaxis="1,0,0" 943 941 rotationrate="1.0" 944 atmospheresize="80.0f"945 imagesize="1024.0f"946 942 collisiondamage = 2 947 943 enablecollisiondamage = true 948 944 > 949 945 <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" /> 954 959 </collisionShapes> 955 </ Planet>960 </MovableEntity> 956 961 957 962 <?lua … … 960 965 ?> 961 966 962 < Planet967 <MovableEntity 963 968 position="<?lua printC(cPlanet2) ?>" 964 969 scale="3000" … … 968 973 mass="5000000" 969 974 pitch="0" 970 mesh="planets/planet3.mesh"971 atmosphere="atmosphere1"972 975 rotationaxis="1,0,0" 973 976 rotationrate="1.0" 974 atmospheresize="80.0f"975 imagesize="1024.0f"976 977 collisiondamage = 2 977 978 enablecollisiondamage = true 978 979 > 979 980 <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" /> 984 994 </collisionShapes> 985 </ Planet>995 </MovableEntity> 986 996 987 997 <?lua -
code/branches/ogre1.9/data/levels/shuttleRetaliation.oxw
r11104 r11128 880 880 <!-- Planets --> 881 881 882 <Planet882 <MovableEntity 883 883 position="<?lua printC(cPlanet1) ?>" 884 884 scale="3000" … … 888 888 mass="5000000" 889 889 pitch="0" 890 mesh="planets/muunilinst.mesh"891 atmosphere="atmosphere1"892 890 rotationaxis="1,0,0" 893 891 rotationrate="1.0" 894 atmospheresize="80.0f"895 imagesize="1024.0f"896 892 collisiondamage = 2 897 893 enablecollisiondamage = true 898 visible=true 899 active=true 900 > 894 > 901 895 <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" /> 906 911 </collisionShapes> 907 </ Planet>912 </MovableEntity> 908 913 909 914 <?lua … … 912 917 ?> 913 918 914 < Planet919 <MovableEntity 915 920 position="<?lua printC(cPlanet2) ?>" 916 921 scale="2000" … … 920 925 mass="5000000" 921 926 pitch="0" 922 mesh="planets/ganymede.mesh"923 atmosphere="atmosphere1"924 927 rotationaxis="1,0,0" 925 928 rotationrate="1.0" 926 atmospheresize="80.0f"927 imagesize="1024.0f"928 929 collisiondamage = 2 929 930 enablecollisiondamage = true 930 visible=true 931 active=true 932 > 931 > 933 932 <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" /> 938 948 </collisionShapes> 939 </ Planet>949 </MovableEntity> 940 950 941 951 <?lua … … 946 956 <!-- EnemyPlanet --> 947 957 948 < Planet958 <MovableEntity 949 959 position="<?lua printC(cEnemyBasePlanet) ?>" 950 960 scale="5000" … … 954 964 mass="5000000" 955 965 pitch="0" 956 mesh="planets/jupiter.mesh"957 atmosphere="atmosphere1"958 966 rotationaxis="1,0,0" 959 967 rotationrate="1.0" 960 atmospheresize="80.0f"961 imagesize="1024.0f"962 968 collisiondamage = 2 963 969 enablecollisiondamage = true 964 visible=false965 active=false966 970 > 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> 968 981 <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> 971 984 <activity> 972 985 <Trigger name="enemyPlanetVisible" mode=and> … … 1005 1018 </Trigger> 1006 1019 </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> 1012 1027 1013 1028 <!-- Pawn that represents the planet during destruction --> -
code/branches/ogre1.9/data/levels/spaceRace.oxw
r10624 r11128 360 360 361 361 <!-- ------------------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> 363 367 <StaticEntity position="0,0,0" collisionType=static> 364 368 <collisionShapes> -
code/branches/ogre1.9/data/levels/testSwallow.oxw
r9348 r11128 56 56 ?> 57 57 <?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> 59 63 60 64 </Scene> -
code/branches/ogre1.9/src/modules/objects/Planet.cc
r10624 r11128 47 47 * @brief Constructor 48 48 */ 49 Planet::Planet(Context* context) : Mo vableEntity(context)49 Planet::Planet(Context* context) : Model(context) 50 50 { 51 51 RegisterObject(Planet); 52 this->setLodEnabled(false); 52 53 this->registerVariables(); 53 54 } … … 58 59 Planet::~Planet() 59 60 { 60 if (this->isInitialized() && this->mesh_.getEntity())61 this->detachOgreObject(this->mesh_.getEntity());62 61 } 63 62 … … 87 86 } 88 87 89 void Planet::changed Mesh()88 void Planet::changedAtmosphere() 90 89 { 91 90 if( GameMode::showsGraphics() ) 92 91 { 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()) 99 93 { 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)); 134 95 135 96 this->attachOgreObject(this->billboard_.getBillboardSet()); 136 97 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()); 140 99 } 141 100 } 142 }143 144 void Planet::changedShadows()145 {146 this->mesh_.setCastShadows(this->bCastShadows_);147 101 } 148 102 … … 154 108 XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode); 155 109 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);158 110 } 159 111 160 112 void Planet::registerVariables() 161 113 { 162 registerVariable(this->atmosphere_, VariableDirection::ToClient );114 registerVariable(this->atmosphere_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedAtmosphere)); 163 115 registerVariable(this->atmosphereSize, VariableDirection::ToClient); 164 116 registerVariable(this->imageSize, VariableDirection::ToClient); 165 // Note: the meshSrc should be synchronised after atmosphere and other values, because the meshSrc callback setts the atmosphere billboards166 registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedMesh));167 registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedShadows));168 117 } 169 118 … … 171 120 { 172 121 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()); 178 124 } 179 125 } -
code/branches/ogre1.9/src/modules/objects/Planet.h
r11071 r11128 41 41 #include "tools/BillboardSet.h" 42 42 #include "tools/Mesh.h" 43 #include "worldentities/MovableEntity.h" 43 #include "tools/interfaces/Tickable.h" 44 #include "graphics/Model.h" 44 45 45 46 namespace orxonox 46 47 { 47 class _ObjectsExport Planet : public Mo vableEntity48 class _ObjectsExport Planet : public Model, public Tickable 48 49 { 49 50 public: … … 58 59 virtual void changedVisibility() override; 59 60 60 inline void setMeshSource(const std::string& meshname)61 { this->meshSrc_ = meshname; this->changedMesh(); }62 63 inline const std::string& getMeshSource() const64 { return this->meshSrc_; }65 66 inline void setCastShadows(bool bCastShadows)67 { this->bCastShadows_ = bCastShadows; this->changedShadows(); }68 69 inline bool getCastShadows() const70 { return this->bCastShadows_; }71 72 inline const std::string& getMesh() const{73 return this->meshSrc_;74 }75 76 61 inline void setAtmosphereSize(float size){ 77 62 this->atmosphereSize = size; … … 84 69 inline void setAtmosphere(const std::string& atmosphere){ 85 70 this->atmosphere_ = atmosphere; 71 this->changedAtmosphere(); 86 72 } 87 73 … … 103 89 void registerVariables(); 104 90 105 void changedMesh(); 106 void changedShadows(); 91 void changedAtmosphere(); 107 92 108 std::string meshSrc_;109 93 std::string atmosphere_; 110 Mesh mesh_;111 94 float atmosphereSize; 112 95 float imageSize; 113 96 BillboardSet billboard_; 114 bool bCastShadows_;115 97 116 98 }; -
code/branches/ogre1.9/src/orxonox/graphics/Model.h
r11126 r11128 90 90 { return this->mesh_; } 91 91 92 inline void setLodEnabled(bool bLodEnabled) 93 { this->bLodEnabled_ = bLodEnabled; } 94 92 95 private: 93 96 /**
Note: See TracChangeset
for help on using the changeset viewer.