Reply To: tracking moving points in openGL?

Rob Ramirez

posting a patch demonstrating your technique will get you more help.
without seeing the patch, i’m assuming you can’t use matrixoutput 2 of a @shape cube.

what you can do is create a jit.anim.node hierarchy, where the parent node represents the “cube” and the child nodes represent the points of the cube. when you rotate the parent node, the child node’s worldpos attribute will update appropriately. you can even use a single child anim.node and iterate the points, updating and calling getworlpos each frame.

here’s a basic patch demonstrating:


– Pasted Max Patch, click to expand. –


Dec 27, 2013 at 10:10am #276759