Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10341 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 24, 2007, 5:42:01 PM (18 years ago)
Author:
gfilip
Message:

blackscreen light

File:
1 edited

Legend:

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

    r10339 r10341  
    7070
    7171  this->material = new Material();
    72   this->material->setDiffuseMap("maps/black.png");
    73  // this->material->setIllum(3);
    74  // this->material->setTransparency(0.6);
    75   //this->material->setDiffuse(0,0,0);
     72  this->material->setDiffuse(0,0,0);
    7673  this->material->setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    77  // this->material->setSpecular(0.0,0.0,0.0);
    78  // this->material->setAmbient(1, 1, 1);
    7974
    8075  i=1;
     
    9691void blackscreen::draw() const
    9792{
    98 //   if(!mediaLoaded)
    99 //     false;
    100 
    10193  glPushAttrib(GL_ENABLE_BIT);
    10294  glDisable(GL_LIGHTING);
    103 //   glDisable(GL_BLEND);
    104 //
    105 //   glEnable(GL_TEXTURE_2D);
    106 //   glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
    107 
    10895  glPushMatrix();
    109  /* glTranslatef (this->getAbsCoor ().x,
    110                 this->getAbsCoor ().y,
    111                 this->getAbsCoor ().z);
    112   glRotatef(axis, 0.0f, 1.0f, 0.0f);*/
    113 //PRINTF(0)("axis: %f\n", axis);
    114 glEnable(GL_BLEND);     // Turn Blending On
    115 //lDisable(GL_ALPHA_TEST);
    116 
    117 //
    118 //  Coord schould depend on CameraTarget
    119 //
    120 //
    121 //
    122 
    123 //glColor4f(0, 0, 0, i);
     96  glEnable(GL_BLEND);   // Turn Blending On
    12497
    12598this->material->setTransparency(i);
     
    135108  glVertex3f(State::getCameraNode()->getAbsCoorX()+3, State::getCameraNode()->getAbsCoorY()+100.0f,
    136109             State::getCameraNode()->getAbsCoorZ()-100.0f);
    137 
    138 
    139 /* glBegin(GL_QUADS);
    140 glVertex3f(0,-100.0f,-100.0f);
    141 glVertex3f(0,-100.0f,+100.0f);
    142 glVertex3f(0,+100.0f,+100.0f);
    143 glVertex3f(0,+100.0f,-100.0f);
    144 */
    145 
    146110
    147111  glEnd();
Note: See TracChangeset for help on using the changeset viewer.