This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15502 - Unmatrix code and 3D transforms
Summary: Unmatrix code and 3D transforms
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Fraser
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 18:53 UTC by Dirk Schulze
Modified: 2012-02-14 17:02 UTC (History)
4 users (show)

See Also:


Attachments

Description Dirk Schulze 2012-01-10 18:53:38 UTC
The current transforms and 3D transforms specification lack a code example or algorithm how to unmatrix 3d transforms.
Comment 1 Dirk Schulze 2012-01-10 23:02:39 UTC
Actually the 3D transform specification points to a code demo that isn't available anymore. It is still possible to find this document in google cache: http://webcache.googleusercontent.com/search?q=cache:I3WG5UP6WsgJ:tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c+http://tog.acm.org/GraphicsGems/gemsii/unmatrix.c

I would still suggest adding an algorithm in a separate section in the specification text directly.
Comment 2 Dirk Schulze 2012-01-20 20:19:33 UTC
The old editor's draft of FX 2D Transforms 1.0, Part 2 provides a quite clean code for decomposing 4x4 matrices. I also suggests to transform a 3x2 2D matrix into a 4x4 matrix and use the same algorithm:
http://dev.w3.org/Graphics-FX/modules/2D-transforms/spec/2DTransforms.html#sec-transform-lists-nested-transformations

I suggest adapting the section "Matrix decomposition for animation" into CSS Transforms. It just needs to specify that matrix[x][y] is a two dimensional array and if x represents the column or row.
Comment 3 Dirk Schulze 2012-02-11 16:33:03 UTC
I back ported the 3D pseudo code from FX Transforms and replaced the (partly) wrong 2D code with it.

Any dissenting votes? Can we close this bug?