Forums > Jitter

Jit.gl.path orientation

December 5, 2013 | 8:10 am

Hi,

I’ve been trying to work out how to get control of the orientation of a ribbon created with jit.gl.path. The ribbon looks good, but as the path is changed, the orientation of the ribbon along its length changes too. Can anybody offer advice on how to keep the ribbon orientation static for each point along its path?

Patch attached which shows how the ribbon orientation flicks about as it is drawn.

Many thanks in advance

Tom

– Pasted Max Patch, click to expand. –

December 7, 2013 | 7:40 pm

Hey, cool patch!

I tried to fix your problem to no avail. All I can say is that the orientation value (tenth value) doesn’t seem to do anything, so that won’t help. So see if you can change the way that the other 9 values get generated…and if that doesn’t work, just accept the fact that your ribbon is a bit "special".

If you want to try a different approach altogether, check out Day 9 at the following link: http://cycling74.com/wiki/index.php?title=Physics_Patch-A-Day

Ben B. figured out how to max a 0 gravity snake, maybe you could use that principle to make a ribbon!

Good luck!


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