POV-Ray : Newsgroups : povray.newusers : Setting image dimensions from the scene file? : Re: Setting image dimensions from the scene file? Server Time
30 Jul 2024 00:21:48 EDT (-0400)
  Re: Setting image dimensions from the scene file?  
From: Le Forgeron
Date: 23 May 2005 09:59:46
Message: <4291e1d2$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Dunn wrote:
> "Aek Chomaitong" <ach### [at] earthlinknet> wrote:
> 
>>Dear Mike,
>>
>>Thank you very much for this suggestion.  I'll check it out.
>>
>>Aek.
> 
> 
> I believe the feature was called init_option, and it allowed you to run any
> command line option from within the scene file. It might have been specific
> to MegaPOV 0.7, so try there. It was an extremely useful feature and I
> remember being a bit shocked that it didn't make its way into 3.5.
> 

If pov-scene were to be distributed as zip package, it would not only
include a *.pov file, but also a *.ini file.
The habit of not providing a *.ini is a bad habit, trying to cure it
with an extension is a bad solution to a true problem.
The real interest of rendering is to be able to recompute an image.
If your *.pov override the size setting and the user have to parse the
whole thing to find it, it's a real bad thing.

The initial problem is not an issue of +H/+W, but of automatic camera
setting by the scene itself. So far, the problem is not yet solvable,
because, aside from the height and width in pixel, one is to assume the
pixel ratio of the final picture ( a 640x480 picture is not always 4:3,
it can be displayed as a square with the right pixel ratio).
At best, your camera-script-setting could use the (new ? 3.5+)
image_height and image_width to know the final dimension and make its
computation only once to insure that the object always fit the view.

(but you ends up with a fixed pixel-ratio, which might be
counterproductive when rendering for a computer and then for a DVD:
most computer screen resolution are using square pixel on PC (excepted
some fancy 1280x1024 on 4:3 CRT... ), whereas the DVD resolution is
720x576 (or 720x480 for the NTSC countries) *INDEPENDANTLY* of the
displaying media (it can be a 16:9 or a 4:3... NO square pixel on DVD!))

- --
Eifersucht ist die Leidenschaft, die mit Eifer sucht, was Leiden schafft.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkeHRs/YJ43cSjHIRAtkqAKCIS91jo6A/3rEyNign8IEczbsbLwCcCvI/
ZGbdjtGPJ026bRkDjkW/2So=
=+Qet
-----END PGP SIGNATURE-----


Post a reply to this message

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