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

Sep 13, 2011 at 10:58pm

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.

[attachment=170841,2625]

Attachments:
  1. starextendpoints.jpg
#58883
Sep 14, 2011 at 1:59pm

Would jit.gl.sketch do it for ya?

– Pasted Max Patch, click to expand. –
#211614
Sep 14, 2011 at 4:57pm

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.

#211615

You must be logged in to reply to this topic.