W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > November 2017

[fxtf-drafts] Perspective projection matrix seems wrong in the css-transforms-2 doc

From: David Guan via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Nov 2017 01:48:20 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issues.opened-277230451-1511833699-sysbot+gh@w3.org>
EcutDavid has just created a new issue for https://github.com/w3c/fxtf-drafts:

== Perspective projection matrix seems wrong in the css-transforms-2 doc ==
Hi, thanks for the great work!

![image](https://user-images.githubusercontent.com/10692276/33298417-5d813148-d43a-11e7-91a3-971a835102dc.png)


At https://drafts.csswg.org/css-transforms-2/#PerspectiveDefined
Giving that the order of matrix is [m11 m21 m31 m41 m12 ...]
And he perspective matrix is [1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1/d 1]

I think this matrix will transform a vector [x, y, z, 1] to [x, y, z - (1 / d), 1] instead of [x, y, z, 1 - (z / d)]
So, the "-1 / d" should be placed at m43 instead of m34.


Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/234 using your GitHub account
Received on Tuesday, 28 November 2017 01:48:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 November 2018 00:45:59 UTC