POV-Ray : Newsgroups : povray.binaries.images : MegaPov camera_view not looking at look_at?? Server Time
9 Aug 2024 09:08:18 EDT (-0400)
  MegaPov camera_view not looking at look_at?? (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: MegaPov camera_view not looking at look_at??
Date: 18 Mar 2005 17:41:24
Message: <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


Attachments:
Download 'pigbug01.jpg' (37 KB)

Preview of image 'pigbug01.jpg'
pigbug01.jpg


 

From: Greg M  Johnson
Subject: Re: MegaPov camera_view not looking at look_at??
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

From: Greg M  Johnson
Subject: Re: MegaPov camera_view not looking at look_at??
Date: 18 Mar 2005 22:57:25
Message: <423ba325$1@news.povray.org>
The final code is:


box{<0,0,0>+bordery*<1,1,0>,<image_width/image_height,1,0.1>/2-bordery*<1,1,0>

         pigment {
                camera_view{location <-25,80,0> look_at <-25,80,110> }
                translate-<0.5,0.5,0>
                scale <1.33,1,1>
                translate  <image_width/image_height,1,0> /4
                }

        translate 1*z }


Post a reply to this message

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