Textures on OpenGL shapes


    Feb 14 2007 | 1:44 pm
    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?
    Thanks
    Rhys

    • Feb 14 2007 | 4:54 pm
      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
    • Feb 15 2007 | 3:33 pm
      Perfect wes thanks very much!