POV-Ray : Newsgroups : povray.newusers : Setting image dimensions from the scene file? : Setting image dimensions from the scene file? Server Time
29 Jul 2024 18:29:21 EDT (-0400)
  Setting image dimensions from the scene file?  
From: Aek Chomaitong
Date: 22 May 2005 15:05:01
Message: <web.4290d70d50f6e2043279d4a10@news.povray.org>
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.