Video as 3D texture?

Hi guys,
is is possible, on OF 0.06, using the 3DModelLoader addon, to map a video texture to a 3D object?

Or, can one change the textures assigned to the model, dinamically?

Is there a manual page for the 3DModelLoader addon? I saw the example app loads the object with a “,20” parameter and wondered what´s that.

Thanks.

Just peeked at the source to find that parameter to be the scale.

Oh how fortuitous! I was just about to post the exact same question. So far I’m able to load a video onto a 3d, bounce it around to music, whatever. But the threed model thing would be sick…
First, I put all the pixels into unsigned char *VideoPixels.
Then:

** glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glGenTextures(1, &texName);
glBindTexture(GL_TEXTURE_2D, texName);

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, video.width, video.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, VideoPixels);

squirrelMode.draw(texName, checkImage2);**

As you can see, I modified** ofx3DModelLoader::draw **(in ofx3DModelLoader.h)
It now gets passed an unsigned int that is the ID of the 2d texture and the videopixels.

However, ofx3dModelLoader::draw calls:

virtual void ofx3DBaseLoader::draw() (in ofx3DBaseLoader.h)

So I changed that to accept the ID of the 2d texture and the videopixels. This is where I’m stuck.
**class model3DS : public ofx3DBaseLoader{ ** (in model3DS.h) has a draw() method and I think this is what draws the actual texture.

Maybe this helps? I just can’t hack it yet.