POV-Ray : Newsgroups : povray.general : Cropped image : Re: Cropped image Server Time
8 Aug 2024 01:20:52 EDT (-0400)
  Re: Cropped image  
From: Rune
Date: 6 Apr 2001 06:22:26
Message: <3acd98e2@news.povray.org>
Hi Greg!

The solution is to skew your camera using a matrix, like in the code below.
Render the code as a small cyclic animation and you'll see what it looks
like.

You need to use the ini-option -uv to turn off the vista buffer.

Hope that helps!

// start of code

camera {
   location 0 angle 120 look_at z
   matrix <
      1,0,0,
      0,1,0,
      sin(clock*2*pi),0,1,
      0,0,0
   >
   translate -5*z
}

background {color <0.2,0.6,1.0>}

light_source {<1,2,-3>*1000, color 1}

#declare X = -5;
#declare Xm = 5;
#while (X<=Xm)
   #declare Y = -5;
   #declare Ym = 5;
   #while (Y<=Ym)
      sphere {<X,Y,0>, 0.3 pigment {color rgb 1}}
      #declare Y = Y+1;
   #end
   #declare X = X+1;
#end

// end of code

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated March 29)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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