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

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