[compiz] Re: [PATCH] Transparent cube

Dennis Kasprzyk onestone at beryl-project.org
Wed Apr 25 14:48:42 PDT 2007


Am Mittwoch, 25. April 2007 23:21 schrieb David Reveman:
> On Sun, 2007-04-22 at 14:22 +0300, Roi Cohen wrote:
> > Hi,
> > I re-generated the patches, so it will work now against latest git.
> > Please note that the vertical rotation bug is now fixed, due to this
> > commit:
> > http://gitweb.freedesktop.org/?p=xorg/app/compiz.git;a=commit;h=36ca8bf25
> >9d79ef5ee3630e1741a213163ebbfb6
> >
> > David, what do you think of these patches?
> > Some feedback is still appreciated.
>
> I'm interested in the transparent cube feature but I'm not very happy
> about the set of patches that is required to get this working in the
> current drawing framework. I don't want to push that additional
> complexity into the core and force all plugins to support it. It makes
> more sense to provide this functionality using an interface that allow
> you to push painting of a set of objects to an off-screen surface. Such
> an interface will likely not be added until other major drawing
> framework changes are in place but it's definitely something that should
> be added eventually.
>
I don't see a reason to do this with offscreen rendering. This still wouldn't 
solve the problem that windows have to be painted in the reversed order to 
make the faces in the background look right. Another disadvantage would be 
that transparent cube would be only supported on cards that have offscreen 
rendering support (fbo's). The only advantage would be be that we wouldn't 
need to redraw each face on each repaint. Correct me If I'm wrong here.

> So, I'm not interested in adding transparent cube support to the cube
> plugin I maintain until there's a more appropriate way to do it.
>
> I'm sure the transparent cube feature is popular and there's an interest
> in having it available today. There's no nice solution to this but you
> should be able to create a plugin that is loaded before all other
> plugins and implement the same screen painting solution as what's
> provide with your patch to the core.
>
> - David
>
> _______________________________________________
> compiz mailing list
> compiz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz



More information about the compiz mailing list