Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6112 in orxonox.OLD for branches/avi_play/src/subprojects


Ignore:
Timestamp:
Dec 14, 2005, 4:23:11 PM (19 years ago)
Author:
stefalie
Message:

branches\avi_play: OpenGL still has problems to display our texture, way too slow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6094 r6112  
    3737MediaContainer* movie;
    3838
    39 float counter = 0;
     39int counter = 0;
    4040
    4141
    4242void Framework::moduleInit(int argc, char** argv)
    4343{
    44   movie = new MediaContainer("/home/david/Desktop/Face2.avi");
     44  movie = new MediaContainer("/home/lieni/Desktop/Face2.avi");
    4545
    4646  // print information about the media file
     
    5252
    5353  seq = new TextureSequence();
    54   for (int i = 1; i < argc; i++)
    55   {
    56     seq->addFrame(argv[i]);
    57     printf("%s\n", argv[i]);
    58   }
     54  //for (int i = 1; i < argc; i++)
     55  //{
     56  //  seq->addFrame(argv[i]);
     57  //  printf("%s\n", argv[i]);
     58  //}
    5959
    60         // add one frame from the movie
    61         seq->addFrame(movie->getNextFrame());
     60  // add one frame from the movie
     61  //seq->addFrame(movie->getNextFrame());
     62  GLuint tex;
     63  while((tex = movie->getNextFrame()) != NULL)
     64    seq->addFrame(tex);
    6265
    6366  test = new Texture(argv[1]);
     
    99102void Framework::moduleTick(float dt)
    100103{
    101   counter+=dt;
     104  counter++;
    102105
    103   seq->gotoFrame((unsigned int)counter);
    104   if ((unsigned int)counter > seq->getFrameCount())
     106  seq->gotoFrame(counter);
     107
     108  if (counter > seq->getFrameCount())
    105109    counter = 0;
     110
    106111}
    107112
Note: See TracChangeset for help on using the changeset viewer.