Some custom patches I wrote

Lango's picture

Hey everyone

I have tidied up my 2 custom patches I have been working on and want to release it to everyone.

They are called '[SW] Weighted Grid Generator' and '[SW] Weighted Grid Renderer'.

View the video for a tutorial on how it works and you can download the files here http://www.dlangford.net/content/sw-weighted-grid-generator-and-renderer.

In short, I made these patches so I can detect movement in sections of a video input.

Let me know what you think!

(The video is about 10 mins)

[SW] Weighted Grid Generator and Render Tutorial from David Langford on Vimeo.

Cheers

Lango

cwright's picture
Re: Some custom patches I wrote

Just a note, when packaging Xcode projects, you should remove the "build" directories to keep the download size down. They're auto-generated by Xcode, so you don't lose anything.

cybero's picture
Re: Some custom patches I wrote

Tried them as Patches, tried them also as Plugins, on 10.6.2, compiled to target - according to XCode - successfully - still no joy on the load in. I shall have to give these a try under Leopard and also wind back to 10.6.1, see if that makes a difference. Done - still no joy. Looks interesting in the video. I see it is meant to be a Universal Binary that is 10.5 [ and higher ?] compatible.

Wow - I thought the problem must be at my end - eventually I got the plugins to work - looking very good indeed. Wonder why I was having so much problem with them to begin with.

mfreakz's picture
Re: Some custom patches I wrote

It look nice ! Thank you for sharing your work.

Lango's picture
Re: Some custom patches I wrote

ah yeah, thanks for that. I have removed them.

Lango's picture
Re: Some custom patches I wrote

Hi Cybero

I'm not sure what is going on for you. I'm running 10.6.2 with QC 4 and have the plugins in the Quartz Composer Plug-Ins folder.

I tried using the ones I uploaded and newly built ones and they all worked. I also tried using the system library and my user's library and that worked as well.

I'll assume its for 10.5 and higher compatible, but i've just gone from the Xcode template and I haven't touched those settings.

Did anyone else have trouble with the plugins?

Lango's picture
Re: Some custom patches I wrote

Thanks mfreakz!

cybero's picture
Re: Some custom patches I wrote

Mmm, well shortly after having posted about my having tried to unsuccessfully test these plugins [ great bit of work BTW] on my G5, that machine now is in need of serious care and attention.

Won't even boot into the blue screen, no startup chime - classic power unit / memory or other similar failure.

I kind of suspect that might just be slightly related - ya' think :-).

Laugh in the face of adversity and built in obsolescence.

Am now looking to get a dual external enclosure for the G5's 2 SATA drives.

Lango , your plugins do work AOK in Leo and SL on my iMac - [at least they do now, but didn't at first - which I think is rather odd, but probably down to my having networked to and from the PPC G5 - running files from that machine's desktop] .

[Oh and probably problems in an uncleared QC cache too - only explanation I can come up with.]

Excuse me - got to put the black armband on for the G5 :-( •~

Raising a brandy my G5's memory . It's going to be missed for sure.

cybero's picture
Re: Some custom patches I wrote

I dropped your example construction into a Render in Image and fed that into Hybrid Visuals goto10_m8trace.qtz // inclusion of Core Image filter masLumaKey by Memo // and get some outstanding results - makes for a useful effect in itself, and a great adjunct to other patches.

photonal's picture
Re: Some custom patches I wrote

cool! thanks for sharing the source + plugins

cybero's picture
Re: Some custom patches I wrote

Here's what I posted about earlier in this thread

PreviewAttachmentSize
goto10_m8trace_weightedgrid.qtz.zip9 KB

jjdelorimier's picture
Re: Some custom patches I wrote

hey Ive been playing with memos web cam piano patch as well. Ive figured out how to move around objects with my fingers and what not, not very smoothly however, but was wondering can you do this sorta thing with this patch as well...can't find the x and y cordinates that are effected by the diff. frames

oh also very nice effect....play with this on audio reactive particles and some amazing results insue

cybero's picture
Re: Some custom patches I wrote

Just went back to looking at this when the PixelGrid macro smokris posted earlier today elsewhere on the Kineme site failed to render, so sought some consolation in revisiting your plugins, only to find an item hidden away in the example that allowed 3d transforms - nice :-)

Lango's picture
Re: Some custom patches I wrote

Glad it was useful!

Although I've just realized you commented on my post now, I should really read my kineme update emails more thoroughly :)

I did find a memory leak in this patch which I have fixed. I did update the one on my website but i'm not sure if it was before you would of grabbed it.

If you are still using it, you might want to switch it for the ones here -> http://code.google.com/p/swquartzcomposerpatches/. They are in the green box on the right.

Cheers

Lango

kimba23's picture
Re: Some custom patches I wrote

Hello. This is a great patch. Thanks!. Lango, How will a go about to find the coordinates where there is most movement? The iterators explain how to draw this... but the performance with those iterators is not great. So How would I get this info so I could use (for example) a particle system that "follows" the weight of the cells? I guess this is possible with javascript but I am still learning the basic of js. Thanks! Oh Another question: If I want to divide the screen in four sections-quadrants; what is the best way, using 4 smaller grid weight generatorsas 4 quadrants or just isolating the respective "cells" for each quadrant using index structures? I would think the 2nd option takes less resources, if that the case, the cell count start on the botton left? or top right of the grid? I guess i could figure out that myself :o) Thanks for the great tool! I am using it for a dance piece, and i need to give the dancer more control options.