Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent background app



Hi Vade, thats awesome thanks! I think this could open the doors to a whole new generation of sexy - if not rather pointless - but sexy QC apps / animations :P

One slight hurdle is that when I open your xcode project file, I get a warning saying that the project was created with a newer version of xcode than what I have - and I have XCode 3.0 (on 10.5.2 with all software updates etc.). Do i manually need to update xcode? or are you running 10.5.3 or something?

Also I get a compile error when I try to compile it:
'Internal error occured while creating dependancy graph: ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-921/pbxcore/SpecificationTypes/XCompilerSpecification.m:267'

Dunno if its linked to the fact that the project is for a newer version of XCode or not... any ideas?

Memo (Mehmet S. Akten)

www.memo.tv

email@hidden

On 16 May 2008, at 06:55, vade wrote:

Hi Memo. Nice to see you here.

What you need to do is set up your Quartz Comp into a cocoa app which runs its QC renderer within a NSWindow that is a BorderLessWindow, and you have to set up your pixel format and openGL state yourself, and you have to make sure that:

Your window is BackingStoreBuffered, it is not opaque , its background color is [NSColor clearColor], set your glClearColor to transparent (0.0, 0.0, 0.0, 0.0) most importantly, you set your NSOpenGLContext's parameter NSOpenGLCPSurfaceOpacity to 0. Then set your window Level to kCGDesktopWindowLevel.

Here is an example project which demonstrates this. I needed to get this working, and decided to hack at it for both of us. As a bonus, I also enabled multisampled antialiasing, which makes this cube look so much sexyier. :)

to switch out to your composition you can simply replace the included cube compiosition with one named the same (mainComposition).

<TransparentBorderlessQCRenderer.zip>


Feel free to use the code however you wish - I have to say, desktop level transparent, antialiased QC comps are kind of fucking hot..... :)


On May 15, 2008, at 9:00 PM, Memo Akten wrote:
Hi all, I'm looking to see if its possible to create a cocoa app which runs a Quartz Composition but without any window chrome and transparent. I know enough about xcode / interface builder to create a cocoa app and embed a QC in it and control it. But what I would like is to create an app which is ONLY my Quartz Composition without any system chrome, and sits directly on the desktop with full transparency where the QC patch is transparent. I've looked through the documentation but couldn't find anything. Found an example DesktopRender which looks like it has potential but couldn't see where the magic actually happens. Any suggestions on the matter would be welcome,


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >transparent background app (From: Memo Akten <email@hidden>)
 >Re: transparent background app (From: vade <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.