[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] pen/geometry



Robb, 
how is the latency/cpu strain using that SC/Processing method?

seems like an interesting thing to pursue......though I fear the cpu load
thing, which is already a problem for me, just in SC.....
A lot of what I'm doing (using SCTextView) is moving text around
on the screen, which seems to cause hiccups pretty quickly....
being new to all of this, I'm not sure if that's just because I've coded
badly...or if SC isn't optimised for graphics...or if it's just a cpu intensive
task, and that's why that sort of thing often gets rendered in advance.

I've been thinking that maybe OpenGL could be a cheaper route to go..??...
but I don't know much about what that would entail as far as connectivity
w/ the sc server.  I suppose it would be a matter of writing some UGens...?
(and of course there is the small issue of learning openGL....)

And, I noticed something I hadn't noticed before, thanks to Julian;
which is that Color does support alpha channels.

thanks
ck

On 03/03/2006, at 18:46, Robb Drinkwater wrote:


On Mar 3, 2006, at 8:18 PM, kubick wrote:

I'm trying to make a circle w/ blurred edges.  I

I have yet to dig into Pen... and don't have the time no to run your code and start... but I recently did something similar in Processing.
(Presented at the Chicago chapter of Dorkbot as part of a talk where graphics were being controlled from SC via OSC).

I used a half-cosine function to increase the alpha channel (transparency) to 100% radiating outwards towards to the edges of my shape.
I don't know if Pen supports alpha channels, but you can prolly twiddle the math so that the final RGB values are the same as your background color for an equal effect.
I used a cosine vs. a linear function because linearly (say going evenly from 0 to 255) results in a shape that mostly matches the background color with only a little solid color in the center, whereas a cosine 'ramps up' quickly from the background color to the solid color... resulting in a shape that looks 'fuzzy' around the edges.

Good luck

::-:: ::-:: ::-::-::-:: ::-:: ::-::-::-:: ::-:: ::-::
Robb Drinkwater
::-:: ::-:: ::-::-::-:: ::-:: ::-::-::-:: ::-:: ::-:: 

_______________________________________________
sc-users mailing list