POV-Ray : Newsgroups : povray.general : Automatic right vector determination? Server Time
12 Aug 2024 01:29:31 EDT (-0400)
  Automatic right vector determination? (Message 1 to 3 of 3)  
From: Antti Arola
Subject: Automatic right vector determination?
Date: 26 Apr 1999 09:53:17
Message: <slrn7i8odt.ntv.aarola@kuha.cc.lut.fi>
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?

Not that commenting out one row is a big chore, but the autoadjust would
be nice. :-)

--
Antti Arola
aar### [at] lutfi
ICQ: 18685389


Post a reply to this message

From: Nieminen Mika
Subject: Re: Automatic right vector determination?
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

From: PoD
Subject: Re: Automatic right vector determination?
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.