![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
// 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](/povray.binaries.images/attachment/%3C423b5914%241%40news.povray.org%3E/pigbug01.jpg?ttop=441697&toff=5450&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] aol com> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |