jit.unpack 1 @jump 3


    Jan 22 2019 | 10:42 pm
    Hi I am just trying to make sure I am getting what this means. it is coming from a jit.gl.gridshape. since gridshape can give 12 planes, and I only need the first 3, this is apparently the syntax : "jit.unpack 1 @jump 3" . so why is it not jit.unpack 3? I guess all three of the planes are essentially not being unpacked but instead separated as a unit from the others and coming out as one, as if already packed? am I to assume jump means to take the argument number and move that many out?

    • Jan 24 2019 | 7:47 pm
      "jit.unpack 1 @jump 3" . so why is it not jit.unpack 3?
      good question ...i'm guessing it's because matrices can be multidimensional in different ways and this type of syntax allows for more specificity in all cases
      I guess all three of the planes are essentially not being unpacked but instead separated as a unit from the others and coming out as one, as if already packed?
      ya, when you combine this with the '@offset' attribute, it starts to make more sense because it allows you to separate out just the planar information you want for specific purposes, i found it best explained in this video: https://www.youtube.com/watch?v=_OC9HOYtsyI
      am I to assume jump means to take the argument number and move that many out?
      yes, exactly('that many out' meaning: that many 'planes')
    • Jan 24 2019 | 8:01 pm
      thank you alien friend
    • Jan 24 2019 | 10:53 pm
      πŸ––πŸ‘½πŸ‘