POV-Ray : Newsgroups : povray.newusers : Setting image dimensions from the scene file? : Re: Setting image dimensions from the scene file? Server Time
29 Jul 2024 18:26:00 EDT (-0400)
  Re: Setting image dimensions from the scene file?  
From: Kyle
Date: 22 May 2005 16:37:00
Message: <r1r1919u6sdisp5uoaunp7snia837vlq4t@4ax.com>
Aek:

I'm not sure if this helps, but since your are already having to
calculate the witdth and height values in an external program, could
you maybe just use the image_width and image_height variables within
the scene file when it is rendered?

Just a thought...

Kyle


On Sun, 22 May 2005 15:01:33 EDT, "Aek Chomaitong"
<ach### [at] earthlinknet> wrote:

>Hello, everybody.
>
>I would like to know if there is a way to specify the image dimensions from
>within the scene file (not using +W and +H).
>
>The reason I am asking for this is because the dimension of my images are
>not known in advanced.  It is calculated from various parameters like the
>width of the object in 3d, the position of the camera, and so on.
>
>Right now, I have to perform the calculation twice.  Once in an external
>program to determine the image dimension and another time in POV-Ray.  If I
>can specify the image dimension in the scene file, like through some
>built-in function, I can get rid of the first calculation which will save
>lots of time and management.
>
>Empty spaces in the images are significant so cropping the image later using
>some external program would not help.
>
>I appreciate your advice.
>
>Thank you.
>
>Aek Chomaitong
>


Post a reply to this message

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