Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 19, 2005, 12:43:51 AM (19 years ago)
Author:
hdavid
Message:

branches/avi_play: frames are displayed correct and fast…took me only 3 days to find out that the only faut was wrong number in the SDL_CreateRGBSurfaceFrom call :-/

Location:
branches/avi_play/src/subprojects/importer
Files:
2 edited

Legend:

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

    r6127 r6160  
    4040  SDL_Delay(1000);
    4141
    42   // get the frame and save it as an image
    43   //while(movie->getNextFrame() != NULL);       
    44 
    4542}
    4643
     
    6057void Framework::moduleTick(float dt)
    6158{
    62   //while(movie->getNextFrame() != NULL);
    63   //  movie->saveCurrentFrame();       
     59  while(movie->getNextFrame() != NULL);
     60    movie->saveCurrentFrame(); 
    6461}
    6562
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6149 r6160  
    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  while(seq->addFrame(movie->getNextFrame()) != NULL);
    5955
    60   // add one frame from the movie
    61   //seq->addFrame(movie->getNextFrame());
    62   //GLuint tex;
    63   while(seq->addFrame(movie->getNextFrame()) != NULL)
    64 
    65   test = new Texture(argv[1]);
     56  test = new Texture();
     57 
     58  // ???: Only works if i set as diffuse map an image
     59  // from the avifile created with importer (frameXX.ppm)
    6660  testMat->setDiffuseMap(argv[1]);
    6761
Note: See TracChangeset for help on using the changeset viewer.