|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |