[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: Idea for conflicts with shadow effect
From:       Martin Graesslin <ubuntu () martin-graesslin ! com>
Date:       2008-08-08 7:52:49
Message-ID: 200808080952.55818.ubuntu () martin-graesslin ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Am Freitag, 8. August 2008 09:44:16 schrieb Lucas Murray:
> On Sat, Jul 12, 2008 at 7:39 PM, Martin Graesslin
>
> <ubuntu@martin-graesslin.com> wrote:
> > On Saturday 12 July 2008 04:47:02 Lucas Murray wrote:
> >> Is there any way of efficiently creating shadows with a shader? Doing
> >> so may also allow non-rectangular windows.
> >
> > Yes that would be possible, but I don't think it is a good idea as
> > shaders are not supported by all hardware. For example my notebook (Ati)
> > does not support shaders. And shadows should also be possible with
> > XRender.
> >
> > Btw I like Lubos' suggestion with introducing a new WindowQuadType.
> > That's a very elegant way. And with enough quads it should be possible to
> > have non- rectangular shows as well, although it could be complicated.
>
> It does not work--there is simply no way to efficiently use a
> region-based shadow for shaped windows. It does work though, it just
> takes the framerate down to <1fps due to the massive amount of
> processing required to determine which quads are on the outside of the
> shape and try to expand those edges without overlapping other expanded
> shadow quads in real-time. The outer-edge data cannot be cached either
> as if you activate an effect that creates new edges you need to once
> again recalculate everything once per frame anyway.
>
> I think the only way to allow shaped windows (Compiz hasn't been able
> to do it either IIRC) is to rely on a shader and then have a fallback
> that works off a merge of Martin's quad type patch and my quad split
> reason patch.
Yes I think for shaped windows a shader will be required. At least I thought 
about it when thinking of solutions for the shadow problem. But I fear that 
such a shader will become difficult to implement as well.
> _______________________________________________
> kwin mailing list
> kwin@kde.org
> https://mail.kde.org/mailman/listinfo/kwin


["signature.asc" (application/pgp-signature)]

_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic