POV-Ray : Newsgroups : povray.general : enlarging canvas but not image : Re: enlarging canvas but not image Server Time
28 Jul 2024 20:26:04 EDT (-0400)
  Re: enlarging canvas but not image  
From: Alain
Date: 4 Aug 2007 23:39:05
Message: <46b54659@news.povray.org>
T-n-T nous apporta ses lumieres en ce 2007/08/04 13:31:
> 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,
> 
> lildog
It depends on exactly what you want to do.
Do you want a single image with multiple steps?
Does the scene tend to ocupy more space with each step?

In the first case, it would be better to render each step as a single image. 
Once each step is completed, you stitch them with some external application.

In the second case, you can, as others have mentioned, change the field of view 
of the camera.

You can also multiply the direction vector by the ratio Old_Width/New_Width. 
This will have the effect of zooming exactly acording to your change of area of 
interest.
A plus, is that you don't need to worry about trigonometric formulas (done 
internaly), and it's independent of the rendering resolution.
Just don't use the angle keyword. Used after adjusting the direction vector will 
reset it, and puting angle before can have strange results.

Another possibility would be to move the camera back.

-- 
Alain
-------------------------------------------------
Lutheran: If shit happens, don't talk about it.


Post a reply to this message

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