Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 14, 2005, 1:18:19 AM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: MediaContainer::getNextFrame() try to create a texture from a frame ←- DOES NOT WORK YET, added new function TextureSequence::addFrame(GLuint texture)

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

Legend:

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

    r6068 r6094  
    6060void Framework::moduleTick(float dt)
    6161{
    62   while(movie->getNextFrame() != NULL);
     62  while(movie->getNextFrame() != NULL)
     63    movie->saveCurrentFrame(); 
    6364}
    6465
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6068 r6094  
    2929
    3030#include "resource_manager.h"
     31#include "media_container.h"
    3132
    3233Model* obj;
     
    3435Texture* test;
    3536Material* testMat;
     37MediaContainer* movie;
    3638
    3739float counter = 0;
     
    4042void Framework::moduleInit(int argc, char** argv)
    4143{
     44  movie = new MediaContainer("/home/david/Desktop/Face2.avi");
     45
     46  // print information about the media file
     47  movie->printMediaInformation();
     48
    4249  ResourceManager::getInstance()->addImageDir("./");
    4350
     
    5057    printf("%s\n", argv[i]);
    5158  }
     59
     60        // add one frame from the movie
     61        seq->addFrame(movie->getNextFrame());
     62
    5263  test = new Texture(argv[1]);
    5364  testMat->setDiffuseMap(argv[1]);
Note: See TracChangeset for help on using the changeset viewer.