POV-Ray : Newsgroups : povray.general : enlarging canvas but not image : Re: enlarging canvas but not image Server Time
28 Jul 2024 20:34:51 EDT (-0400)
  Re: enlarging canvas but not image  
From: Tim Attwood
Date: 4 Aug 2007 15:16:05
Message: <46b4d075$1@news.povray.org>
>I have another seemingly simple problem I am pretty sure the someone
> here can answer. I have put together a simple scene, a tutorial for
> making a piece of jewelry, so it consists of multiple images each one
> with the next step added. I got to a point where my image goes off the
> 'canvas' I thought I could just resize the image size but that rescales
> my scene also, so now it is a different size than the rest of my
> images.
>
> So do I just need to resize the image and then zoom the camera out? If
> so is there some formula to keep the actual image the same size and
> just enlarge the canvas area? Example: if you go from canvas size of
> 300x300 to 500x500 to keep the picture the same size you need to zoom
> the camera out by X. What would X be? Maybe I am making a mountain out
> of an ant hill though.
> Thank you very much,

You can just change the right and up of your camera by the increased
"canvas" ratio.

So for your example you'd multiply right and up by 5/3 ...
camera {
   location  <...>
   right     x*image_width/image_height*(5/3)
   up y*(5/3)
   look_at   <...>
}


Post a reply to this message

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