W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2011

[css shaders] sorting?

From: Gregg Tavares (wrk) <gman@google.com>
Date: Fri, 14 Oct 2011 19:52:52 -0700
Message-ID: <CAKZ+BNpq-x+VZdjtSGQExRUxfpFBVSDyUBUPAK5c=jWH_p7zNg@mail.gmail.com>
To: "public-fx@w3.org" <public-fx@w3.org>
Just curious, How does the "Flipbook" sample on this page work?

The still image before you start playing the video shows approx 9 cards,
each warpped, each casting shadows on the cards below it.

To draw that correctly requires sorting the cards to make sure the card that
appears on top is drawn last. Sorting is currently not defined in 3D css. It
gets even harder through with CSS shaders. Correct sorting would require
knowing at a minimum the extents of the changes to the geometry the CSS
shader applied to the each element's plane mesh.

It would also appear to require stencil buffers or render targets unless
there are actually a elements for each card (one for the card, one for the
shadow) but that makes the sorting even more tricky

Is there something in the proposal for how this is supposed to work?

Is the demo using some other interesting technique?
Received on Saturday, 15 October 2011 02:53:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:39 UTC