Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 588


Ignore:
Timestamp:
Dec 17, 2007, 6:38:36 PM (16 years ago)
Author:
bknecht
Message:

corrected strange behaviour

Location:
code/branches/FICN
Files:
28 added
30 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/Media/materials/scripts/Ogre.material

    r337 r588  
    121121
    122122
    123 material Orxonox/SuperEgg
    124 {
    125         technique
    126         {
    127                 pass
    128                 {
    129                         lighting off
    130                         scene_blend alpha_blend
    131                         depth_check off
    132 
    133                         texture_unit
    134                         {
    135                                 texture superegg.png
    136                         }
    137                 }
    138         }
    139 }
    140 
    141 material Orxonox/Shot
    142 {
    143         technique
    144         {
    145                 pass
    146                 {
    147                         lighting off
    148                         scene_blend alpha_blend
    149                         depth_check off
    150 
    151                         texture_unit
    152                         {
    153                                 texture shot.png
    154                         }
    155                 }
    156         }
    157 }
    158 
    159 
    160 material Orxonox/Red
    161 {
    162         technique
    163         {
    164                 pass
    165                 {
    166                         lighting off
    167                         depth_check off
    168                         scene_blend 0.5 0.5
    169                         ambient 0 0 0 0.5
    170 
    171                         texture_unit
    172                         {
    173                                 texture OrxonoxRED.png
    174                         }
    175                 }
    176         }
    177 }
    178 
    179 
    180 material Orxonox/Black
    181 {
    182         technique
    183         {
    184                 pass
    185                 {
    186                         lighting off
    187                         depth_check off
    188                         scene_blend 0.5 0.5
    189                         ambient 0 0 0 0.5
    190 
    191                         texture_unit
    192                         {
    193                                 texture OrxonoxBlack.png
    194                         }
    195                 }
    196         }
    197 }
    198 
    199 
    200 material Orxonox/BackGround
    201 {
    202         technique
    203         {
    204                 pass
    205                 {
    206 
    207                         lighting off
    208                         scene_blend alpha_blend
    209                         depth_check off
    210                         texture_unit
    211                         {
    212                                 texture backGround.png
    213                         }
    214                 }
    215         }
    216 }
    217 
    218 material Orxonox/EnergyBackground
    219 {
    220         technique
    221         {
    222                 pass
    223                 {
    224 
    225                         lighting off
    226                         scene_blend alpha_blend
    227                         depth_check off
    228                         texture_unit
    229                         {
    230                                 texture EnergyBackground.png
    231                         }
    232                 }
    233         }
    234 }
    235 
    236 material Orxonox/Clock
    237 {
    238         technique
    239         {
    240                 pass
    241                 {
    242                         lighting off
    243                         scene_blend alpha_blend
    244                         depth_check off
    245 
    246                         texture_unit
    247                         {
    248                                 texture clock.png
    249                         }
    250                 }
    251         }
    252 }
    253 
    254 material Orxonox/Gun
    255 {
    256         technique
    257         {
    258                 pass
    259                 {
    260                         lighting off
    261                         scene_blend alpha_blend
    262                         depth_check off
    263 
    264                         texture_unit
    265                         {
    266                                 texture gun.png
    267                         }
    268                 }
    269         }
    270 }
    271 
    272 material Orxonox/Man
    273 {
    274         technique
    275         {
    276                 pass
    277                 {
    278                         lighting off
    279                         scene_blend alpha_blend
    280                         depth_check off
    281 
    282                         texture_unit
    283                         {
    284                                 texture man.png
    285                         }
    286                 }
    287         }
    288 }
    289 
    290 material Orxonox/MapBackGround
    291 {
    292         technique
    293         {
    294                 pass
    295                 {
    296                         lighting off
    297                         scene_blend alpha_blend
    298                         depth_check off
    299 
    300                         texture_unit
    301                         {
    302                                 texture MapBackGround.png
    303                         }
    304                 }
    305         }
    306 }
    307 
    308 material Orxonox/MyShip
    309 {
    310         technique
    311         {
    312                 pass
    313                 {
    314                         lighting off
    315                         scene_blend alpha_blend
    316                         depth_check off
    317 
    318                         texture_unit
    319                         {
    320                                 texture MyShip.png
    321                         }
    322                 }
    323         }
    324 }
    325 
    326 material Orxonox/RacketBackground
    327 {
    328         technique
    329         {
    330                 pass
    331                 {
    332                         lighting off
    333                         scene_blend alpha_blend
    334                         depth_check off
    335 
    336                         texture_unit
    337                         {
    338                                 texture RacketBackground.png
    339                         }
    340                 }
    341         }
    342 }
    343 
    344 
    345 material Orxonox/TargetBackground
    346 {
    347         technique
    348         {
    349                 pass
    350                 {
    351                         lighting off
    352                         scene_blend alpha_blend
    353                         depth_check off
    354 
    355                         texture_unit
    356                         {
    357                                 texture TargetBackground.png
    358                         }
    359                 }
    360         }
    361 }
    362 
    363 material Orxonox/PrimarBackground
    364 {
    365         technique
    366         {
    367                 pass
    368                 {
    369                         lighting off
    370                         scene_blend alpha_blend
    371                         depth_check off
    372 
    373                         texture_unit
    374                         {
    375                                 texture PrimarBackground.png
    376                         }
    377                 }
    378         }
    379 }
    380 
    381 material Orxonox/PrimarSample
    382 {
    383         technique
    384         {
    385                 pass
    386                 {
    387                         lighting off
    388                         scene_blend alpha_blend
    389                         depth_check off
    390 
    391                         texture_unit
    392                         {
    393                                 texture PrimarSample.png
    394                         }
    395                 }
    396         }
    397 }
    398 
    399 material Orxonox/PrimarChoice
    400 {
    401         technique
    402         {
    403                 pass
    404                 {
    405                         lighting off
    406                         scene_blend alpha_blend
    407                         depth_check off
    408 
    409                         texture_unit
    410                         {
    411                                 texture PrimarChoice.png
    412                         }
    413                 }
    414         }
    415 }
    416 
    417 material Orxonox/RedPoint
    418 {
    419         technique
    420         {
    421                 pass
    422                 {
    423                         lighting off
    424                         scene_blend alpha_blend
    425                         depth_check off
    426 
    427                         texture_unit
    428                         {
    429                                 texture RedPoint.png
    430                         }
    431                 }
    432         }
    433 }
    434 
    435 material Orxonox/EnergyDistrBackground
    436 {
    437         technique
    438         {
    439                 pass
    440                 {
    441                         lighting off
    442                         scene_blend alpha_blend
    443                         depth_check off
    444 
    445                         texture_unit
    446                         {
    447                                 texture EnergyDistrBackground.png
    448                         }
    449                 }
    450         }
    451 }
    452 
    453 material Orxonox/ShildLeftTop
    454 {
    455         technique
    456         {
    457                 pass
    458                 {
    459                         lighting off
    460                         scene_blend alpha_blend
    461                         depth_check off
    462 
    463                         texture_unit
    464                         {
    465                                 texture ShildLeftTop.png
    466                         }
    467                 }
    468         }
    469 }
    470 
    471 material Orxonox/ShildRightTop
    472 {
    473         technique
    474         {
    475                 pass
    476                 {
    477                         lighting off
    478                         scene_blend alpha_blend
    479                         depth_check off
    480 
    481                         texture_unit
    482                         {
    483                                 texture ShildRightTop.png
    484                         }
    485                 }
    486         }
    487 }
    488 
    489 material Orxonox/ShildLeftBottom
    490 {
    491         technique
    492         {
    493                 pass
    494                 {
    495                         lighting off
    496                         scene_blend alpha_blend
    497                         depth_check off
    498 
    499                         texture_unit
    500                         {
    501                                 texture ShildLeftBottom.png
    502                         }
    503                 }
    504         }
    505 }
    506 
    507 material Orxonox/ShildRightBottom
    508 {
    509         technique
    510         {
    511                 pass
    512                 {
    513                         lighting off
    514                         scene_blend alpha_blend
    515                         depth_check off
    516 
    517                         texture_unit
    518                         {
    519                                 texture ShildRightBottom.png
    520                         }
    521                 }
    522         }
    523 }
    524 
    525 material Orxonox/TimeBackground
    526 {
    527         technique
    528         {
    529                 pass
    530                 {
    531                         lighting off
    532                         scene_blend alpha_blend
    533                         depth_check off
    534 
    535                         texture_unit
    536                         {
    537                                 texture TimeBackground.png
    538                         }
    539                 }
    540         }
    541 }
    542 
  • code/branches/FICN/Media/materials/scripts/Orxonox.material

    r578 r588  
    1 material Orxonox/StarSkyBox
    2 {
    3         technique
    4         {
    5                 pass
    6                 {
    7                         lighting off
    8                         depth_write off
    9 
    10                         texture_unit
    11                         {
    12                                 cubic_texture stars.jpg separateUV
    13                                 tex_address_mode clamp
    14                         }
    15                 }
    16         }
    17 }
    18 
    19 material Orxonox/BlueStarSkyBox
    20 {
    21         technique
    22         {
    23                 pass
    24                 {
    25                         lighting off
    26                         depth_write off
    27 
    28                         texture_unit
    29                         {
    30                                 cubic_texture bluestar.png separateUV
    31                                 tex_address_mode clamp
    32                         }
    33                 }
    34         }
    35 }
    36 
    37 material Orxonox/StarfieldSkyBox
    38 {
    39         technique
    40         {
    41                 pass
    42                 {
    43                         lighting off
    44                         depth_write off
    45 
    46                         texture_unit
    47                         {
    48                                 cubic_texture starfield.jpg separateUV
    49                                 tex_address_mode clamp
    50                         }
    51                 }
    52         }
    53 }
    54 
    55 material Orxonox/LoadingScreenSample
    56 {
    57    technique
    58    {
    59       pass
    60       {
    61          
    62          depth_writing off
    63 
    64          texture_unit
    65          {
    66             texture sample_loading.jpg
    67          }
    68       }
    69    }
    70 }
     1
     2
     3material Orxonox/Shot
     4{
     5        technique
     6        {
     7                pass
     8                {
     9                        lighting off
     10                        scene_blend alpha_blend
     11                        depth_check off
     12
     13                        texture_unit
     14                        {
     15                                texture shot.png
     16                        }
     17                }
     18        }
     19}
     20
     21
     22material Orxonox/Red
     23{
     24        technique
     25        {
     26                pass
     27                {
     28                        lighting off
     29                        depth_check off
     30                        scene_blend 0.5 0.5
     31                        ambient 0 0 0 0.5
     32
     33                        texture_unit
     34                        {
     35                                texture OrxonoxRED.png
     36                        }
     37                }
     38        }
     39}
     40
     41
     42material Orxonox/Black
     43{
     44        technique
     45        {
     46                pass
     47                {
     48                        lighting off
     49                        depth_check off
     50                        scene_blend 0.5 0.5
     51                        ambient 0 0 0 0.5
     52
     53                        texture_unit
     54                        {
     55                                texture OrxonoxBlack.png
     56                        }
     57                }
     58        }
     59}
     60
     61
     62material Orxonox/BackGround
     63{
     64        technique
     65        {
     66                pass
     67                {
     68
     69                        lighting off
     70                        scene_blend alpha_blend
     71                        depth_check off
     72                        texture_unit
     73                        {
     74                                texture backGround.png
     75                        }
     76                }
     77        }
     78}
     79
     80material Orxonox/EnergyBackground
     81{
     82        technique
     83        {
     84                pass
     85                {
     86
     87                        lighting off
     88                        scene_blend alpha_blend
     89                        depth_check off
     90                        texture_unit
     91                        {
     92                                texture EnergyBackground.png
     93                        }
     94                }
     95        }
     96}
     97
     98material Orxonox/Clock
     99{
     100        technique
     101        {
     102                pass
     103                {
     104                        lighting off
     105                        scene_blend alpha_blend
     106                        depth_check off
     107
     108                        texture_unit
     109                        {
     110                                texture clock.png
     111                        }
     112                }
     113        }
     114}
     115
     116material Orxonox/Gun
     117{
     118        technique
     119        {
     120                pass
     121                {
     122                        lighting off
     123                        scene_blend alpha_blend
     124                        depth_check off
     125
     126                        texture_unit
     127                        {
     128                                texture gun.png
     129                        }
     130                }
     131        }
     132}
     133
     134material Orxonox/Man
     135{
     136        technique
     137        {
     138                pass
     139                {
     140                        lighting off
     141                        scene_blend alpha_blend
     142                        depth_check off
     143
     144                        texture_unit
     145                        {
     146                                texture man.png
     147                        }
     148                }
     149        }
     150}
     151
     152material Orxonox/MapBackGround
     153{
     154        technique
     155        {
     156                pass
     157                {
     158                        lighting off
     159                        scene_blend alpha_blend
     160                        depth_check off
     161
     162                        texture_unit
     163                        {
     164                                texture MapBackGround.png
     165                        }
     166                }
     167        }
     168}
     169
     170material Orxonox/MyShip
     171{
     172        technique
     173        {
     174                pass
     175                {
     176                        lighting off
     177                        scene_blend alpha_blend
     178                        depth_check off
     179
     180                        texture_unit
     181                        {
     182                                texture MyShip.png
     183                        }
     184                }
     185        }
     186}
     187
     188material Orxonox/RacketBackground
     189{
     190        technique
     191        {
     192                pass
     193                {
     194                        lighting off
     195                        scene_blend alpha_blend
     196                        depth_check off
     197
     198                        texture_unit
     199                        {
     200                                texture RacketBackground.png
     201                        }
     202                }
     203        }
     204}
     205
     206
     207material Orxonox/TargetBackground
     208{
     209        technique
     210        {
     211                pass
     212                {
     213                        lighting off
     214                        scene_blend alpha_blend
     215                        depth_check off
     216
     217                        texture_unit
     218                        {
     219                                texture TargetBackground.png
     220                        }
     221                }
     222        }
     223}
     224
     225material Orxonox/PrimarBackground
     226{
     227        technique
     228        {
     229                pass
     230                {
     231                        lighting off
     232                        scene_blend alpha_blend
     233                        depth_check off
     234
     235                        texture_unit
     236                        {
     237                                texture PrimarBackground.png
     238                        }
     239                }
     240        }
     241}
     242
     243material Orxonox/PrimarSample
     244{
     245        technique
     246        {
     247                pass
     248                {
     249                        lighting off
     250                        scene_blend alpha_blend
     251                        depth_check off
     252
     253                        texture_unit
     254                        {
     255                                texture PrimarSample.png
     256                        }
     257                }
     258        }
     259}
     260
     261material Orxonox/PrimarChoice
     262{
     263        technique
     264        {
     265                pass
     266                {
     267                        lighting off
     268                        scene_blend alpha_blend
     269                        depth_check off
     270
     271                        texture_unit
     272                        {
     273                                texture PrimarChoice.png
     274                        }
     275                }
     276        }
     277}
     278
     279material Orxonox/RedPoint
     280{
     281        technique
     282        {
     283                pass
     284                {
     285                        lighting off
     286                        scene_blend alpha_blend
     287                        depth_check off
     288
     289                        texture_unit
     290                        {
     291                                texture RedPoint.png
     292                        }
     293                }
     294        }
     295}
     296
     297material Orxonox/EnergyDistrBackground
     298{
     299        technique
     300        {
     301                pass
     302                {
     303                        lighting off
     304                        scene_blend alpha_blend
     305                        depth_check off
     306
     307                        texture_unit
     308                        {
     309                                texture EnergyDistrBackground.png
     310                        }
     311                }
     312        }
     313}
     314
     315material Orxonox/shieldLeftTop
     316{
     317        technique
     318        {
     319                pass
     320                {
     321                        lighting off
     322                        scene_blend alpha_blend
     323                        depth_check off
     324
     325                        texture_unit
     326                        {
     327                                texture ShieldLeftTop.png
     328                        }
     329                }
     330        }
     331}
     332
     333material Orxonox/shieldRightTop
     334{
     335        technique
     336        {
     337                pass
     338                {
     339                        lighting off
     340                        scene_blend alpha_blend
     341                        depth_check off
     342
     343                        texture_unit
     344                        {
     345                                texture ShieldRightTop.png
     346                        }
     347                }
     348        }
     349}
     350
     351material Orxonox/shieldLeftBottom
     352{
     353        technique
     354        {
     355                pass
     356                {
     357                        lighting off
     358                        scene_blend alpha_blend
     359                        depth_check off
     360
     361                        texture_unit
     362                        {
     363                                texture ShieldLeftBottom.png
     364                        }
     365                }
     366        }
     367}
     368
     369material Orxonox/shieldRightBottom
     370{
     371        technique
     372        {
     373                pass
     374                {
     375                        lighting off
     376                        scene_blend alpha_blend
     377                        depth_check off
     378
     379                        texture_unit
     380                        {
     381                                texture ShieldRightBottom.png
     382                        }
     383                }
     384        }
     385}
     386
     387material Orxonox/TimeBackground
     388{
     389        technique
     390        {
     391                pass
     392                {
     393                        lighting off
     394                        scene_blend alpha_blend
     395                        depth_check off
     396
     397                        texture_unit
     398                        {
     399                                texture TimeBackground.png
     400                        }
     401                }
     402        }
     403}
     404
  • code/branches/FICN/Media/overlay/OrxonoxHUD1.2.overlay

    r337 r588  
    3232                material Orxonox/MyShip
    3333               
    34                 container Panel(Orxonox/HUD1.2/ShildLeftTop)
     34                container Panel(Orxonox/HUD1.2/shieldLeftTop)
    3535                {
    3636                        metrics_mode pixels
     
    3939                        width 30
    4040                        height 30
    41                         material Orxonox/ShildLeftTop
    42                 }
    43 
    44                 container Panel(Orxonox/HUD1.2/ShildRightTop)
     41                        material Orxonox/shieldLeftTop
     42                }
     43
     44                container Panel(Orxonox/HUD1.2/shieldRightTop)
    4545                {
    4646                        metrics_mode pixels
     
    5050                        width 30
    5151                        height 30
    52                         material Orxonox/ShildRightTop
    53                 }
    54 
    55                 container Panel(Orxonox/HUD1.2/ShildLeftBottom)
     52                        material Orxonox/shieldRightTop
     53                }
     54
     55                container Panel(Orxonox/HUD1.2/shieldLeftBottom)
    5656                {
    5757                        metrics_mode pixels
     
    6161                        width 30
    6262                        height 30
    63                         material Orxonox/ShildLeftBottom
    64                 }
    65 
    66                 container Panel(Orxonox/HUD1.2/ShildRightBottom)
     63                        material Orxonox/shieldLeftBottom
     64                }
     65
     66                container Panel(Orxonox/HUD1.2/shieldRightBottom)
    6767                {
    6868                        metrics_mode pixels
     
    7373                        width 30
    7474                        height 30
    75                         material Orxonox/ShildRightBottom
     75                        material Orxonox/shieldRightBottom
    7676                }
    7777               
  • code/branches/FICN/bin/levels/sample.oxw

    r585 r588  
    1010  </loading>
    1111
    12   <audio>
     12  <!-- <audio>
    1313                <ambient>
    1414                        <ogg src="allgorythm-lift_up" />
     
    1818                        <ogg src="tha_silent_partner_-_void" />
    1919                </ambient>
    20   </audio>
     20  </audio> -->
    2121
    2222  <!-- Keep a minimum distance of >100 to the object, otherwise the camara thinks it's in the object -->
  • code/branches/FICN/src/orxonox/hud/HUD.cc

    r587 r588  
    22#include <Ogre.h>
    33#include <OIS/OIS.h>
    4 #include <CEGUI/CEGUI.h>
    5 #include <CEGUIRenderer.h>
     4//#include <CEGUI/CEGUI.h>
     5//#include <CEGUIRenderer.h>
    66
    77
  • code/branches/FICN/src/orxonox/orxonox.cc

    r584 r588  
    6464
    6565#include "particle/ParticleInterface.h"
     66
     67#include "hud/HUD.h"
    6668
    6769//network stuff
     
    402404  void Orxonox::setupRenderSystem()
    403405  {
    404     if (/*!root_->restoreConfig() &&*/ !root_->showConfigDialog())
     406    if (!root_->restoreConfig() && !root_->showConfigDialog())
    405407      throw Exception(52, "User canceled the config dialog!", "OrxApplication::setupRenderSystem()");
    406408  }
     
    430432    loader_->loadLevel();
    431433
    432     auMan_->ambientStart();
     434    Overlay* hudOverlay = OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
     435    hud::HUD* orxonoxHud;
     436    orxonoxHud = new hud::HUD();
     437    orxonoxHud->setEnergyValue(20);
     438    orxonoxHud->setEnergyDistr(20,20,60);
     439    hudOverlay->show();
     440
     441
     442        /*
     443    auMan_->ambientAdd("a1");
     444    auMan_->ambientAdd("a2");
     445    auMan_->ambientAdd("a3");
     446                                //auMan->ambientAdd("ambient1");
     447    auMan_->ambientStart();*/
    433448  }
    434449
  • code/branches/FICN/src/orxonox/run_manager.cc

    r513 r588  
    5454#include "weapon/base_weapon.h"
    5555
    56 #include "hud/hud_overlay.h"
    57 #include "hud/test_overlay.h"
     56//#include "hud/hud_overlay.h"
     57//#include "hud/test_overlay.h"
     58#include "hud/HUD.h"
    5859
    5960#include "run_manager.h"
     
    142143
    143144    // create HUD
    144     hud_ = new hud::TestOverlay(window_);
    145     hud_->show();
     145    //hud_ = new hud::TestOverlay(window_);
     146    //hud_->show();
     147    /*hud_ = new hud::HUD();
     148    hud_->show();*/
    146149
    147150
     
    206209    if (bulletManager_)
    207210      delete bulletManager_;
    208     if (hud_)
    209       delete hud_;
     211    /*if (hud_)
     212      delete hud_;*/
    210213  }
    211214
     
    241244      + " | Ammo stock = "
    242245      + StringConverter::toString(playerShip_->getAmmoStock());
    243     hud_->setDebugText(tempStr);
    244 
    245     hud_->tick(time, deltaTime);
     246    //hud_->setDebugText(tempStr);
     247
     248    //hud_->tick(time, deltaTime);
    246249
    247250    // update the bullet positions
     
    444447  void RunManager::showDebugOverlay(bool show)
    445448  {
    446     if (hud_)
     449    /*if (hud_)
    447450    {
    448451      if (show)
     
    450453      else
    451454        hud_->hide();
    452     }
     455    }*/
    453456  }
    454457
  • code/branches/FICN/src/orxonox/run_manager.h

    r342 r588  
    4747  public:
    4848    virtual ~RunManager();
    49    
     49
    5050    void initialise(OgreControl*);
    5151
     
    109109          OrxonoxScene *backgroundScene_;
    110110          OrxonoxShip  *playerShip_;
    111     hud::TestOverlay *hud_;
     111    //hud::TestOverlay *hud_;
     112          //hud::HUD  *hud_;
    112113
    113114    // Bullet manager
Note: See TracChangeset for help on using the changeset viewer.