Quantcast
Viewing all articles
Browse latest Browse all 40524

Map texture from videoGrabber to ofVBOMesh/ofMesh

I'm currently using an ofPlanePrimitive as a surface upon which to draw the live video input from a ofVideoGrabber. My art piece then runs generative distortion on the plane using shaders.

I would like to run more powerful mesh distortion and things like folding, which is why I'd like to use an ofVBOMesh instead of just the plane primitive. The plane primitive has a method mapTexCoordsFromTexture(), which allows you to pipe the video frames directly to the plane.
My question is, is there a way to do this with a generic VBO mesh rather than the plane primitive? I wasn't able to find an analogous method on ofVBOMesh.


Viewing all articles
Browse latest Browse all 40524

Trending Articles