Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6149 in orxonox.OLD for branches/avi_play/src/subprojects/importer


Ignore:
Timestamp:
Dec 17, 2005, 4:32:29 PM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: textures are displayed fast but not right

File:
1 edited

Legend:

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

    r6127 r6149  
    4242void Framework::moduleInit(int argc, char** argv)
    4343{
    44   movie = new MediaContainer("/home/david/Desktop/Face2.avi");
     44  movie = new MediaContainer(argv[2]);
    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
    6060  // add one frame from the movie
    61   seq->addFrame(movie->getNextFrame());
    62   GLuint tex;
    63   //while((tex = movie->getNextFrame()) != NULL)
    64   //  seq->addFrame(tex);
     61  //seq->addFrame(movie->getNextFrame());
     62  //GLuint tex;
     63  while(seq->addFrame(movie->getNextFrame()) != NULL)
    6564
    6665  test = new Texture(argv[1]);
     
    102101void Framework::moduleTick(float dt)
    103102{
    104   counter += dt;
     103  counter += 0.2;
    105104
    106105  seq->gotoFrame((unsigned int)counter);
Note: See TracChangeset for help on using the changeset viewer.