Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 19, 2005, 6:43:39 PM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: added ability to get the frames in a list

File:
1 edited

Legend:

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

    r6160 r6163  
    4242void Framework::moduleInit(int argc, char** argv)
    4343{
    44   movie = new MediaContainer(argv[2]);
     44    if( argc <= 1)
     45    {
     46      printf("Wrong arguments try following notations:\n");
     47      printf("./multitex [mediaFile]\n");
     48      exit(0);
     49    }
     50
     51  movie = new MediaContainer(argv[1]);
    4552
    4653  // print information about the media file
     
    5259
    5360  seq = new TextureSequence();
    54   while(seq->addFrame(movie->getNextFrame()) != NULL);
     61
     62  // get each fram individually 
     63  //while(seq->addFrame(movie->getNextFrame()) != NULL);
     64  // get a list of frames
     65  seq->addFrameList(movie->getFrameList());
    5566
    5667  test = new Texture();
    57  
    58   // ???: Only works if i set as diffuse map an image
    59   // from the avifile created with importer (frameXX.ppm)
    60   testMat->setDiffuseMap(argv[1]);
     68  testMat->setDiffuseMap("maps/radialTransparency.png");
    6169
    6270  ResourceManager::getInstance()->addImageDir("");
Note: See TracChangeset for help on using the changeset viewer.