POV-Ray : Newsgroups : povray.general : right x*image_width/image_height : Re: right x*image_width/image_height Server Time
3 Aug 2024 02:18:27 EDT (-0400)
  Re: right x*image_width/image_height  
From: Thorsten Froehlich
Date: 28 May 2004 06:51:24
Message: <40b719ac$1@news.povray.org>
In article <40b70c5a@news.povray.org> , Stefan Viljoen <rylan@<deletehis> 
wrote:

> What does this camera "right" statement imply?
>
> Does it have to do with aspect ratio? I am guessing that "image_width" and
> "image_height" are PovRay built-in variables, taken from the command line
> or an .INI file, and that this has to do aspect ratio?
>
> Why does Moray use
>
> right     <    1.35836,         0.0,         0.0>
>
> and not the line above?

Don't be confused by the x*image_width/image_height.  It simply is a short
form of writing a vector with the x-component having the value
image_width/image_height.  That plague with x*image_width/image_height
started with 3.5 as some users put it in every scene, which is not the
intended use.  It only makes sense if you plan to render a scene at a fixed
aspect ratio regardless of the image aspect ratio (that is, if different
resolutions of an image when rendered are not expected to be proportional).

Most of the time the camera "right" is specifying the width of the the view
only.  However, it is a vector also able to specify a part of the camera
direction together with the other camera vectors.  Please refer to the
reference part of the manual, which has a lengthy camera section describing
the camera parameters in detail.

What Moray outputs is simply an aspect ratio in a vector.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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