Wow, seems complicated. I'm going to have to learn Obj-C/Cocoa or settle with a Flash/Flex AIR app. I can't believe accessing data sources/databases isn't built into QC. I'm using Sedna Presenter for digital signage and the idea was to have a quartz composite that reads some data from a db and displays it with a nice effect to catch the audience's attention but I guess I could settle with Flash as it is supported as well. Too bad QC isn't built to compete against Flash, and with better ease of use. It would be killer. One language for Mac, iPhone and Interactive Development (Flash/Silverlight) would be great! Now if only Apple had a server side scripting language. Or maybe Perl 6 accessing the necessary frameworks would do the trick vs Obj-C. Similar to MacRuby, but in this case a better language in Perl 6. -Juan Begin forwarded message: From: Christopher Wright <email@hidden> Date: November 24, 2009 2:37:39 PM EST To: Zheng Qin <email@hidden> Cc: email@hidden, email@hidden Subject: Re: Quartz Composer Data Sources/SQLite > quoted text Begin forwarded message: From: Zheng Qin <email@hidden> Date: November 24, 2009 2:31:39 PM EST To: email@hidden Cc: email@hidden Subject: Re: Quartz Composer Data Sources/SQLite Try /Developer/Examples/Quartz Composer/Plugins/SQLiteQuery. It might be what you want. Zheng On Nov 24, 2009, at 11:27 AM, email@hidden wrote: > quoted text [...] Begin forwarded message: From: Christopher Wright <email@hidden> Date: November 24, 2009 2:31:15 PM EST To: email@hidden Cc: email@hidden Subject: Re: Quartz Composer Data Sources/SQLite > quoted text [...]]]>
[...] Good call, Zheng :) Juan, if you're on Snow Leopard that folder may not be available -- if that's the case, you can get the plugin source here: http://developer.apple.com/mac/library/samplecode/SQLiteQuery/ -- [ christopher wright ] email@hidden http://kineme. [...]]]>
Try /Developer/Examples/Quartz Composer/Plugins/SQLiteQuery. It might be what you want. Zheng On Nov 24, 2009, at 11:27 AM, email@hidden wrote: [...]]]>
[...] There's no native support for SQLite in QC. So you'll either have to have a custom application handle the SQLite stuff (and provide the data to QC), or write a custom plugin that can access a SQLite database. Displaying it accordingly depends upon the structure/contents of the [...]]]>
Hi, I'm trying to create a Quartz Composition that reads data from SQLite then displays it accordingly. How would I go about accomplishing this? Thanks, Juan]]>
I stand multiply corrected ;) a|x [...]]]>
[...]]]>
[...]
First: Absolutely do not use == with floats (it doesn't do what you
think it does/won't work reliably/will make you ask more questions on
the mailing list etc ;)
Use Integers if you're going to use ==, otherwise use <, >, <=, >=.
next up, to get more than 2 shapes, you need to nest conditionals like
this:
vec3 functionShape(in float theta,in float phi)
{
vec3 qSphere;
qSphere.x = sin(phi) * cos(theta);
qSphere.y = cos(phi);
qSphere.z = sin(phi) * sin(theta);
vec3 qTorus;
qTorus.x = radio * cos(theta);
qTorus.y = largo * cos(phi);
qTorus.z = radio * sin(theta);
vec3 qSquare;
qSquare.x = radio * cos(theta);
qSquare.y = largo * cos(phi);
qSquare.z = radio * r * sin(theta);
return (SphereTorusSquare == 0) ? qSphere : (SphereTorusSquare ==
1) ? qTorus : qSquare;
}
(Note: I've renamed Spheretorus to SphereTorusSquare, and it's now an
uniform int, where 0 means sphere, 1 means torus, and 2 (or anything
other than 0 or 1 really) means square.)
You can keep following that pattern (adding a conditional to evaluate
as the last expression) to add more.
--
[ christopher wright ]
email@hidden
http://kineme.net/
]]>You might like 'SuperShape' based formulas. They are a bit more intense math wise, but have a super wide variation of output. Alex/Toneburst has one I recall on his site. http://machinesdontcare.wordpress.com/2008/02/21/supershapes-in-quartz-composer/ :) On Nov 23, 2009, at 3:44 PM, Oscar Font wrote: > quoted text
]]>Hello List! I would like to add more shapes to this function in GLSL. I found in one composition from Toneburst that he used ' return (SphereTorus == 0.0) ? qSphere : qTorus; ' to choose from diferent equations but now I would like to add a third and forth equation but my logical thoughts aren't working. so I would just add ':' as you see in this example. So my question is how can I add more than two equations?
vec3 functionShape(in float theta,in float phi) { Â Â Â Â Â Â vec3 qSphere; Â Â Â qSphere.x = sin(phi) * cos(theta); Â Â Â qSphere.y = cos(phi); Â Â Â qSphere.z = sin(phi) * sin(theta); Â Â Â Â Â Â vec3 qTorus;
   qTorus.x = radio * cos(theta);    qTorus.y = largo * cos(phi);    qTorus.z = radio * sin(theta);       vec3 qSquare;    qSquare.x = radio * cos(theta);
   qSquare.y = largo * cos(phi);    qSquare.z = radio * r * sin(theta);    return (SphereTorus == 0.0) ? qSphere : qTorus : qSquare; } Thank you!!!
]]>[...] the "problem" is largely philosophical -- polling is generally frowned upon, and in this situation there's no alternative (i.e. an incomplete/ insufficiently mature API). The actual performance implications are typically not severe (but also non-zero, which they could be were a [...]]]>
[...] ha no no, not wishing to engage in warfare either, just I'm being slow to grasp the problem with idle execution in this context. In QC, it seems likely that the rendering environment will be doing idle-time processing of its own (housekeeping recycled resources, etc), and as long as our code can correctly identify situations in which it should do nothing at all in execute: atTime: withArguments: (which it should anyway, even with ...timeModeNone or ...timeBase) the overhead will be at worst a per-idle method invocation from the renderer's own idle-time handler plus a single comparison of a boolean value (so long as that value is modified in a thread-safe way) inside our execute: atTime: withArguments:. This tiny, miniscule cost to the user seems preferable to the cost to the developer of updating the software when a future system update breaks his reliance on undocumented methods. A broader discussion of the merits of runtime-loadable code modules which conform to a strictly defined API probably would be edging towards warfare ;) On 23 Nov 2009, at 16:51, Memo Akten wrote: [...] That's the only way the public interface provides. Cheers, T]]>
[...] My personal aversion comes from the "check a flag" trick being polling (and using an ivar), and polling being lousy when it's not necessary (ditto for ivars). Whether or not the cost is "significant", if it's easy to avoid, I figure it's worth it. [...]]]>
Thanks Christopher, unfortunately it did not work. My execute just never gets called. @Tom, I haven't noticed any performance problems yet. I was just wondering if there was a 'proper' way of doing it (analogous to NSView [self setNeedsDisplay:YES]). [...]]]>
Hey Memo As long as you don't read from inputs or generate output needlessly, having execute: atTime: withArguments: called in QCPlugInTimeModeIdle should be of trivial cost, and would be the 'proper' way to do this. As far as I can tell, QCPlugInTimeModeIdle is there for exactly this sort of functionality. Have you experienced a performance hit doing it this way? I don't see the reason for your (or Christopher's, I see he just replied) aversion to it. Cheers - Tom On 23 Nov 2009, at 16:03, Memo Akten wrote: > quoted text
]]>[...] I haven't tried this myself (as the official-api has lots of lameness like this), but here's a test: [[self patch] setNeedsExecution]; where self is your QCPlugIn subclass. if you want definitions (for warning suppression etc): -(id)patch; -(void)setNeedsExection; [...]]]>
Hi All, I'm writing the pair of QC Patches as described in this thread http://www.vidvox.net/phpBB2/viewtopic.php?t=3930 To cut a long story short, I have one custom QCPatch to send data [[NSNotificationCenter defaultCenter] postNotificationName:kNotificationName object:sentObject]; [...]]]>
Excuse me if this somewhat off topic. I have been dong some work for a client using the network send and receive patches which do work over a LAN. I am not an export on UDP and multicast. My question is - using a VPN (virtual private network) would it be possible to do a UDP multi-cast between different locations not on a LAN? Thanks. Manjit Bedi]]>
QC is being integrated into the curriculum @ UMO where i am lecturing workshops on the subject. you can have a look at my QC related site to get an idea of what i have been doing with QC. http://si02.info im in the process of upgrading my server so if i exported my database correctly (finger crossed) you should be able to view on sunday night or monday depending on when you read this. here are some vimeo video files of QC projects i have been working on. i have so many this is just a few. one program i made you can look at is "splatter paint" it is in the top 100 creative applications by twitter. another interesting thing is the interactive multi-touch water which is featured at tuio.org showcases. maybe the screen saver illusion that makes you hallucinate is interesting to me at least. http://vimeo/dvjdust my si02.info site has lots of experiments source video's and what not like custom multi-touch gesturing. another really good source for QC is kineme.net besides interactivity QC can do pretty much anything a programming language like c++ or processing / java can do visually. plus once you understand the objects you can intuitively experiment with various functions on the fly as opposed to re factoring a bunch of code. so new students can quickly and easily create compositions. i like it for its rapid prototyping abilities. i have been studying QC for over a year and have a great understanding of it but the beautiful thing is it is changing always giving me the opportunity to learn new things, as there are many ways to do one thing. the hardest part of my workshops was to create an assignment that the students could work on for 2 weeks in groups. seeing that what would take 2 weeks 5 people in code could be done in QC by one person in a few hours once they understand it. so making lengthy assignment was my biggest difficulty in teaching QC. besides the interactivity QC is great for other new media things like making motion or final cut plugin's transitions, keynotes etc.. i think most of my workshop students want to make some sort of visualizer for itunes. although naturally itunes visualization isn't interactive with QC it can be meaning now that the 3rd party plugin ban has been lifted you can interact with your itunes in many many ways. if you have any questions give a shout. it is important to teach this technology as it is very intrinsic to the operating system and helps one create interest or give students a free tool that you can develop without really writing code although to juxtapose that statement if writing code is your thing than certainly you can do that as well in QC. On Nov 22, 2009, at 1:48 PM, vade wrote: This is a great thread developing. Glad you are asking and get responses. I perform live video with QC 'powered' applications, some commercial and others custom (VDMX from vidvox and my own weird tools). I also develop some free/open source plugins for Quartz Composer that extend some functionality and add some effects. My work is at http://002.vade.info for QC plugins, and http://vade.info for performances. I also echo Tobys sentiment on how Quartz differentiates itself (for better and worse (im looking at you, 10.6.2)). Good luck teaching QC :) ! On Nov 21, 2009, at 11:05 PM, Sabine Gruffat wrote: > quoted text
]]>This is a great thread developing. Glad you are asking and get responses. I perform live video with QC 'powered' applications, some commercial and others custom (VDMX from vidvox and my own weird tools). I also develop some free/open source plugins for Quartz Composer that extend some functionality and add some effects. My work is at http://002.vade.info for QC plugins, and http://vade.info for performances. I also echo Tobys sentiment on how Quartz differentiates itself (for better and worse (im looking at you, 10.6.2)). Good luck teaching QC :) ! On Nov 21, 2009, at 11:05 PM, Sabine Gruffat wrote: > quoted text
]]>Used QC for media technology for video, stills, sms, wireless printing, iphone/itouch interaction, and tv feed, all on a screen all dynamic and moving, changing to time slots. This was back under 10.4 OS X and running on AppleTVs. Currently expanding this for the latest updates in OS X 10. [...]]]>
Title: Re: quartz composer class Hello, i&#8217;ve seeing arduino but i&#8217;ve think it&#8217;s not stable and easy to use the serial protocole with quartz But i&#8217;m a beginer in quartz ;) Can you sent me a little example to receive and send data with quartz and arduino :D [...]]]>
sabine, http://tobyz.net/tobyzstuff/tags/technology/quartz-composer http://www.skynoise.net/2008/03/13/sparkin-it-up/ is an interview in which qc comes up. the clear differentiator between QC and its node based peers, in my opinion, is its integration into the operating system. [...]]]>
We use it for live video manipulation/interactivity during performances and installations. And currently we're developing an interface for a zeppelin remote controlled with brainwave interpretation. http://www.oneseconds.com Our good friends at PIPS:lab use it almost for all their live stuff as well: http://www.pipslab.org Op 22 nov 2009, om 05:05 heeft Sabine Gruffat het volgende geschreven: > quoted text
00:00:01s (dev) email@hidden ]]>Title: Re: quartz composer class hello actualy in beta test, COGE it&#8217;s a soft for VJ made with QC The developer is in the list ;) http://coge.lovqc.hu/ Also i&#8217;ve use lot of QC effect reactive with sound but i&#8217;ve not record of this :( CLS [...]]]>
Hi Sabine, we use QC as the technology basis in a Mac-based digital signage application. Other uses I know of (and that have not been mentioned here before) are video podcast production (BoinxTV), broadcast graphics/playout (ToolsOnAir) and POS (Videro). [...]]]>
Hi Sabine, I use QC together with SuperCollider and I've used it as music visualizer (other than iTunes style, more costume) and for some installations regarding Live Video and Music. I usually use the OSC send/recieve or the Quartz Compositions directly form SuperCollider (there's a class that let'S you open composition instances there and it's easier than the OSC this), but for a network then I use the OSC stuff, it's more reliable. I really love this combination, because the animation stuff in QC is pretty easy, and the musical stuff and synchronising the music to animation events it's even easier in SuperCollider. I hope it helps ;-) Best, Juan On 22.11.2009, at 05:05, Sabine Gruffat wrote: > quoted text
]]>Hi, I use it with Arduino and a I/Oserial plugin to connect some sensors and make it react to motion or buttons. Sometimes in booths and exhibitions. Some for fun at home. Works also nice with network sender/receiver to communicate with other computers running "receiver" apps. [...]]]>
Hi Sabine, We use Quartz Composer to make large scale interactive software for museums, instead of more traditionally favoured IDEs such as Director or Flash. The interactivity and content-lead nature of such work is quite specific to the medium - it isn't about a performance (there is [...]]]>
[...] I use QC for visual effects in desktop software.]]>
Hi all. I am going to be teaching Quartz Composer in my Interactive Media class. Could you send me links info about artists who use QC? What are other common applications for this software other than VJ and live cinema performance? -SG Hotmail: Trusted email with powerful SPAM protection. Sign up now.
]]>Hi, So far my "own risk" solution was to replace the quartz framework (system/library/frameworks/quartz... ) for an older one I found in my time machine... more or less calculating when the patches were working fine... so I have the actual quartz composer version 4.0 (10.3. [...]]]>
Hello list, A few posts here and on Kineme.net about QC in 10.6.2 having a dramatic performance regression. I've just opened up a QC based app developed on 10.6.1 and my framerate has dropped from 60fps to 10-15fps. I have verified the cause is a regression in the QuartzComposer. [...]]]>
I'm glad I'm not the only one, I noticed my composition slowed by a large percentage after the 10.6.2 update. - Karl On Nov 17, 2009, at 2:55 AM, Juan Ayala wrote: [...]]]>
That looks pretty perfect, I'll check that out, thanks. On 2009-11-20, at 9:27 AM, Steve Mokris wrote: [...]]]>
[...] Here's an example, using Kineme3D's Parametric Surface patch: https://kineme.net/composition/smokris/Roundcube Thanks, Steve]]>
Ok I think I understand that equation, but I don't know how I'd draw that within QC On 2009-11-20, at 3:38 AM, xphere wrote: http://local.wasp.uwa.edu.au/~pbourke/geometry/superellipse/ N1 = N2 = 0.2 (aprox) 2009/11/20 Alex Drinkwater <email@hidden> [...] [...]]]>
Bevel or round a cube in Blender og SketchUp or similar. Export the mesh as a collada file (.dae). Here's a quick, rough example. By rolling your own, you won't have the native QC "cube" macro's easy controls for adding images to each surface. All the best -SW Attachment: rounded. [...]]]>
http://local.wasp.uwa.edu.au/~pbourke/geometry/superellipse/ N1 = N2 = 0.2 (aprox) 2009/11/20 Alex Drinkwater <email@hidden> [...] This email sent to email@hidden References: [...] Re: Cube with Rounded Corners Previous by thread: Re: Cube with Rounded Corners Index(es): [...]]]>
In a 3D program? a|x [...]]]>
I know this might be an odd question, but does anyone know of a way to make a 3D cube with rounded corners? Cobi]]>
Hello qcdev, OpenCL Sample Code Examples - Aurora - Music Visualizer Protocol ====================================================== This is all in relation to Aurora.qtz Creates a mesh from the Audio Spectrum data. Anyone else found that trying to create a structure from a queue of audio peak data really blows this little baby out of the water when iTunes is running? When she blows, she blows and I get the bad fluorescent bulb breakdown on my screen , sometimes followed by freeze ups. This is sometimes followed by a slow refreshing of System services, otherwise a total reboot is required :-(. Anyone actually got the Aurora bands patch [ a triplicate 3dTransform of twinned mesh renders ] working in iTunes? The Environment and Stars patches work AOK, and the composition rattles along fine in QC, but only reliably evidences non OpenCL within iTunes. A pity. Please find example items here AuroraAudio. They are slightly reworked versions of Aurora.qtz, a very interesting study example. Currently AuroraPeak works fully for me in ITunes , although I am wanting to up the Aurora Bands action, however, success was only achieved by means of queueing the Audio Peak data. AuroraSpectrum, however, doesn't produce / render a Mesh from the spectrum data. Although the spectrum data worked in the Viewer window in QC , it's a non starter for me in iTunes. I hasten to add that this is a non problem with other meshes that are not so dependent upon Audio spectrum data directly, even if they are partially fed by the data from that structure. It had to happen, as I typed this very message up, stepping lightly to avoid precipitating a crash, whilst listening to some tunes in the bg [with a spectrum dependent version of the the Aurora visualiser running in iTunes], I got this crash - long winded tailspin, from iTunes . Process: iTunes [1932] Path: /Applications/iTunes.app/Contents/MacOS/iTunes Identifier: com.apple.iTunes Version: 9.0.2 (9.0.2) Build Info: iTunes-9022501~2 Code Type: X86 (Native) Parent Process: launchd [567] Date/Time: 2009-11-19 11:56:51.641 +0000 OS Version: Mac OS X 10.6.2 (10C540) Report Version: 6 Interval Since Last Report: 342195 sec Crashes Since Last Report: 58 Per-App Interval Since Last Report: 124203 sec Per-App Crashes Since Last Report: 3 Anonymous UUID: 5480A871-6E0B-4AF4-B8DA-1E7DC47D4D1C Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: objc_msgSend() selector name: release I've snipped the massive details and the report has already wended its merry way to Cupertino. PB]]>
Thank you for confirming. There is another thread at Kineme with some similar cases: http://kineme.net/Discussion/SnowLeopard/10.6.2outsoletsrantaboutit#comment-10695 No solution so far... juan On 17 Nov 2009, at 22:20, Oliver Busch wrote: Affirmative. Extremely slow (1 fps) here, too (10.5. [...]]]>
Affirmative. Extremely slow (1 fps) here, too (10.5.8). I also remember this being fluid in earlier OS versions. On 17.11.2009, at 11:55, Juan Ayala wrote: [...]]]>
Does the "Crop Images to Visible Area" checkbox (in the billboard patch) help here? If I enable this I see steady 60 frames even with large pixel sizes easily exceeding the cards texture size limit (coming from a rendered vector PDF source in the attached file because of upload file size [...]]]>
You're likely to hit performance limits fast even using bitmaps. At 8k x 2k, you're up to 64mb per image, even with a 512mb card you'll run out of vram with under 8 images. If you absolutely need all these images at this resolution, you're going to have to be creative to get it working well. [...]]]>
PPS Oops/ Erratum: I meant that last PS to @Alex On Tue, Nov 17, 2009 at 3:02 PM, Lars Porsena <email@hidden> wrote: [...]]]>
[...] If you're re-rasterizing PDFs on the fly, the frame rate will suck -- in this case, you're going to want to zoom a bitmap. (Rasterizing at dynamic scales has terrible performance). Example composition: Attachment: scalePDF.qtz Description: application/quartzcomposer [...] [...]]]>
Thanks again, all. Before I get too deep into trying to making this work, anyone tried loading very large chunks of image-data into QC? I'm worried about performance issues, frankly. If it's not smoothly scrolling/zooming, that's something of a deal-breaker. [...]]]>
George, Yeah, I know "running the qtz in quicktime with all the mouse stuff still enabled" is a bad idea for a performance :) For a quick "does it work" on a borrowed laptop in the last 5 minutes of lunchbreak I reckon it's worth a go :) Dunno what's going on with the state restoration - I vaguely remember connecting the 'multitouch available' output to the enable input of the clear patch (just to check it was working) and probably forgot to disconnect it later. It shouldn't cause state restoration issues unless you've not got the plugin though I would think? Chris 2009/11/17 George Toledo <email@hidden>: [...]]]>