Re: 回复: From China: About 2.5D transform

Maarten Bosmans <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CA+CvcKTm_nhUvQu8sLPvSuTDBT0TnGLZozjAuaOQcdotF2Mh_w@mail.gmail.com>
Note: Please keep the conversation on the mailing list. (use reply-to-all)

Also inline answering instead of top posting is preferred.

2011/10/9 唐博 <[email protected]>:
> Thank you very much!
>
> I want to transform the image rotate as the Z axis. And achieve overlook effect .I don't know whether cairo support .

This is indeed projective transform. I wouldn't call this 2.5D.

A year ago I strarted of a discussion about this.
http://lists.freedesktop.org/archives/cairo/2010-August/020458.html
Please read through it and the patches I proposed. Perhaps you would
like to put in some effort to bring projective transforms to Cairo,
that would be much appreciated.

Maarten

> ----- 原邮件 -----
> 发件人: Maarten Bosmans <[email protected]>
> 收件人: 唐博 <[email protected]>
> 抄送: "[email protected]" <[email protected]>
> 发送日期: 2011年10月9日, 星期日, 下午 6:49
> 主题: Re: [cairo] From China: About 2.5D transform
>
> 2011/10/9 唐博 <[email protected]>:
>> Good afternoon:
>>     How can I use cairo lib achieve 2.5D effect ?
>
> Can you explain what you want to achieve in more detail?
> With 2.5D I always understood having multiple flat layers stacked on
> top of eachother. This is of course exactly what Cairo does.
>
>> I want to use affine transform, but I don't know how to set the matrix's param.
>
> http://cairographics.org/manual/cairo-Transformations.html
>
> If you want a perspective transform (which is not affine), then that's
> currently not possible to do with Cairo. It is possible in pixman and
> I proposed some patches to cairo to expose that functionality, but
> those where met with complaints about the API. I haven't revisited
> those.
>
> Maarten
>
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.