POV-Ray : Newsgroups : povray.general : Matrices : Re: Matrices Server Time
11 Aug 2024 05:14:35 EDT (-0400)
  Re: Matrices  
From: Larry Fontaine
Date: 3 Sep 1999 22:01:24
Message: <37D07BD8.78953817@isd.net>
Mike wrote:

> > Just for anybody who maybe isn't familiar with this feature...
> > You can use matrices in POV, and they're very useful because you can
> > shear (only way to do so)
>
> #include "colors.inc"
>
> camera {location <0, 3, -10> look_at 0 angle 60}
>
> light_source {<0, 5, -5> color 2*White}
>
> //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
>
> translate 2*x
> }
>
> //non-sheared box
>
> box {<-1, -1, -1>, <1, 1, 1>
> pigment {checker color Black, color White}
> finish {ambient .1 phong 1 phong_size 40}
>
> translate -2*x
> }
>
> plane {y, -1
> pigment {color 0.5*White}
> finish {reflection .5}
> }
>
> /* neener neener neener ;-) */

I stand corrected. But note, you had to use two statements to do it, and
all other matrix transforms listed have their own POV statement.


Post a reply to this message

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