I’m new to using jit.gen but very impressed with its power, and I’m particularly interested in its possibilities for particle systems. However, I’ve hit a stumbling block and could do with some help from somebody with more experience…
I have a particle system that is based on an 8-plane float32 matrix with dim 10000 1
I have a velocity matrix which is a 2 plane float32 matrix with dim 640 x 480
I want to process the particle system matrix using jit.gen, and have access to the velocity matrix in the same jit.gen
The documentation on matrix inputs to jit.gen is a bit confusing: from the current documentation it says
"the matrix format (planecount, type, dimensions) of the first inlet determines the matrix format for all other inputs and outputs"
and this is the behaviour I’m seeing. However, the release notes for max 7.0.2 says:
• jit.gen: mixed matrix format input"
This sounds like it solves my problem – but I can’t work out how to pipe these into the same jit.gen without the 640×480 velocity matrix being converted to the 10000×1 particle matrix format at the input stage. Am I misreading the 7.0.2 release notes? Or is there something I need to do to stop this automatic conversion from happening?
Graham – thank you so much. Such a simple solution! I hadn’t realised that the adapt flag had that effect – I wonder if the documentation could be a little clearer to help others who run into the same problem? (Or perhaps I’m just trying to find someone else to blame for my own failings….!)