How to Map Video Texture to Mesh?


    Jan 20 2017 | 7:28 am
    Hi - I am using jit.glmesh to create points whose position is determined by jit.bfg. I would like to map a video, whereby the pixels of the video determine the colors for each point. I cannot seem to figure out how to do this. I am currently using jit.gl.texture, and it seems only 4 pixels get mapped to the entirety of jit.gl.mesh. I searched the forums for other such problems, and it seems a number of people have had this problem but no one has posted a simple method of mapping a texture to jit.gl.mesh (as far as I've found). Please find my patch below. Much thanks for your help!

    • Jan 20 2017 | 6:24 pm
      you need to give your gl.mesh some texture coordinates. jit.gencoord is your friend for that.
      also, you were sending a 3D matrix to jit.gl.texture, which creates a 3D texture, which is treated differently from a 2D texture.
    • Jan 22 2017 | 2:17 am
      great! thanks Rob :-)