You should be able to achieve <i>orthogonal</i> projection matrix using shear * rotation (or vice versa, dunno) matrix, try to construct one, then use set_matrix on the context.<br><br><div class="gmail_quote">2011/10/11 Jerónimo Barraco Mármol <span dir="ltr"><<a href="mailto:jerobarraco@yahoo.com.ar">jerobarraco@yahoo.com.ar</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:12pt"><div><span>im intrested in this too, but failed to achieve it...</span></div>
<div><span>i think the only way is using the correct values as parameters when creating a matrix.<br></span></div><div> </div><div>Jerónimo Barraco Mármol<br><br></div><div><a href="http://nande.com.ar" target="_blank">http://nande.com.ar</a><br>
<a href="http://ar.linkedin.com/in/nande" target="_blank">http://ar.linkedin.com/in/nande</a><br><div style="font-size:12pt;font-family:"verdana", "helvetica", sans-serif"><div style="font-size:12pt;font-family:"times new roman", "new york", "times", serif">
<div class="hm"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold">De:</span></b> 唐博 <<a href="mailto:hitiger.2008@yahoo.com.cn" target="_blank">hitiger.2008@yahoo.com.cn</a>><br><b><span style="font-weight:bold">Para:</span></b> Maarten Bosmans <<a href="mailto:mkbosmans@gmail.com" target="_blank">mkbosmans@gmail.com</a>><br>
<b><span style="font-weight:bold">CC:</span></b> "<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a>" <<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a>><br>
<b><span style="font-weight:bold">Enviado:</span></b> martes, 11 de octubre de 2011 0:23<br><b><span style="font-weight:bold">Asunto:</span></b> [cairo] 回复: 回复: From China: About 2.5D transform<br></font></div><div><div>
</div><div class="h5"><br>Oh, it's the first time I send email to mailing list. I 'm not familiar with it, excuse me.<br><br>----- 原邮件 ----<br>发件人: Maarten Bosmans <<a href="mailto:mkbosmans@gmail.com" target="_blank">mkbosmans@gmail.com</a>><br>
收件人: 唐博 <<a href="mailto:hitiger.2008@yahoo.com.cn" target="_blank">hitiger.2008@yahoo.com.cn</a>><br><a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br>发送日期: 2011年10月10日, 星期一, 上午 2:20<br>
主题: Re: 回复: [cairo] From China: About 2.5D transform<br><br>Note: Please keep the conversation on the mailing list. (use
reply-to-all)<br><br>Also inline answering instead of top posting is preferred.<br><br>2011/10/9 唐博 <<a href="mailto:hitiger.2008@yahoo.com.cn" target="_blank">hitiger.2008@yahoo.com.cn</a>>:<br>> Thank you very much!<br>
><br>> I want to transform the image rotate as the Z axis. And achieve overlook effect .I don't know whether cairo support .<br><br>This is indeed projective transform. I wouldn't call this 2.5D.<br><br>A year ago I strarted of a discussion about this.<br>
<a href="http://lists.freedesktop.org/archives/cairo/2010-August/020458.html" target="_blank">http://lists.freedesktop.org/archives/cairo/2010-August/020458.html</a><br>Please read through it and the patches I proposed. Perhaps you would<br>
like to put in some effort to bring projective transforms to Cairo,<br>that would be much appreciated.<br><br>Maarten<br><br>> ----- 原邮件 -----<br>> 发件人: Maarten Bosmans <<a href="mailto:mkbosmans@gmail.com" target="_blank">mkbosmans@gmail.com</a>><br>
> 收件人: 唐博 <<a href="mailto:hitiger.2008@yahoo.com.cn" target="_blank">hitiger.2008@yahoo.com.cn</a>><br>> 抄送: "<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a>" <<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a>><br>
> 发送日期: 2011年10月9日, 星期日, 下午 6:49<br>> 主题: Re: [cairo] From China: About 2.5D transform<br>><br>> 2011/10/9 唐博 <<a href="mailto:hitiger.2008@yahoo.com.cn" target="_blank">hitiger.2008@yahoo.com.cn</a>>:<br>
>> Good afternoon:<br>>> How can I use cairo lib achieve 2.5D effect ?<br>><br>> Can you explain what you want to achieve in more
detail?<br>> With 2.5D I always understood having multiple flat layers stacked on<br>> top of eachother. This is of course exactly what Cairo does.<br>><br>>> I want to use affine transform, but I don't know how to set the matrix's param.<br>
><br>> <a href="http://cairographics.org/manual/cairo-Transformations.html" target="_blank">http://cairographics.org/manual/cairo-Transformations.html</a><br>><br>> If you want a perspective transform (which is not affine), then that's<br>
> currently not possible to do with Cairo. It is possible in pixman and<br>> I proposed some patches to cairo to expose that functionality, but<br>> those where met with complaints about the API. I haven't revisited<br>
> those.<br>><br>> Maarten<br>><br><br>抄送: <br><br>--<br>cairo mailing list<br><a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br><a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
<br></div></div></div></div></div></div></div><br>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><b>+</b></div>
<b>Best regards</b>, Dušan Maliarik // <font color="#999999">cell: +31646233420</font><div><b>+</b></div><br>