transparent OpenGL saver
I found this nifty code to make a screensaver transparent:
- (void)drawRect {
[[self window] setAlphaValue:0.0];
}
So how do you display OpenGL objects in this transparent view?
Thanks,
Iceman
- (void)drawRect {
[[self window] setAlphaValue:0.0];
}
So how do you display OpenGL objects in this transparent view?
Thanks,
Iceman
Right now, OpenGL Contexts handle their own drawing and erasing and cannot composite over other views (this is for speed reasons).
Once QuartzExtreme hits mainstream, you will be able to composite OpenGL views over other views (especially in the way you are suggesting). But right now you are out of luck.
Once QuartzExtreme hits mainstream, you will be able to composite OpenGL views over other views (especially in the way you are suggesting). But right now you are out of luck.
Yeah that's what I thought. How can the Fluid screen saver have alpha themes?
Iceman
Iceman
I don't know much about OSX, but since it's a screensaver (Quits when user does something), you might as well capture the screenbuffer and use that as a background in your app.
There should be some example code on apples site on how to do this.
Cheers,
Johan
There should be some example code on apples site on how to do this.
Cheers,
Johan
Ah so that's how they do it! Thanks.
Iceman
Iceman
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
Transparent textures | kordeul | 2 | 4,344 |
Aug 27, 2007 01:38 AM Last Post: kordeul |
|
OpenGL, SDL, and Transparent Bitmaps | RyanA | 4 | 6,518 |
Jun 26, 2006 04:26 PM Last Post: RyanA |
|
About transparent colors un textures | valle | 2 | 4,055 |
Oct 26, 2004 09:52 AM Last Post: valle |
|
"boingX" (transparent ogl) under carbon | GioFX | 2 | 4,629 |
Jun 29, 2004 09:08 AM Last Post: GioFX |
|
Blending mode for Transparent fog? | JeroMiya | 2 | 3,858 |
Jan 30, 2004 08:09 AM Last Post: MattDiamond |