Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10348 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 24, 2007, 6:55:15 PM (18 years ago)
Author:
gfilip
Message:

new

Location:
branches/camera/src/world_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/blackscreen.cc

    r10343 r10348  
    129129  if (i>0)
    130130    i=i-0.005*fadeSpeed;
     131  else
     132    this->toList(OM_DEAD);
    131133}
    132134
     
    139141void  BlackScreen::toggleFade ()
    140142{
     143    this->state= !this->state;
    141144
    142     this->state= !this->state;
     145    if(state)
     146    {
     147      this->toList(OM_COMMON);
     148    }
    143149}
    144150
  • branches/camera/src/world_entities/camera.cc

    r10338 r10348  
    313313void CameraTarget::detach()
    314314{
    315   masta->setParentSoft(target);
    316   masta->getTargetNode()->setParentSoft(target);
     315  masta->setParent(target);
     316  masta->getTargetNode()->setParent(target);
    317317}
    318318
     
    325325void CameraTarget::atach(PNode* object)
    326326{
    327   masta->setParentSoft(object);
    328   masta->getTargetNode()->setParentSoft(object);
     327  masta->setParent(object);
     328  masta->getTargetNode()->setParent(object);
    329329}
    330330
  • branches/camera/src/world_entities/cameraman.cc

    r10343 r10348  
    5454  State::setCamera(currentCam, currentCam->getTarget());
    5555  OrxSound::SoundEngine::getInstance()->setListener(currentCam);
     56
    5657  this->fadeToBlack->setParent(this->currentCam);
    5758  this->fadeToBlack->setRelCoor(3., 0., 0.);
     
    6061}
    6162
    62 
    63 void CameraMan::testCam()
    64 {
    65 cameras[1]->lookAt(currentCam->getTarget());
    66 cameras[1]->setParentSoft(currentCam->getParent());
    67 }
    6863
    6964
  • branches/camera/src/world_entities/cameraman.h

    r10343 r10348  
    3030    void jumpCurrCam(int x, int y, int z);
    3131    void changeSpeed(float speed);
    32     void testCam();
    3332    void setClipRegion(float nearClip, float farClip);
    3433    void togglFade();
  • branches/camera/src/world_entities/test_entity.cc

    r10338 r10348  
    8080{
    8181  CM= State::getCameraman();
    82   CM->createCam();
    83   CM->moveCam(-300, 0, 0, 0);
     82  CM->changeCurrTarget( "BlackScreen", "fadeToBlack");
    8483}
    8584
     
    126125{
    127126
     127
     128  glColor4f(0,0,0,0);
     129  glBegin(GL_QUADS);
     130  glVertex3f(50.,-100.0f,-100.0f);
     131  glVertex3f(50., -100.0f,100.0f);
     132  glVertex3f(50., 100.0f,100.0f);
     133  glVertex3f(50., 100.0f,-100.0f);
     134
     135  glEnd();
     136
    128137}
    129138
Note: See TracChangeset for help on using the changeset viewer.