POV-Ray : Newsgroups : povray.binaries.animations : Playing with matrix transforms : Re: Playing with matrix transforms Server Time
5 Feb 2025 15:11:37 EST (-0500)
  Re: Playing with matrix transforms  
From: Bald Eagle
Date: 25 Jan 2025 19:30:00
Message: <web.6795815028e999341f9dae3025979125@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

> That is also my usual method of playing with matrices, ha-- because I still have
> a hard time understanding how they work and how to use them.

A matrix is nothing more than a statement of the end position of each basis
vector after the transformation.

For instance, when I do a shear along x, what I do is take "y" (<0, 1, 0>) and
shit it along the x-axis.  Maybe make it become <0.5, 1, 0>.

So matrix {
1, 0, 0,
0, 1, 0,
0, 0, 1,
0, 0, 0
}

becomes

matrix {
1, 0, 0,
0.5, 1, 0,
0, 0, 1,
0, 0, 0
}

Just think of the matrix operator as

matrix {
x,
y,
z,
translate <a, b, c>
}

and your matrix transform is

matrix {
new_x,
new_y,
new_z,
translate <a, b, c>
}

https://www.youtube.com/watch?v=kYB8IZa5AuE


https://www.f-lohmueller.de/pov_tut/trans/trans_000e.htm


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.