Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10212 in orxonox.OLD


Ignore:
Timestamp:
Jan 10, 2007, 2:37:52 PM (13 years ago)
Author:
gfilip
Message:

blackscreen troubles

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

Legend:

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

    r10210 r10212  
    2828CREATE_FACTORY(blackscreen);
    2929
    30 float i=0;
    31 bool state=1;
     30
    3231
    3332/**
     
    3736{
    3837  this->init();
     38  i=0;
     39  state=1;
    3940}
    4041
  • branches/camera/src/world_entities/blackscreen.h

    r10210 r10212  
    1313
    1414  private:
    15 
     15    float i;
     16    bool state;
    1617    Material*       material;
    1718
  • branches/camera/src/world_entities/test_entity.cc

    r10065 r10212  
    7474  this->toList(OM_GROUP_00);
    7575
    76   this->material = new Material();
     76  /*this->material = new Material();
    7777  this->material->setIllum(3);
    7878  this->material->setDiffuse(1.0,1.0,1.0);
    7979  this->material->setSpecular(0.0,0.0,0.0);
    8080  this->material->setAmbient(1.0, 1.0, 1.0);
    81   this->material->setDiffuseMap("maps/TE2.tga");
     81  this->material->setDiffuseMap("maps/TE2.tga");*/
    8282}
    8383
     
    9797//     false;
    9898
    99   glPushAttrib(GL_ENABLE_BIT);
    100   glDisable(GL_LIGHTING);
     99//  glPushAttrib(GL_ENABLE_BIT);
     100//  glDisable(GL_LIGHTING);
    101101//   glDisable(GL_BLEND);
    102102//
     
    104104//   glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
    105105
    106   glPushMatrix();
     106//  glPushMatrix();
    107107 /* glTranslatef (this->getAbsCoor ().x,
    108108                this->getAbsCoor ().y,
     
    110110  glRotatef(axis, 0.0f, 1.0f, 0.0f);*/
    111111//PRINTF(0)("axis: %f\n", axis);
    112 glEnable(GL_BLEND);     // Turn Blending On
     112//glEnable(GL_BLEND);   // Turn Blending On
    113113
    114114
    115115
    116 glColor4f(0, 0, 0, i);
     116//glColor4f(0, 0, 0, i);
    117117
    118   glBegin(GL_QUADS);
    119     glVertex3f(-1.0f, -100.0f, -100.0f);
     118//  glBegin(GL_QUADS);
     119//    glVertex3f(-1.0f, -100.0f, -100.0f);
    120120//     glTexCoord2f(1.0f, 1.0f);
    121     glVertex3f(-1.0f, -100.0f, 100.0f);
     121//    glVertex3f(-1.0f, -100.0f, 100.0f);
    122122//     glTexCoord2f(0.0f, 1.0f);
    123     glVertex3f(-1.0f, 100.0f, 100.0f);
     123//    glVertex3f(-1.0f, 100.0f, 100.0f);
    124124//     glTexCoord2f(0.0f, 0.0f);
    125     glVertex3f(-1.0f, 100.0f, -100.0f);
     125//    glVertex3f(-1.0f, 100.0f, -100.0f);
    126126//     glTexCoord2f(1.0f, 0.0f);
    127127
    128   glEnd();
     128//  glEnd();
    129129
    130   glPopMatrix();
    131   glPopAttrib();
     130//  glPopMatrix();
     131//  glPopAttrib();
    132132}
    133133
     
    137137void TestEntity::tick (float time)
    138138{
    139   if (state==0 && i==1)
    140     i=0;
    141   if (state==1 && i<=1)
    142     i=i+0.005;
     139//  if (state==0 && i==1)
     140//    i=0;
     141//  if (state==1 && i<=1)
     142//    i=i+0.005;
    143143}
    144144
Note: See TracChangeset for help on using the changeset viewer.