Getting a texture reference from the ofVideoPlayer

Hello I had an old project that used a video to deform a mesh from getting a texture reference from the ofVideoPlayer.

This doesn’t seem to work anymore, My video plays but when I tried to getTexture nothing seems to come from the video.

vid1 = new ofVideoPlayer();
vid1->load("gridFilmNew.mov");
//    vid2.load("gridFilmNew.mov");

vid1->play();

ofTexture test = vid1->getTexture();
plane.mapTexCoordsFromTexture(test);

i get this error: ofTexture: getTextureData(): texture has not been allocated

It worked before using an older version and getTextureReference(); any ideas?

Thanks,
Richard

I had the same issue.
I added setUseTexture(true);, after load as below.

vid1.load("gridFilmNew.mov");
vid1.setUseTexture(true);
vid1.play();

It worked for me :slight_smile: