On Sep 7, 6:15 pm, coffeecup <
philip.eisenl...@gmail.com> wrote:
> Hi all,
>
> Using Sketch just since today I am pretty impressed by the
> capabilities this offers. As many have stated already, it is a pretty
> neat tool for parametric 3D work.
>
> However, there is one part which made me wonder. Could anyone explain
> what exactly the "direct matrix" (section 3.1.3.3 in the manual)
> transforms and how the a_11, ... , a_44 operate on these objects?
>
Thanks.
Sketch, as most 3d graphics systems, uses 4d homogeneous coordinates
internally. These are transformed with 4x4 matrix multiplications.
The built-in transformation constructors (rotation, scaling,
translation) are all translated internally to such 4x4 matrices. The
matrix literal feature of Sketch allows you to enter a matrix of your
own choice directly. There are not many cases where this is useful,
but if you do need it, you need it badly!
For more information on homogeneous transformations, see any good
computer graphics textbook. The Wikipedia article on this topic is
not bad, though most of the examples are in 2d (with 3x3 matrices)
rather than 3d (wirh 4x4).
http://en.wikipedia.org/wiki/Transformation_matrix