POV-Ray : Newsgroups : povray.binaries.images : MegaPov camera_view not looking at look_at?? : Re: MegaPov camera_view not looking at look_at?? Server Time
9 Aug 2024 03:20:05 EDT (-0400)
  Re: MegaPov camera_view not looking at look_at??  
From: Greg M  Johnson
Date: 18 Mar 2005 21:17:55
Message: <423b8bd3$1@news.povray.org>
Ah! found it! the problem was that I needed to scale the pigment by 0.5. 
Perhaps it was an RFTM.  I'm guess I'll leave this post up here anyway...

"Greg M. Johnson" <gregj;-)565### [at] aolcom> wrote in message 
news:423b5914$1@news.povray.org...
> // I'm assuming the answer is that the camera_view
> // might not use all camera features in same way as
> // camera?  Or to accomplish my trick I need
> // get used to not using some of the camera items.
>
> #version unofficial MegaPov 1.10;
> #declare bordery=0.015;
>
> box{<0,0,0>+bordery*<1,1,0>,<image_width/image_height,1,0.1>/2-bordery*<1,1,0>
>         pigment { camera_view{right x*image_height/image_width  location 
> <-25,80,-120> look_at <-25,80,110>  angle 5} }
>        translate 1*z }
>
>
> box{<0,0,0>+bordery*<1,1,0>,<image_width/image_height,1,0.1>/2-bordery*<1,1,0>
>         pigment { camera_view{right x*image_height/image_width  location 
> <-25,80,-120> look_at <-25,80,110>  angle 10} }
>        translate 1*z-<image_width/image_height,1,0.0>/2 }
>
>
> box{<0,0,0>+bordery*<1,1,0>,<image_width/image_height,1,0.1>/2-bordery*<1,1,0>
>         pigment { camera_view{right x*image_height/image_width  location 
> <-25,80,-120> look_at <-25,80,110>  angle 15} }
>        translate 1*z-<image_width/image_height,0,0.0>/2 }
>
> box{<0,0,0>+bordery*<1,1,0>,<image_width/image_height,1,0.1>/2-bordery*<1,1,0>
>         pigment { camera_view{right x*image_height/image_width  location 
> <-25,80,-120> look_at <-25,80,110>  angle 20} }
>         translate 1*z-<0,1,0.0>/2 }
>
> sphere{<-25,80,110>,10 pigment{red 1} finish{ambient 4}}
>
> plane{y,-10 pigment{checker rgb 1 rgb 0 scale 100} finish{ambient 4}}
> background{rgb 1}
>
> camera {
>    perspective
>    location <0,0,0>
>    direction <0,0,1>
>    right image_width/image_height*x
>    up y
>    sky <0,1,0>
>  }
>
>
>
>


Post a reply to this message

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