 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Is there anyway to crop an image in povray?
One could set up some interesting effects if one were to say only
display the 320x240 which is the right half of the current screen. I'm
not saying look_at a point to the right, I'm saying only render an image
that goes from the center line to the right.
For a hint at the technique I'm talking about, consider my recent
posting to p.b.a. tonight, and how it would look if one cropped the
image at the first guy on the left and added several more characters on
the right.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3acbe1d7$1@news.povray.org> , "Greg M. Johnson"
<"gregj;-)56590\""@aol.c;-)om> wrote:
> Is there anyway to crop an image in povray?
You mean a partial rendering of an image using the options described in
the manual?
Thorsten
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thorsten Froehlich wrote:
>
> In article <3acbe1d7$1@news.povray.org> , "Greg M. Johnson"
> <"gregj;-)56590\""@aol.c;-)om> wrote:
>
> > Is there anyway to crop an image in povray?
>
> You mean a partial rendering of an image using the options described in
> the manual?
... or perhaps the rubber band image selection capabilities of the Windows
editor.
--
Ken Tyler
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thorsten Froehlich wrote:
> In article <3acbe1d7$1@news.povray.org> , "Greg M. Johnson"
> <"gregj;-)56590\""@aol.c;-)om> wrote:
>
> > Is there anyway to crop an image in povray?
>
> You mean a partial rendering of an image using the options described in
> the manual?
>
> Thorsten
The problem I encountered with that is that if your image is 800 by 600
pixels, and you do a partial rendering of only the right half, the
resultant image is still 800 by 600 pixels with half of it empty.
Josh English
eng### [at] spiritone com
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Joshua English wrote:
> The problem I encountered with that is that if your image is 800 by 600
> pixels, and you do a partial rendering of only the right half, the
> resultant image is still 800 by 600 pixels with half of it empty.
Problem ?
It takes all of ten seconds to crop out in a paint program.
--
Ken Tyler
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Normally one would have an image where the left half is the view of look_at
- angle/2 degrees, and the right half is the view seen in an angle from 0
degrees from look_at to +angle/2 degrees to the right.
I was wondering if one could get an image where from left to right it's the
this is very different from just telling me to change my look_at to
something +40 degrees. Image cropping won't do me any good and is a pain if
to play games with perspective.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ken wrote:
> Joshua English wrote:
>
> > The problem I encountered with that is that if your image is 800 by 600
> > pixels, and you do a partial rendering of only the right half, the
> > resultant image is still 800 by 600 pixels with half of it empty.
>
> Problem ?
>
> It takes all of ten seconds to crop out in a paint program.
>
> --
> Ken Tyler
When rendering a very large image and I don't have the RAM to open it up,
yes. I wanted to do smaller printouts so I could print the image on separate
pages and mortise it back together again.
Josh
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |