Texture mapping 3D object with video
I am sure this has come up before, but I am finding it hard to pinpoint an exact example
in the multitude of threads that a forum search brings up.
I want to texture map a video on the a 3d object. Is there a simple example or
jitter recipe out there that demonstrates this?
Thanks,
Anthony
just set the texture attribute of the 3d object to the name attribute of a gl.texture.
alternatively, use jit.gl.material, and the diffuse_texture input.
Actually, the help file for jit.gl.texture does exactly what I need.
I can't seem to get jit.gl.texture to work when I use @matrixoutput 1, which I need to be the case for another process, what am I missing?
please post a patch demonstrating your question
what Rob said,
post a past to create a context for us to help :-)
In the mean time , to be literal (but pointless and redundant) , here is a way to see texture with @matrixoutput 1
Here is the patch I'm trying to get to work, I'm not using jit.world. I'd like the texture of the video to go over both obj files as I'm transitioning between them.
something of the sorts but with model ?
Here's a couple of simple examples:Example 35: Apply a texture to a shape in OpenGLExample 36: Display a video on a shape in OpenGL
PHIOL, Thank you for your response, I tried implementing your example with jit.gl.model and it's like the meshes are being overdrawn by the background, doesn't seem to work.
all that I've changed is in red and explained
here is a version where you resize the mushroom
PHIOL, WOW!! Thank you, I'm still catching up to the new Jit.world world. I'm working on building it out at the moment.