Jit.gl.mesh matrixoutput ?

Feb 21, 2012 at 5:43am

Jit.gl.mesh matrixoutput ?

In Jit.gl.mesh matrixoutput does not work, but it is somewhat insulting) I would like to use it for matrix transformations using GL (sending to the input matrix and the output is the transformed matrix, where matrixoutput with transform fishing is on). Do not plan to include matrixoutput in Jit.gl.mesh? or what I say can be done in another way (through GL)? Thanks a lot!)

Feb 21, 2012 at 8:05pm

hi ArturMihel. yes matrixoutput is not enabled for jit.gl.mesh.

we’ve considered developing an object to perform 3D transformations on a matrix of position data.
can you post a patch showing what you are trying to achieve, and we’ll be able to either point you in the right direction, or use it as inspiration for this functionality?


Feb 22, 2012 at 7:45am

I’ve already done what he wanted by jit.gl.nurbs, but I think so wasted resources on interpolation. There are a few questions, maybe this bug? please check.

  1. Ambiworld.maxpat
Feb 22, 2012 at 7:48am

below the patch which is represented as I see it. But it would be good if there was a special object to this. Thank you very much for your attention)

Feb 22, 2012 at 11:03pm

the following patch should be what you need.
you don’t need an intermediary gl.mesh, instead you can use a jit.anim.node as a parent to both the gl.multiple, and another jit.anim.node. the child jit.anim.node get’s it’s position set each frame to each of the cells of the matrix, updates itself, and outputs it’s world position (which will include any transforms set by the parent node).

keep in mind that this does not take into account the position of the camera.

let me know if you have any questions with this technique.

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.