POV-Ray : Newsgroups : povray.general : Automatic right vector determination? : Re: Automatic right vector determination? Server Time
14 Nov 2024 21:13:40 EST (-0500)
  Re: Automatic right vector determination?  
From: Nieminen Mika
Date: 26 Apr 1999 12:50:08
Message: <37248b30.0@news.povray.org>
Antti Arola <aar### [at] kuhacclutfi> wrote:

: Is there a way to automatically determine the correct right vector for the
: camera based on the image dimensions specified for the render, so that I
: wouldn't have to manually edit the scene file every time I change the
: aspect ratio?

  AFAIK there's no way to see the command line parameters from the pov code
(except for the clock and clock_delta variables which are the only exceptions).
  I'm afraid that you have to do something like this:

#declare Width=640;
#declare Height=480;

...

camera
{ right x*Width/Height;
  location ...
  ...
} 

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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