There isn't an explicit curved line patch, but you could try a couple things:
GLTools has a spline patch that might do what you want. It's a bit difficult to work with sometimes though, since it's only got one somewhat hard-to-use interpolation method at the moment.
You could also try using several Line patches inside an iterator, and have some math generate the curve. This is the most portable way to do it.
There are some people working on cocoa drawing patches, but I've not seen any that are fully feature-complete yet.
Probably totally not what you're after, but you can use an accumulator plus mouse input moving some kind of shape to make a basic paint tool. Then you can draw lines or whatever else freehand. I've been working on a paint tool with QC lately, it works really well.
You could also do the same thing, but use some kind of math input or whatever else to move the brush and draw the lines.
I think it was Ian Grant that e-mailed me a beta a month or two ago; it drew cocoa rounded rectangles with various parameters. He said he was working on some other prims as well. Not sure how far that got though, since he mentioned not being a programmer...
Kineme GL Tools patch. It was a GL Spline patch that might be just what you're after.
alx
Quartz Composer Blog: http://machinesdontcare.wordpress.com
Music Site: http://www.toneburst.net
There isn't an explicit curved line patch, but you could try a couple things:
GLTools has a spline patch that might do what you want. It's a bit difficult to work with sometimes though, since it's only got one somewhat hard-to-use interpolation method at the moment.
You could also try using several Line patches inside an iterator, and have some math generate the curve. This is the most portable way to do it.
There are some people working on cocoa drawing patches, but I've not seen any that are fully feature-complete yet.
Probably totally not what you're after, but you can use an accumulator plus mouse input moving some kind of shape to make a basic paint tool. Then you can draw lines or whatever else freehand. I've been working on a paint tool with QC lately, it works really well.
You could also do the same thing, but use some kind of math input or whatever else to move the brush and draw the lines.
thanks! i think the GLs spline works fine for my project.
http://www.vimeo.com/user423770 www.prackgraphix.com
who? where? i'm about to start a vector drawing patch...
toby
I think it was Ian Grant that e-mailed me a beta a month or two ago; it drew cocoa rounded rectangles with various parameters. He said he was working on some other prims as well. Not sure how far that got though, since he mentioned not being a programmer...
...and i was just going to drop him a line, now that i'm back from http://createdigitalmotion.com/2008/04/22/nodemappingvisionr/