Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aquis

macrumors member
Original poster
Aug 7, 2007
63
0
Staffordshire, UK
I have two QCViews in my window, one on top of the other. The one in the foreground is mostly transparent, whilst the one in the background is solid. To keep the one in the foreground transparent, I had to set the erase colour to be transparent.

Anyway, I'm having a problem in that the foreground one seems to clear the background one at the points where they intersect, revealing the window beneath, as seen in the picture. Is there anyway in which I can render the QCView on top without the one in the background being clipped where they intersect?

QCViewCipping.png

Thanks!
 
Okay, so I changed from using QCViews to QCCompositionLayers, but, while it's "kind of" working, it still isn't:
QCCompositionLayer.png
It basically flickers crazily, and I see random user-interface elements strewn over it.

Is it simply not possible to do what I'm trying to do?
 
I'm actually in the process of converting a QCView (or actually a custom NSOpenGLView that uses a QCRenderer) into a custom QCCompositionLayer (and FWIW, layers seem to be much better so far). From my experience, QCViews/NSOpenGLViews will completely block anything below them in the same window. However I haven't dealt with stacking them. Have you tried adjusting the zPosition of the layers? Does the composition on the top need to be transparent?
 
Thanks for the suggestion; I tried adjusting the zIndex but, it either makes no difference or the background obscures the foreground! I think I might try drawing the transparent composition into a transparent window, and then positioning the window over the background window, but, I'm not holding my breath. I guess I probably will have to have a non-transparent compositions after all.
 
Never mind, I've fixed it!

The trick is, to add a "Clear" patch to the composition, but set the clear colour to be transparent (alpha=0).

Thanks for your help anyway!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.