Problems creating and animating a simple polygon shape with jit.gl.mesh.
I've spent days now trying to create a simple 2d stellated polygon (star shape) with jit.gl.mesh. I want to be able to independently control/animate vertices of a star shape. I've been using jit.spill to output and modify the matrix data of a circle with 8 sides (dim 9 9) from jit.gl.gridshape. Probing one cell at a time, I just can't make sense of it.
I've attached a drawing of what I'm trying to acheive. Any help would be greatly appreciated.
Would jit.gl.sketch do it for ya?
----------begin_max5_patcher---------- 711.3ocyX1sjZBCEG+Z7oHCWu0wD9zdWm9XzYmNA3rXVgDKDGscm8cugDYW6 pCDWwTmQAIIj7+7KmO.eYlmelXOz5i9J5GHOuWl44oapqAuCW64WS2mWQa0C yOWTWCbo+Cl9jvdot8uuhxKAjTffJAujJAT6F1Znef7s0LdEH0yB98FEak8s t3PqOI3xV1e.8HIy6adCUluhwK+YCjKMRN.Gn5FkpOhiVzchnNhd7v8vJzhS j87WH9GM8bZsd58+VCiV420wqyl0c3AK4.G1ol0SvPkfVTCssnEySt.SGOro aFo72a.ic66+lEdFpPhwcfHJUyFxfPYhoxSp89s0WfgStPCWs.TkyGxOS4tY CEL1+HtFXm3aHQUnLT1EPmfK0snGLVAn.hIrQG8DFODgvKcBg1PWijMrtfG0 2X0W0GRj5.Fatn6DoqiySwENH5JvjsgnOQHCFeEOsXqKyBsDNgaMPKHOKQH2 dfDDdH3RGuEjnoS544QjSbidlImuiwKD6PRZA8FlNpOXaX.EuTSlnPcBokC4 vD3FGlbVSdEnBiBtVuF77nkQ3zjOWrjoFEYgII8ftNoSboJonrrB9D0nOwDY pGGZHqLIRaWuUBZfzrjfILL3W0frQnVra8d7nkZLDHPWhINXXBD5nZwYHng1 BWaxAqXiJCgYwFGRwlPggqFSbWdzxp4sqAkXmjToilsXrboDrtJCw3EsLbXL E6RL0.7BnwIXxpxNIFenzTaHUhcjRey9UL9GeoQ85209+huVw1l7dU2mEG8t FJfVIiSkLA+nAo23NZTqXEE.+3WQrlUrQnx6dPEnGO6toshJ1FMszoRJ5NDS Da165dWJWpIrEZpCS36OIQbljzNu3QjzGBMchlHinoH2Ko6snNcwdKTUx+AU gmZUgIpReppUl+5pn9ee0hMzJD5XuM0C6aipBuBUot30Y+kFKTfZ -----------end_max5_patcher-----------
Thank you but it’s not quite what I’m after.
I really need it to be one complete shape. Adding triangles in this way will be too difficult to manage. I need to be able to present a number of these stars with varying numbers of points – each dynamically controlled/animated. If I can just isolate the vector points on a mesh to pull in and out (move x,y) I’m golden.