[Pixman] About 2.5D effect

Søren Sandmann sandmann at cs.au.dk
Wed Oct 12 01:56:27 PDT 2011


唐博 <hitiger.2008 at yahoo.com.cn> writes:

> How can pixman achieve 2.5D effect, it's affine matirx is 3*3. If add
> Z axis coordinate, I found that it should apply 4*4 matrix.

You may be interested in this branch:

    http://cgit.freedesktop.org/~sandmann/pixman/log/?h=checkerboard

which contains two demo programs, one that can compute a projective
transformation that transforms one quadrilateral into another, and one
that displays a checkerboard under a projective transformation.

Note that the support for projective matrices in pixman has not been
used all that much until now, so it isn't very optimized.


Soren



More information about the Pixman mailing list