GT Lines (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2009.10.28
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

This is an upload of a test application ( which used Quartz Builder ) that draws groups of lines. There is a bit of play with the controls (available via the menu bar, or command-I). Y-scrolling the trackpad in the automatic mode is going to control distance of lines from each other. In the non-scroll mode, the Y-scroll will work the same, while the X-scroll will move the line scene.

It's a bit of a stab at some of the line group art stuff that I tend to see in t.v ads.

Change log: 1.0-Original. 1.1-re-upload with a different opening default setting, slightly changed function on manual x-scroll.

songcarver8's picture
Re: GT Lines (Composition by gtoledo3)

Thanks for sharing. Unfortunately that's crashing for me on launch (no window appears)

Process:         GT Lines 1.1 [26455]
Path:            /Users/Keith/Downloads/GT Lines 1.1.app/Contents/MacOS/GT Lines 1.1
Identifier:      com.yourcompanyname.
Version:         ??? (1.1)
Code Type:       X86 (Native)
Parent Process:  launchd [190]
 
Date/Time:       2009-10-30 07:28:45.929 +1100
OS Version:      Mac OS X 10.6.1 (10B504)
Report Version:  6
 
Interval Since Last Report:          120839 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  8 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      D2BE096D-0EDB-40C5-987C-0418C475FF03
 
Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread
 
Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"'
*** Call stack at first throw:
(
   0   CoreFoundation                      0x96db158a __raiseError + 410
   1   libobjc.A.dylib                     0x9686ef49 objc_exception_throw + 56
   2   CoreFoundation                      0x96dfbaf1 -[NSException raise] + 17
   3   QuartzComposer                      0x98d6880a GFException + 198
   4   QuartzComposer                      0x98d6acc3 GFThrowException + 194
   5   QuartzComposer                      0x98cdaa1f -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:] + 208
   6   QuartzComposer                      0x98cd55fb -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:composition:] + 168
   7   GT Lines 1.1                        0x00005e64 0x0 + 24164
)
 
 
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation         0x96dfbb07 ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ + 7
1   libobjc.A.dylib                  0x9686ef49 objc_exception_throw + 56
2   com.yourcompanyname.             0x00005f13 0x1000 + 20243

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

Interesting. It is working for me on SL or Leopard, on Nvidia or Intel.

Thanks for letting me know. I'm going to test it some more, and try another build. I'm not sure exactly why it would do that. That message about colorspace in the error is kind of interesting, and miffs me a bit.

Do you mind me asking what kind of system you're using (gpu...obvious what software you're using, and I tested it on that build), or if you've enabled any system settings in the option preferences in QC that are non-standard?

Thanks for letting me know.

edit- yeah, I'm miffed. I'm testing now on two different systems, two different OS's and all is well. I do see something I didn't quite intend, but not a biggie, just that I left the backing transparent.

cwright's picture
Re: GT Lines (Composition by gtoledo3)

Can you do me a favor, and see if anything gets printed in the Console when it crashes? something like "retrying with alternative colorspace." ? If so, please let me know as soon as possible -- there are a small number of machines that trigger that, and I have no idea why, and no idea how to work around it.

toneburst's picture
Re: GT Lines (Composition by gtoledo3)

Works fine for me. Very nice, too :)

a|x

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

Thanks for saying that Chris... my first instinct was to write to ask if he could do that, but I got sidetracked in re-downloading what I put on the website, and re-checking on both machines.

Console messages would really be great, and maybe even a system profile. Feel free to send them to cwright, or me, whichever strikes your fancy.

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

Thanks tb, on both counts! I'm looking forward to my next version for sure.

I opened it up on my white macbook... man that thing has a hard time with high iteration counts. It was kind of sad. Next go round, I'll probably set my default amount of GL Lines lower, and let the thickness of the quads cover it up, and have it open in an audio reactive mode.

My personal like on this is the offset of the lines... it gives that fun cyber graffiti look. I was a little skeptical about getting this look, but really happy that what I imagined did work. I programmed the main part of this one away from the computer by just daydreaming about it a bit, that's for sure.

Also, those that use Y and X two finger scrolling should be rewarded by some interactivity... Y scroll always changes difference between lines, and in manual mode, X scrolling works to shift the entire scene, so that you can draw something, then push it off screen.

Last night, in one of my newer working versions with some savage tweaks and appropriate extra little png's, I was able to get things looking like I was drawing landscape on the fly.

usefuldesign.au's picture
Re: GT Lines (Composition by gtoledo3)

Thanks GT

Very nice and lots of different looks, always like that. Couldn't fathom the Queue value setting, is it active?

Works on PPC G5 with Nvidia FX5200. Fewer lines doesn't seem to speed it up much for higher-res 'drawing' of curves eg. loop-the-loop in my old box though. Wondering how much faster it views as an app than in QC editor?

Like how the GT-graf app icon is wrapped in alpha when app-switching in Finder too. That's a first (in my book).

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

The queue is definitely active. The thing that probably weirds you out about the queue is that it doesn't go back "down" from whatever value it is raised to. I haven't decided exactly if I want to have people be able to flush all of the values or if I want to line to contract from the front or back if length is changed after the queue is set.

I'm actually a bit surprised that the javascript queue doesn't contract by default, because it seems like it should. The queue is stock apple sample code... you can check it out in the mouse ribbon example in SL. It is slightly tweaked to be a bit different (the vertex creator part, and the thickness... at least I believe I wound up with the slightly thinner line version), but the queue is undisturbed.

What kind of performance do you get? Does it look smooth, or is it "jerky"? This is just the kind of thing that gets extremely variable, so I'm curious, especially from someone using PPC. I mean, I get around 30~60fps on some intense settings. Then I opened up on my white Macbook, and it was a little less impressive. Iterator/queue heavy stuff can get really taxing.

It views faster as an app than in the QC editor, 100% sure. That's one of the big plusses of Quartz Builder. The QC app is a boondoggle for performance. Just grab the Editor window while you're Viewing something, and see what I mean. Aside from that, there are many other small performance tweaks that make something compiled in Quartz Builder tend to run better and faster (notwithstanding the mystery crash described earlier in this thread... which I would really like to get cleared up).

By alpha, you mean alpha black? Interesting. Let me know...

dust's picture
Re: GT Lines (Composition by gtoledo3)

works great for me. really good performance actually very impressed, with performance. changing the queue doesn't seem to slow it down any.

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

Cool, thanks Dust.

jrs's picture
Re: GT Lines (Composition by gtoledo3)

Hi Chris or anyone else interested in this. I'm getting the same problem although with a different app (built with quartz builder 1.4)

*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"'

It works fine on my 2010 macbook pro (nvidia 330m) but crashes 80% of the time on 2 different 2010 mac mini's (nvidia 320m)

I also get the "retrying with alternative colorspace." message you mention in the console (see below for more detail)

Does anyone have any more insight into this - is it machine specific or specifically related to quartz builder? ie if I rebuild the composition into my own custom app without using quartz builder will this still happen or will it happen on these machines no matter what?

Cheers James


17/04/12 2:16:48.528 PM RightScreens: *** Terminating app due to uncaught exception 'NSGenericException', reason: '-[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"'
*** First throw call stack:
(
   0   CoreFoundation                      0x00007fff9a56bfc6 __exceptionPreprocess + 198
   1   libobjc.A.dylib                     0x00007fff8e6f3d5e objc_exception_throw + 43
   2   CoreFoundation                      0x00007fff9a5f62a9 -[NSException raise] + 9
   3   QuartzComposer                      0x00007fff9170b044 GFException + 276
   4   QuartzComposer                      0x00007fff9170cb2e GFThrowException + 279
   5   QuartzComposer                      0x00007fff916df4ed -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:] + 208
   6   QuartzComposer                      0x00007fff916da70d -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:composition:] + 142
   7   RightScreens                        0x0000000100004374 RightScreens + 17268
)
17/04/12 2:16:48.528 PM [0x0-0x1a01a].com.yourcompanyname.RightScreens: terminate called throwing an exception
17/04/12 2:16:49.783 PM com.apple.launchd.peruser.501: ([0x0-0x1a01a].com.yourcompanyname.RightScreens[186]) Job appears to have crashed: Abort trap: 6
17/04/12 2:16:50.150 PM ReportCrash: Saved crash report for RightScreens[186] version ??? (1.0) to /Users/oph/Library/Logs/DiagnosticReports/RightScreens_2012-04-17-141650_ContributeRight.crash
17/04/12 2:17:30.442 PM RightScreens: retrying with alternative colorspace.
17/04/12 2:17:30.466 PM RightScreens: An uncaught exception was raised
17/04/12 2:17:30.467 PM RightScreens: -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"
17/04/12 2:17:30.468 PM RightScreens: (
   0   CoreFoundation                      0x00007fff9a56bfc6 __exceptionPreprocess + 198
   1   libobjc.A.dylib                     0x00007fff8e6f3d5e objc_exception_throw + 43
   2   CoreFoundation                      0x00007fff9a5f62a9 -[NSException raise] + 9
   3   QuartzComposer                      0x00007fff9170b044 GFException + 276
   4   QuartzComposer                      0x00007fff9170cb2e GFThrowException + 279
   5   QuartzComposer                      0x00007fff916df4ed -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:] + 208
   6   QuartzComposer                      0x00007fff916da70d -[QCRenderer initWithCGLContext:pixelFormat:colorSpace:composition:] + 142
   7   RightScreens                        0x0000000100004374 RightScreens + 17268
)

jrs's picture
Re: GT Lines (Composition by gtoledo3)

Chris replied to this on the apple dev list - the solution is to change the color profile in the display preferences

gtoledo3's picture
Re: GT Lines (Composition by gtoledo3)

I'm glad this was figured out - you're not the first person that's replied about this happening.