POV-Ray : Newsgroups : povray.general : Aspect Ratio? : Re: Aspect Ratio? Server Time
2 Aug 2024 12:19:24 EDT (-0400)
  Re: Aspect Ratio?  
From: Slime
Date: 14 Oct 2004 13:56:35
Message: <416ebdd3$1@news.povray.org>
> Somewhere along the ways I've missed an important detail...How does one
> set the aspect ratio in a PoV image?

To change the width or height of the image, use the +W and +H command line
switches.

To change the actual aspect ratio of the image being rendered, change your
camera declaration:

camera {
 location ...
 up y
 right x*aspect_ratio

 ... (include look_at or whatever else you want at this point)
}

Generally you want to use both of these at once so that you get a 1:1 pixel
aspect ratio. This can be quickly and conveniently done via

up y
right image_width/image_height

though many (including myself) consider this bad style when used for
anything but quick test scenes, since it makes the image difficult to render
with a non-1:1 pixel aspect ratio, which is useful and necessary in some
cases.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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