Forums > Jitter

Problems creating and animating a simple polygon shape with jit.gl.mesh.

September 13, 2011 | 10:58 pm

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.

[attachment=170841,2625]

Attachments:
  1. starextendpoints.jpg

September 14, 2011 | 1:59 pm

Would jit.gl.sketch do it for ya?

– Pasted Max Patch, click to expand. –

September 14, 2011 | 4:57 pm

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.


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