jit.gl.multiple accessing individual cells for attr.tex_plane_s not working


    Oct 20 2015 | 2:50 pm
    Hi all I recently discovered (cause of yaniki in this thread https://cycling74.com/forums/jit-gl-multiple-replacement-for-tex_offset-tex_scale-as-glparams/) that you can control the @ttributes via attr.bla . If you have the patience to look in the thread , you'll that I was using a way to do texture displacement using jit.gl.shader .
    So I decided I would rebuilt my jit.gl.scissor patch (posted in the above link) the access to the attr.tex_plane_s attr.tex_plane_t. The problem I'm having is that I can't have access/control to individual cell with my regular setup. tex_plane_s is a vec4 and color is a vec4. As you'll see in the patch below, my setup should work because I'm using with color with no problems. for tex_plane_s and tex_plane_t: I tried many combos [jit.matrix 4 float32 1 1 1 1] /  [jit.matrix 4 float32 5 5 1 1] / [jit.matrix 4 float32 5 5 5 5] [jit.matrix 4 float32 1 1 1 1]
    Thanks so much in advance

    • Oct 20 2015 | 6:25 pm
      hi phiol, just use tex_plane_s and tex_plane_t without the attr. prefix. these are both supported gl.multiple attributes that don't require using the attr. prefix.
      i've attached a not-at-all-understandable example of using these attributes to map to a font-atlas texture, made many moons ago.
    • Oct 20 2015 | 7:05 pm
      Thanks rob ! you're patch is really great !
      Sometimes I go to far in the rabbit hole and here I am wondering about how to make things work otherwise cause I discover a new trick.
      tiny question then. Why do some need the attr.prefix ? why not make a standard ?
      anyways thanks yet again for helping learn. The more I do the more I can't spread it around ;-)
      phiol
    • Oct 20 2015 | 7:29 pm
      attr prefix is to allow access to attributes other than the parameters listed in the Discussion section of the gl.multiple ref page. not all jit.gl.* attributes will work as expected, and some (especially those that cause the object to rebuild) will greatly impact performance.
    • Oct 21 2015 | 5:42 pm
      I am doing some study of jit.gl.multiple this morning. I would like to learn everything there is to know. :-) Is there a reference that describes all of the parameters - what they mean and what they do? The general help reference describes only the usual ones - position, scale, etc..
    • Oct 22 2015 | 5:57 pm
      i recently added this tutorial link to the wiki: https://cycling74.com/wiki/index.php?title=jit.gl.multiple_Tutorial
      for information on tex_plane_s/t attributes, search the reference, and check out Jitter Tutorial 34: Using Textures.
    • Oct 24 2015 | 3:05 am
      I had always just used jit.multiple for position/scale/rotate/texture setting, like in the help file. Beyond those settings, can it be used for any and all settings applicable to the object it's multiplying?
    • Oct 24 2015 | 3:56 am
      if you look closely, in the helpfile it does more than that . you can control shader for each instance and basically , all @ttributes . search my jit.gl.scissors