POV-Ray : Newsgroups : povray.general : Matrices : Re: Matrices Server Time
11 Aug 2024 11:17:31 EDT (-0400)
  Re: Matrices  
From: Charles
Date: 4 Sep 1999 14:02:33
Message: <37D15F17.77748C9D@enter.net>
Mike wrote:
> //sheared box
> 
> box {<-1, -1, -1>, <1, 1, 1>
> pigment {checker color White, color Black}
> finish {ambient .1 phong 1 phong_size 40}
> 
> rotate 45*z
> scale <2, 1, 1>
> rotate -27*z
> [...]

<g> Or, to be more precise, the final line should read...
rotate -z * atan2((sin(.25*pi)/2/cos(.25*pi)),1) * 180 / pi

Thank you. Armed with your sample POV code and a piece of
scratch paper, I was finally able to visualize what a shear
transformation was doing. Which in turn makes it easier to
make use of. :)


Charles
-- 
http://www.enter.net/~cfusner
"...Then darkness took me, and I strayed out of thought and time,
 and I wandered far on roads that I will not tell..." 
                              -The Two Towers, JRR Tolkien


Post a reply to this message

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