POV-Ray : Newsgroups : povray.general : Automatic right vector determination? : Re: Automatic right vector determination? Server Time
14 Nov 2024 21:13:44 EST (-0500)
  Re: Automatic right vector determination?  
From: PoD
Date: 2 May 1999 17:08:16
Message: <372CB0F0.D0E4B2AC@merlin.net.au>
Nieminen Mika wrote:
> 
> 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 -*/


Having the command line and ini variables available within the scene
language is a feature I'd *really* like to see.

It would be very handy to be able to do things like
camera{
  right x*width/height
  ...
}
and
global_settings{
  assumed_gamma display_gama
}

PoD.


Post a reply to this message

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