On Wed, 23 Nov 2011 00:54:01 -0200 Gustavo Sverzut Barbieri
<[email protected]> said:

> Why? That was the way dropshadow worked and I always disliked it. The
> shadows over other windows help to define who is on top and the borders
> without requiring large visuals

agreed. you dont STRICTLY want only shadows on desktop bg. the compositor as it
does now is much better than that - but it's not perfect. the right way is to
have varying shadow distances/levels/blurs. this means you cast a shadow on
every "object" there - but simply how blurry it is and how far away from the
object that casts the shadow depends on how far bellow that object the target
shadow is - eg is it 1 object below, 2, 3, 4, 5? the further down, the further
the shadow. the best thing to do is to have the top and bottom most objects
define an interval. shadows are cast t different distances and blurs based on
where the target falls in that interval. is it at the bottom? (lets say shadow
== 1.0) then it's 20 pixels from the window creating the shadow with blue of
20. if its shadowing an object half way in between top window and bg, then its
at shadow == 0.5 - so then its 10 pixels away with blur 10 ... etc - so the
further away windows are in stacking the further away the shadow is cast. this
is what actually happens in real life and this is a helpful hint visually as to
the stacking of windows. this is probably as good as it can get in a 2d ui,
BUT... to do this for only rectangular targets (target being where a shadow is
cast onto) is possible now by simply creating 1 shadow object per level you
support (0.0 -> 1.0 - i'd suggest just supporting like 5, 10 or 20 discrete
levels in this interval) and then per level, 1 obj per possible target at that
level, then clipping each shadow obj to a rect that matches the target. move
shadow objects appropriately and clipping will make it look like they case
shadows realistically. this works as long as our targets are rectangles. themes
like detorious already break this with rounded corners and thus we need mask
based clipping for it to work. :)

> On Tuesday, November 22, 2011, Leif Middelschulte <
> [email protected]> wrote:
> > Hello everyone.
> >
> > I'd like to modify e's comp module in a way that shadows (of all
> > windows, including shelves) are below every window except desktop
> > background.
> >
> > I tried to set the layer of shadows and their window contents, but
> > that didn't work out as expected. I guess owed to the fact that the
> > window content is swallowed in the shadow's edje?
> >
> > I would appreciate any answers that point me in the direction to go.
> > As I see it right now, I'd have to chop out the swallow and add resize
> > and move callbacks.
> >
> > --
> > Leif
> >
> >
> ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure
> > contains a definitive record of customers, application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-novd2d
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> -- 
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: [email protected]
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to