Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10317 in orxonox.OLD


Ignore:
Timestamp:
Jan 24, 2007, 1:30:29 AM (17 years ago)
Author:
patrick
Message:

merged branche data-fix back to trunk. this breaks compatibility with the old data/trunk data repository! be sure to update your data trunk

Location:
trunk/src
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/bsp/bsp_file.cc

    r10314 r10317  
    426426{
    427427  ::std::string absFileName;
    428   char* baseName = "/worlds/bsp/";
     428  char* baseName = "/textures/";
    429429
    430430  char fileName [500];
     
    448448    //this->Materials[i]->setShininess(100.0);
    449449   // this->Materials[i].mat->setTransparency(1.0);
    450     this->Materials[i].mat->setDiffuseMap("pictures/ground.tga");
    451     this->Materials[i].mat->setAmbientMap("pictures/ground.tga");
    452     this->Materials[i].mat->setSpecularMap("pictures/ground.tga");
     450    this->Materials[i].mat->setDiffuseMap("textures/ground.tga");
     451    this->Materials[i].mat->setAmbientMap("textures/ground.tga");
     452    this->Materials[i].mat->setSpecularMap("textures/ground.tga");
    453453    this->Materials[i].alpha = false;
    454454    this->Materials[i].animated = false;
     
    595595    //this->Materials[i]->setShininess(100.0);
    596596    //this->Materials[i].mat->setTransparency(1.0);
    597     this->Materials[i].mat->setDiffuseMap("pictures/error_texture.png");
    598     this->Materials[i].mat->setAmbientMap("pictures/error_texture.png");
    599     this->Materials[i].mat->setSpecularMap("pictures/error_texture.png");
     597    this->Materials[i].mat->setDiffuseMap("textures/error_texture.png");
     598    this->Materials[i].mat->setAmbientMap("textures/error_texture.png");
     599    this->Materials[i].mat->setSpecularMap("textures/error_texture.png");
    600600    this->Materials[i].alpha = true;
    601601    this->Materials[i].animated = false;
  • trunk/src/lib/graphics/importer/md3/md3_data.cc

    r8724 r10317  
    425425    std::string path1(tex[i].fileName);
    426426    std::string fullPath( path + path1);
    427     this->meshes[mesh]->material[i].setDiffuseMap(/*tex[i].fileName*/ /*fullPath.c_str()*/ "maps/creatures/gork/gorkup.tga");
     427    this->meshes[mesh]->material[i].setDiffuseMap(/*tex[i].fileName*/ /*fullPath.c_str()*/ "textures/creatures/gork/gorkup.tga");
    428428    this->meshes[mesh]->material[i].setAmbient(1, 1, 1);
    429429  }
  • trunk/src/lib/graphics/render2D/image_plane.cc

    r10114 r10317  
    5959
    6060  //this->setBindNode(this);
    61   this->setTexture("pictures/error_texture.png");
     61  this->setTexture("textures/error_texture.png");
    6262}
    6363
  • trunk/src/lib/gui/gl/glgui_container.cc

    r9869 r10317  
    4343    this->registerObject(this, GLGuiContainer::_objectList);
    4444
    45     this->setBackgroundTexture("gui_container_background.png");
     45    this->setBackgroundTexture("textures/gui/gui_container_background.png");
    4646
    4747  }
  • trunk/src/lib/gui/gl/glgui_cursor.cc

    r9869 r10317  
    5858
    5959    this->setBackgroundColor(Color(1.0, 1.0, 1.0, 1.0));
    60     this->setBackgroundTexture("cursor.png");
     60    this->setBackgroundTexture("textures/menu/cursor.png");
    6161    this->setSize2D(50, 50);
    6262    this->setAbsCoor2D(100, 100);
  • trunk/src/lib/gui/gl/glgui_handler.cc

    r9869 r10317  
    7777    this->_cursor->setMaxBorders(Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()));
    7878
    79     _cursor->loadTextureSequence(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);
     79    _cursor->loadTextureSequence(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + "/" + "textures/reap_mouse/reap_mouse_##.png", 1, 49);
    8080
    8181  }
  • trunk/src/lib/gui/gl/glgui_widget.cc

    r9869 r10317  
    127127
    128128    this->setBorderLeft(15);
    129     this->setBackgroundTexture("gui_element_background.png");
     129    this->setBackgroundTexture("textures/gui/gui_element_background.png");
    130130
    131131    this->switchState(_state);
  • trunk/src/orxonox.cc

    r10150 r10317  
    257257  GraphicsEngine::getInstance()->initFromPreferences();
    258258
    259   std::string iconName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath("pictures/fighter-top-32x32.bmp");
     259  std::string iconName = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath("textures/fighter-top-32x32.bmp");
    260260  if (!iconName.empty())
    261261  {
     
    365365
    366366  //! @todo this is a hack and should be loadable
    367   Resources::ResourceManager::getInstance()->addResourceSubPath("Texture", "maps");
    368   Resources::ResourceManager::getInstance()->addResourceSubPath("Texture", "pictures");
    369 
    370   Resources::ResourceManager::getInstance()->addResourceSubPath("SoundBuffer", "sound");
     367  Resources::ResourceManager::getInstance()->addResourceSubPath("Texture", "textures");
     368  //Resources::ResourceManager::getInstance()->addResourceSubPath("Texture", "pictures");
     369
     370  Resources::ResourceManager::getInstance()->addResourceSubPath("SoundBuffer", "sounds");
    371371  Resources::ResourceManager::getInstance()->addResourceSubPath("SoundBuffer", "music");
    372372
     
    410410
    411411  if( this->port != -1)
    412     this->gameLoader->loadNetworkCampaign("worlds/DefaultNetworkCampaign.oxc");
     412    this->gameLoader->loadNetworkCampaign("levels/DefaultNetworkCampaign.oxc");
    413413  else
    414     this->gameLoader->loadCampaign("worlds/DefaultCampaign.oxc");                       /* start orxonox in single player mode */
     414    this->gameLoader->loadCampaign("levels/DefaultCampaign.oxc");                       /* start orxonox in single player mode */
    415415
    416416  //  this->gameLoader->loadDebugCampaign(DEBUG_CAMPAIGN_0);
  • trunk/src/story_entities/game_world_data.cc

    r10013 r10317  
    160160    PRINTF(2)("no LoadScreen specified, loading default\n");
    161161
    162     glmis->setBackgroundImage("pictures/load_screen.jpg");
     162    glmis->setBackgroundImage("textures/load_screens/default.jpg");
    163163    this->glmis->setMaximum(8);
    164164    //     this->glmis->draw();
  • trunk/src/subprojects/importer/multitex.cc

    r6532 r10317  
    4747
    4848  testMat = new Material;
    49   testMat->setDiffuseMap("maps/radialTransparency.png");
     49  testMat->setDiffuseMap("textures/radialTransparency.png");
    5050  obj = new PrimitiveModel(PRIM_PLANE, 10.0);
    5151
  • trunk/src/world_entities/effects/explosion.cc

    r10114 r10317  
    7979    Explosion::explosionParticles = new SpriteParticles(5000);
    8080    Explosion::explosionParticles->setName("ExplosionExplosionParticles");
    81     Explosion::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png");
     81    Explosion::explosionParticles->setMaterialTexture("textures/radial-trans-noise.png");
    8282    Explosion::explosionParticles->setLifeSpan(1.5, .3);
    8383    Explosion::explosionParticles->setRadius(0.0, 10);
  • trunk/src/world_entities/effects/lightning_bolt.cc

    r10114 r10317  
    4444
    4545  this->material = new Material();
    46   this->material->setDiffuseMap("maps/lightning_bolt.png");
     46  this->material->setDiffuseMap("textures/lightning_bolt.png");
    4747  //this->offset = Vector(-1440.00, 100.00, 280.00);
    4848
     
    5858  this->soundSource.setSourceNode(this);
    5959
    60   this->thunderBuffer = OrxSound::ResourceSoundBuffer("sound/atmosphere/thunder.wav");
     60  this->thunderBuffer = OrxSound::ResourceSoundBuffer("sounds/atmosphere/thunder.wav");
    6161}
    6262
  • trunk/src/world_entities/elements/glgui_energywidget.cc

    r9406 r10317  
    3737    this->_valueText.setChangedTextColor(Color::white);
    3838
    39     //this->setBackgroundTexture("maps/gui_element_background_2.png");
     39    //this->setBackgroundTexture("textures/gui/gui_element_background_2.png");
    4040    this->setBackgroundColor(Color(.5,.5,.5,1));
    4141
    4242    //this->_name.setBackgroundTexture(Texture());
    43     //this->_valueText.setBackgroundTexture("maps/gui_element_background_2.png");
     43    //this->_valueText.setBackgroundTexture("textures/gui/gui_element_background_2.png");
    4444    this->_bar.setBackgroundTexture(Texture());
    4545    this->_bar.setBackgroundColor(Color(0,0,0,0));
    46     this->_bar.setForegroundTexture("maps/gui_element_background_faded.png");
     46    this->_bar.setForegroundTexture("textures/gui/gui_element_background_faded.png");
    4747    this->_bar.setForegroundColor(Color(.5, .5, .5, 1));
    4848    this->_bar.setChangedValueColor(Color::black);
  • trunk/src/world_entities/elements/glgui_radar.cc

    r9019 r10317  
    4040  void GLGuiRadar::init()
    4141  {
    42     this->setBackgroundTexture("gui_radar.png");
     42    this->setBackgroundTexture("textures/gui/gui_radar.png");
    4343
    4444    this->_updateInterval = .01f;
  • trunk/src/world_entities/elements/image_entity.cc

    r10114 r10317  
    7070  this->setBindNode(this);
    7171  this->material = new Material;
    72   this->setTexture("pictures/error_texture.png");
     72  this->setTexture("textures/error_texture.png");
    7373  this->bBillboarding = false;
    7474}
  • trunk/src/world_entities/environments/mapped_water.cc

    r10114 r10317  
    162162  mat.setDiffuseMap(refrTex, 1);
    163163  // load normal map
    164   mat.setDiffuseMap("pictures/water_normalmap.bmp", GL_TEXTURE_2D, 2);
     164  mat.setDiffuseMap("textures/water_normalmap.bmp", GL_TEXTURE_2D, 2);
    165165  // load dudv map
    166   mat.setDiffuseMap("pictures/water_dudvmap.bmp", GL_TEXTURE_2D, 3);
     166  mat.setDiffuseMap("textures/water_dudvmap.bmp", GL_TEXTURE_2D, 3);
    167167
    168168  // sets texture parameters for reflection texture
  • trunk/src/world_entities/npcs/door.cc

    r10114 r10317  
    5555  this->bOpen = false;
    5656
    57   this->loadMD2Texture("maps/doors.jpg");
     57  this->loadMD2Texture("textures/doors.jpg");
    5858  this->loadModel("models/creatures/doors.md2", this->scale);
    5959
  • trunk/src/world_entities/npcs/gate.cc

    r10114 r10317  
    7474  this->bOpen = false;
    7575
    76   this->loadMD2Texture("maps/wheel.jpg");
     76  this->loadMD2Texture("textures/wheel.jpg");
    7777  this->loadModel("models/creatures/hypergate.md2", this->scale);
    7878
  • trunk/src/world_entities/npcs/repair_station.cc

    r10114 r10317  
    7676  this->animationCurrent = REPAIR_CYCLE01;
    7777
    78   this->loadMD2Texture("maps/repairstation.jpg");
     78  this->loadMD2Texture("textures/repairstation.jpg");
    7979  this->loadModel("models/creatures/repairstation.md2", this->scale);
    8080
  • trunk/src/world_entities/particles/dot_particles.cc

    r10114 r10317  
    6464  this->registerObject(this, DotParticles::_objectList);
    6565
    66   this->material.setDiffuseMap("maps/radial-trans-noise.png");
     66  this->material.setDiffuseMap("textures/radial-trans-noise.png");
    6767}
    6868
  • trunk/src/world_entities/particles/model_particles.cc

    r10114 r10317  
    3131
    3232SHELL_COMMAND(texture, ModelParticles, setMaterialTexture)
    33 ->defaultValues("maps/evil-flower.png");
     33->defaultValues("textures/evil-flower.png");
    3434
    3535
     
    7070  this->registerObject(this, ModelParticles::_objectList);
    7171
    72   this->material.setDiffuseMap("maps/radial-trans-noise.png");
     72  this->material.setDiffuseMap("textures/radial-trans-noise.png");
    7373}
    7474
  • trunk/src/world_entities/particles/sprite_particles.cc

    r10114 r10317  
    3030
    3131SHELL_COMMAND(texture, SpriteParticles, setMaterialTexture)
    32     ->defaultValues("maps/evil-flower.png");
     32    ->defaultValues("textures/evil-flower.png");
    3333
    3434
     
    6969  this->registerObject(this, SpriteParticles::_objectList);
    7070
    71   this->material.setDiffuseMap("maps/radial-trans-noise.png");
     71  this->material.setDiffuseMap("textures/radial-trans-noise.png");
    7272}
    7373
  • trunk/src/world_entities/projectiles/boomerang_projectile.cc

    r10114 r10317  
    8787    BoomerangProjectile::trailParticles = new SpriteParticles(2000);
    8888    BoomerangProjectile::trailParticles->setName("BoomerangProjectileTrailParticles");
    89     BoomerangProjectile::trailParticles->setMaterialTexture("maps/radial-trans-noise.png");
     89    BoomerangProjectile::trailParticles->setMaterialTexture("textures/radial-trans-noise.png");
    9090    BoomerangProjectile::trailParticles->setLifeSpan(1.0, .3);
    9191    BoomerangProjectile::trailParticles->setRadius(0.0, .5);
     
    102102    BoomerangProjectile::explosionParticles = new SpriteParticles(200);
    103103    BoomerangProjectile::explosionParticles->setName("BoomerangProjectileExplosionParticles");
    104     BoomerangProjectile::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png");
     104    BoomerangProjectile::explosionParticles->setMaterialTexture("textures/radial-trans-noise.png");
    105105    BoomerangProjectile::explosionParticles->setLifeSpan(.5, .3);
    106106    BoomerangProjectile::explosionParticles->setRadius(0.0, 10);
  • trunk/src/world_entities/projectiles/guided_missile.cc

    r10114 r10317  
    8686    GuidedMissile::trailParticles = new SpriteParticles(2000);
    8787    GuidedMissile::trailParticles->setName("GuidedMissileTrailParticles");
    88     GuidedMissile::trailParticles->setMaterialTexture("maps/radial-trans-noise.png");
     88    GuidedMissile::trailParticles->setMaterialTexture("textures/radial-trans-noise.png");
    8989    GuidedMissile::trailParticles->setLifeSpan(1.0, .3);
    9090    GuidedMissile::trailParticles->setRadius(0.0, .5);
     
    101101    GuidedMissile::explosionParticles = new SpriteParticles(200);
    102102    GuidedMissile::explosionParticles->setName("GuidedMissileExplosionParticles");
    103     GuidedMissile::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png");
     103    GuidedMissile::explosionParticles->setMaterialTexture("textures/radial-trans-noise.png");
    104104    GuidedMissile::explosionParticles->setLifeSpan(.5, .3);
    105105    GuidedMissile::explosionParticles->setRadius(0.0, 10);
  • trunk/src/world_entities/projectiles/rocket.cc

    r10114 r10317  
    8080    Rocket::trailParticles = new SpriteParticles(2000);
    8181    Rocket::trailParticles->setName("RocketTrailParticles");
    82     Rocket::trailParticles->setMaterialTexture("maps/radial-trans-noise.png");
     82    Rocket::trailParticles->setMaterialTexture("textures/radial-trans-noise.png");
    8383    Rocket::trailParticles->setLifeSpan(1.0, .3);
    8484    Rocket::trailParticles->setRadius(0.0, .5);
     
    9595    Rocket::explosionParticles = new SpriteParticles(200);
    9696    Rocket::explosionParticles->setName("RocketExplosionParticles");
    97     Rocket::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png");
     97    Rocket::explosionParticles->setMaterialTexture("textures/radial-trans-noise.png");
    9898    Rocket::explosionParticles->setLifeSpan(.5, .3);
    9999    Rocket::explosionParticles->setRadius(0.0, 10);
  • trunk/src/world_entities/skysphere.cc

    r9869 r10317  
    4343  this->toList(OM_BACKGROUND);
    4444  if (fileName == NULL)
    45     this->initialize("pictures/sky-replace.jpg");
     45    this->initialize("textures/sky-replace.jpg");
    4646  else
    4747    this->initialize(fileName);
  • trunk/src/world_entities/space_ships/collision_probe.cc

    r10114 r10317  
    6565
    6666  this->toList(OM_GROUP_00);
    67   this->loadMD2Texture("maps/dr_freak.pcx");
     67  this->loadMD2Texture("textures/dr_freak.pcx");
    6868  this->loadModel("models/dr_freak.md2");
    6969
  • trunk/src/world_entities/space_ships/cruizer.cc

    r10114 r10317  
    127127  this->burstSystem->addEmitter(this->burstEmitter);
    128128  this->burstSystem->setName("SpaceShip_Burst_System");
    129   ((SpriteParticles*)this->burstSystem)->setMaterialTexture("maps/radial-trans-noise.png");
     129  ((SpriteParticles*)this->burstSystem)->setMaterialTexture("textures/radial-trans-noise.png");
    130130  this->burstSystem->setLifeSpan(1.0, .3);
    131131  this->burstSystem->setRadius(0.0, 1.5);
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10114 r10317  
    225225  this->burstSystem->addEmitter(this->burstEmitter);
    226226  this->burstSystem->setName("SpaceShip_Burst_System");
    227   ((SpriteParticles*)this->burstSystem)->setMaterialTexture("maps/radial-trans-noise.png");
     227  ((SpriteParticles*)this->burstSystem)->setMaterialTexture("textures/radial-trans-noise.png");
    228228  this->burstSystem->setLifeSpan(1.0, .3);
    229229  this->burstSystem->setRadius(0.0, 1.0);
  • trunk/src/world_entities/space_ships/spacecraft_2d.cc

    r10114 r10317  
    169169  this->burstSystem->addEmitter(this->burstEmitter);
    170170  this->burstSystem->setName("SpaceShip_Burst_System");
    171   ((SpriteParticles*)this->burstSystem)->setMaterialTexture("maps/radial-trans-noise.png");
     171  ((SpriteParticles*)this->burstSystem)->setMaterialTexture("textures/radial-trans-noise.png");
    172172  this->burstSystem->setLifeSpan(1.0, .3);
    173173  this->burstSystem->setRadius(0.0, 1.5);
  • trunk/src/world_entities/space_ships/turbine_hover.cc

    r10114 r10317  
    167167  this->burstSystem->addEmitter(this->burstEmitter[1]);
    168168  this->burstSystem->setName("SpaceShip_Burst_System");
    169   ((SpriteParticles*)this->burstSystem)->setMaterialTexture("maps/radial-trans-noise.png");
     169  ((SpriteParticles*)this->burstSystem)->setMaterialTexture("textures/radial-trans-noise.png");
    170170  this->burstSystem->setLifeSpan(1.0, .3);
    171171  this->burstSystem->setRadius(0.0, 1.5);
  • trunk/src/world_entities/weapons/aim.cc

    r9869 r10317  
    4343    this->loadParams(root);
    4444  else
    45     this->setTexture("maps/aim.png");
     45    this->setTexture("textures/aim.png");
    4646}
    4747
  • trunk/src/world_entities/weapons/crosshair.cc

    r9869 r10317  
    3737    this->loadParams(root);
    3838  else
    39     this->setTexture("maps/aim.png");
     39    this->setTexture("textures/aim.png");
    4040}
    4141
  • trunk/src/world_entities/weapons/fps_sniper_rifle.cc

    r10114 r10317  
    8484  this->material->setIllum(3);
    8585  this->material->setAmbient(1.0, 1.0, 1.0);
    86   this->material->setDiffuseMap("maps/rifle01tex.jpg");
     86  this->material->setDiffuseMap("textures/rifle01tex.jpg");
    8787
    8888  this->setStateDuration(WS_SHOOTING, .1);
     
    9595  //this->minCharge = 2;
    9696
    97   this->setActionSound(WA_SHOOT, "sound/laser.wav");
    98   this->setActionSound(WA_ACTIVATE, "sound/voices/lasers.wav");
     97  this->setActionSound(WA_SHOOT, "sounds/laser.wav");
     98  this->setActionSound(WA_ACTIVATE, "sounds/voices/lasers.wav");
    9999
    100100
  • trunk/src/world_entities/weather_effects/lightning_effect.cc

    r10114 r10317  
    263263
    264264  if (this->thunderTextureA) {
    265     this->thunderBolt[0]->setTexture("maps/thunderbA1.png");
    266     this->thunderBolt[1]->setTexture("maps/thunderbA2.png");
    267     this->thunderBolt[2]->setTexture("maps/thunderbA3.png");
    268     this->thunderBolt[3]->setTexture("maps/thunderbA4.png");
     265    this->thunderBolt[0]->setTexture("textures/thunderbA1.png");
     266    this->thunderBolt[1]->setTexture("textures/thunderbA2.png");
     267    this->thunderBolt[2]->setTexture("textures/thunderbA3.png");
     268    this->thunderBolt[3]->setTexture("textures/thunderbA4.png");
    269269  }
    270270  else {
    271     this->thunderBolt[0]->setTexture("maps/thunderbB1.png");
    272     this->thunderBolt[1]->setTexture("maps/thunderbB2.png");
    273     this->thunderBolt[2]->setTexture("maps/thunderbB3.png");
    274     this->thunderBolt[3]->setTexture("maps/thunderbB4.png");
     271    this->thunderBolt[0]->setTexture("textures/thunderbB1.png");
     272    this->thunderBolt[1]->setTexture("textures/thunderbB2.png");
     273    this->thunderBolt[2]->setTexture("textures/thunderbB3.png");
     274    this->thunderBolt[3]->setTexture("textures/thunderbB4.png");
    275275  }
    276276
  • trunk/src/world_entities/weather_effects/snow_effect.cc

    r10114 r10317  
    107107  this->snowMove = false;
    108108  this->particles = 12000;
    109   this->texture = "maps/snow_flake_01_32x32.png";
     109  this->texture = "textures/snow_flake_01_32x32.png";
    110110  this->snowLife = 8;
    111111  this->randomLife = 2;
Note: See TracChangeset for help on using the changeset viewer.