Textures on OpenGL shapes
I apologise if this is already discussed in the tutorials but I couldnt find any way of implementing it even after scouring them.
I'm trying to use a movie as a texture on an OpenGL shape using the texture message only I cant seem to get it to work?!
Can anyone help?
Max Patch
Copy patch and select New From Clipboard in Max.
Thanks
Rhys
Hi Rhys,
To get textures working, you need to do 2 things:
1) create a texture object
2) set the texture attribute of the object you want to texture to the
name of the texture object
In you patch, you'll want to put [jit.gl.texture foo @name mytexture]
just below jit.qt.movie and send the message "texture mytexture" to
jit.gl.gridshape.
wes
Perfect wes thanks very much!