Reply To: tracking moving points in openGL?

Forums > Jitter > tracking moving points in openGL?
Dec 27 2013 | 10:10 am

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. --


Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required