I wrote:
>>>       I wish someone would point out an interesting, and/or common,
>>>  real-time gui use of something besides: one specialty filter (say a
>>>  blur or a bumpmap) followed by a geometric transform (and possibly
>>>  all clipped by a mask).
>>>     
>>>       
>> in order to do cover flow-like we need:
>>    1 - projection;
>>    2 - mirror;
>>    3 - blur the mirror;
>>
>>   
>>     
>
>       That's one way, though in fact projection and mirror are
> expressible as one transform. The simplest way to do this is to
> perform the required transform and mask with a suitable gardient-
> like image (could also be defined as a single especialty filter).
>       Would you like me to send you some simple software-based
> examples of how you can do this?
>
>   

      BTW, I should've mentioned that not only with software, but
also with xrender, there are two basic, simple ways of obtaining
this for 2d images using projective transforms and masks:

1. You can create a suitable gradient-like 'fade' alpha-image to use
as a mask, and you can either first suitably mask the given image
surface (possibly scaling the mask to 'fit' the image correctly)
to a buffer image, and then use a projective transform (one which
mimics a rotation around the y axis, and inverts it) on that
resulting buffer image.

2. Or you can do it in one pass (no buffer images) by simultaneously
transforming the given image (with the y-rotation&inversion transform)
and mask with the fade using a similar transform (with possibly also
does scaling, as well as y-rotating and maybe inverts too, depends
on how you take the fade mask to be).


      There are other ways.. ones that are combos of these two, and
other specialty ones if you have more to work with.. But again, it's
a fairly simple thing to do with just one transform on the image and
a 'fade' alpha-mask image (or gradient) which may also have a transform.
With a 2d vgfx based api, it's a bit more tricky and you'd still
need support for projective transforms of images from that api or
specialty image filters in some way - which not all 2d vgfx apis have.



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to