POV-Ray : Newsgroups : povray.newusers : sphere proportions : Re: sphere proportions Server Time
17 Jun 2021 14:14:04 EDT (-0400)
  Re: sphere proportions  
From: Alain Martel
Date: 1 Jun 2021 18:45:08
Message: <60b6b874$1@news.povray.org>
> Hunted down section 1.4.2.4 in the manual.
> camera
> { right x*ImageWidth/ImageHeight
>    (other camera settings...)
> }
> 
> 
It's image_width/image_height, no capital and with an underscore.

camera
{ right x*image_width/image_height
   (other camera settings...)
}

It can also be set using the up vector as follow :
camera
{ up y*image_height/image_width
   right x
   (other camera settings...)
}

Yes. That structure will ensure that the camera will always respect the 
aspect ratio of the generated image.

image_width and image_height are internal, reserved variables that 
contain the actual dimensions of the rendered image.


Post a reply to this message

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