Show
Ignore:
Timestamp:
03/09/04 10:42:07 (11 years ago)
Author:
robert
Message:

Preliminary work on general support of video textures.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp

    r2693 r2793  
    113113    // open MpegImageStream 
    114114    osg::MpegImageStream* mpeg = NULL; 
    115     osg::TexMat* texMat = NULL; 
    116115    if (argc > 1) { 
    117116        mpeg = new osg::MpegImageStream(argv[1]); 
    118117        mpeg->start(); 
    119         texMat = (osg::TexMat*) mpeg->getTexMat(); 
    120     } 
     118    } 
     119 
     120    osg::TexMat* texMat = new osg::TexMat; 
     121    texMat->setMatrix(osg::Matrix::scale(mpeg->s(),-mpeg->t(),1.0f)*osg::Matrix::translate(0.0f,mpeg->t(),0.0f)); 
     122 
    121123 
    122124    // Create morphed geometry