Question about jit.gl.texture.


    Mar 25 2012 | 1:33 am
    I'm working on a patch where I basically am texturing a bunch of hexagons with the input from my webcam.
    I'm just wondering if it's possible to texture the hexagons in such a way that they don't wrap around the hexagons but instead I can just see the input straight on.
    Thanks!

    • Mar 25 2012 | 1:54 am
      it's possible, but you'll have to remap the texture coordinates somehow. You can do this one of 2 ways:
      1) use jit.gl.gridshape @matrixoutput 1 and send the vertices to a mesh along with custom texture coordinates 2) use a shader (jit.gl.shader) to remap the texture coordinates on the graphics card
    • Mar 25 2012 | 2:01 am
      I don't know if this is of use but one of the jitter recipes from back when was doing something like this... may be of use (pretty sure it doesn't use multiple though).
    • Mar 28 2012 | 6:52 am
      Hey thanks for all your help guys. I finally figured out the ins and outs of texture mapping and came up with a pretty simple solution.
      Hope this helps out the next weary traveler.