POV-Ray : Newsgroups : povray.general : Aspect ratio & resolution.ini : Re: Aspect ratio & resolution.ini Server Time
1 Aug 2024 08:15:26 EDT (-0400)
  Re: Aspect ratio & resolution.ini  
From: PoD
Date: 29 Dec 2005 01:24:06
Message: <pan.2005.12.29.06.24.04.558205@internode.on.net>
On Wed, 28 Dec 2005 21:34:48 -0500, JYR wrote:

> Bryan Heit <bjh### [at] NOSPAMucalgaryca> wrote:
>>    right <1.33,0,0>  //this would be 1.85 for HDTV
> 
> right     x*image_width/image_height
> 
> where image_width and image_height are built in variables in which Pov
> stores the width and height of the image as defined in the drop menu or ini
> file.
> 
> JYR

This will create an image with square pixels.  DVD needs non square
pixels, the image resolution could be 702*480,720*480,720*576,720*576
among others all at an aspect ratio of 4:3.

If you always set specific resolutions for standard or HDTV, you could
test for those and set the aspect ratio to 4/3 or 16/9 accordingly.

#if ( (image_width = 720) & (image_height = 576) )
  aspect = 4/3
#else
  aspect = 16/9
#end


Post a reply to this message

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