Changeset 6163 in orxonox.OLD for branches/avi_play/src/subprojects/importer
- Timestamp:
- Dec 19, 2005, 6:43:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/multitex.cc
r6160 r6163 42 42 void Framework::moduleInit(int argc, char** argv) 43 43 { 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]); 45 52 46 53 // print information about the media file … … 52 59 53 60 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()); 55 66 56 67 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"); 61 69 62 70 ResourceManager::getInstance()->addImageDir("");
Note: See TracChangeset
for help on using the changeset viewer.