Forums > Jitter

jit.gl.multiple and jit.gl.model animation parameters control with matrices


JMC
February 25, 2014 | 6:18 am

Hello,

I want to control animation parameters of individual instances of a jit.gl.multiple of model.

Is there a way to declare the following parameters (in fact messages) in gl_params, in order to control them with matrices: animenable, animloop, animlooppoints, animrate, animtime, animweight ?

More generally, within jit.gl.multiple, is it possible to create an inlet to send any message using a matrix, as it can be done for attributes (using attr.xxx) and shader parameters (using shader.xxxx)?

If it’s not possible, I think this could be considered as a feature request.

The following exemple do not work:

<code>

– Pasted Max Patch, click to expand. –

</code>

Thanks,

Jean-Michel


February 25, 2014 | 10:56 am

hello jean-michel.

this is not currently possible, and is not really in the scope of gl.multiple.

gl.multiple is ideal for multiple instances because it does not make multiple copies of the object, but instead draws a single object multiple times per frame.

in order to fulfill your request, there would need to be multiple copies of the gl.model, and efficiency gains would be lost.

your best bet is to create something with JS or poly~


Viewing 2 posts - 1 through 2 (of 2 total)