POV-Ray : Newsgroups : povray.general : Matrices : Re: Matrices Server Time
11 Aug 2024 05:11:05 EDT (-0400)
  Re: Matrices  
From: Mike
Date: 3 Sep 1999 21:31:30
Message: <37D07476.3436F2E@aol.com>
> 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 ;-) */


Post a reply to this message

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