Video textures - how to get started?

Hi,
using jMe on top of LWJGL I tried to have a video texture on my geo. Currently this has to be done using LWJGL directly.
I read that it should be possible with LWJGL but at the moment I dont know exactly where to start. Could anybody give me an advice how to solve this problem?

Thanks in advance

cheers _ deviation

Take a look at the NEHE 35 tutorial

http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35

Mik

hmm, so I tried to understand how the Pbuffer works. The way I thought it could be working, was to convert the video frame into the Pbuffer and later in the render() do something like


GL11.glBindTexture(GL11.GL_TEXTURE_2D, tex.getTextureId());
pbuffer.releaseTexImage(Pbuffer.FRONT_LEFT_BUFFER);
pbuffer.bindTexImage(Pbuffer.FRONT_LEFT_BUFFER);

May it work this way? I failed already on converting the video frame of the jame media framework into a Pbuffer. :-[

Video textures has nothing to do with Pbuffers.

Did you try with a textured quad ? Basically you should decode your avi frame into an rgb array and copy it to a texture using glCopySubTex2d(). Then you can draw the texture into your context (which may be a Pbuffer, a Display, etc.).

Yes I tried using a textured quad.
I am not that familar with GL. I already saw that glCopyTexSubImage2D() function (I think thats the one you meant, right?) in the LWJGLTextureRenderer.
But the glCopyTexSubImage2D() just reads the GL_READ_BUFFER and the camera frame isnt in the GL window. I already have the rgb array. Do you have a simple example of something similar?

big thanks in advance

… just saw that you might have meant glTexSubImage2D()

woops, yes, glTexSubImage2D() , sorry… :-[