POV-Ray : Newsgroups : povray.general : spherical camera upside down? : Re: spherical camera upside down? Server Time: 5 Dec 2008 11:00:13 GMT
  Re: spherical camera upside down?  
From: Jellby
Date: 19 Feb 2005 12:24:17
Among other things, "Elias Pschernig" <elias at users sf net> saw fit to
write:

> I was thinking of using the postprocessing of megapov to rotate the
> end-result by 180 degree - but hopefully someone here has an easier
> solution :)
> 
> [...]
>     direction 
> #if (frame_number = 1 | frame_number = 3)
>     z
> #else
>     -z
> #end

Use "look_at" instead of "direction". As far as I know, direction is mainly
useful to get the length of the camera vector (which I guess is not used
these projections). To define the direction the camera is facing, use
look_at.

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

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