POV-Ray : Newsgroups : povray.general : Aspect Ratio in POV Server Time
12 Aug 2024 17:19:46 EDT (-0400)
  Aspect Ratio in POV (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Roland Mas
Subject: Re: Aspect Ratio in POV
Date: 17 Feb 1999 13:00:52
Message: <m3emnq59io.fsf@clodomir.rezel.enst.fr>
Bob Hughes <inv### [at] aolcom> writes:

> Sounds like something for #write and #read.

[Seems like my last message did not pass, re-posting the meaningful part]

1. I agree, #write could do the trick;
2. Point is: #write is executed only at parse time, but you need to
write the aspect.ini file before;
3. Trick is: add a "Refresh" to your aspect.ini file with a 1x1
resolution, no display, no pause at end, no file output, nothing.
Just parse and trace one ray.  This parsing re-writes the aspect.ini
file according to the aspect ratio you need for the scene.
4. Not-sure-it-works part is: I don't know when POV-Ray re-loads the
aspect.ini file, or if it does.

Roland.
-- 
                                                         Roland Mas


Post a reply to this message

From: John M  Dlugosz
Subject: Re: Aspect Ratio in POV
Date: 18 Feb 1999 02:40:26
Message: <36cbc3ea.0@news.povray.org>
I think you are onto something here.

Roland Mas wrote in message ...

>The parade could be something like a nem item, entitled "refresh",
>which would parse the file and render a 0x0 or 1x1 image (short
>calculation time) and still parse the file, so that the thing.ini file
>would be rewritten.  Change scene, then select "refresh", render, then
>select the correct aspect ratio from the menu...
>
>I won't be able to try that since I'm not using Windows (which I don't
>complain about), and anyway I don't really care, but I'd like to be
>kept informed on how it goes.
>
>Roland.
>--
>                                                         Roland Mas


Post a reply to this message

From: Bob Hughes
Subject: Re: Aspect Ratio in POV
Date: 18 Feb 1999 10:07:48
Message: <36CC2C99.2800AD65@aol.com>
Found the relevent part of the P-R 3.* DOC under Shell Command
Sequencing:

---snipping
Here is the sequence of events in an animation loop. Non-animated scenes
work the exact same way except there is no loop.

  1)  Process all INI file keywords and command line switches just once.
  2)  Open any text output streams and do Create_INI if any.
  3)  Execute Pre_Scene_Command if any.
  4)  Loop through frames (or just do once on non-animation).
      a)  Execute Pre_Frame_Command if any.
      b)  Parse entire scene file, open output file and read settings,
          turn on display, render the frame, destroy all objects,
          textures etc., close output file, close display.
      c)  Execute Post_Frame_Command if any.
      d)  Go back to 4 a until all frames are done.
  5)  Execute Post_Scene_Command if any.
  6)  Exit POV-Ray.
---unsnipping

As you can see by item one, appears to not be plausible. However, then
item 2 states writing to a new INI. What for? If a 2-cycle render is not
going to re-read the INI... so I don't know now. Trying it out is worth
a hundred "what-ifs" I suppose.


Roland Mas wrote:
> 
> Bob Hughes <inv### [at] aolcom> writes:
> 
> > Sounds like something for #write and #read.
> 
> [Seems like my last message did not pass, re-posting the meaningful part]
> 
> 1. I agree, #write could do the trick;
> 2. Point is: #write is executed only at parse time, but you need to
> write the aspect.ini file before;
> 3. Trick is: add a "Refresh" to your aspect.ini file with a 1x1
> resolution, no display, no pause at end, no file output, nothing.
> Just parse and trace one ray.  This parsing re-writes the aspect.ini
> file according to the aspect ratio you need for the scene.
> 4. Not-sure-it-works part is: I don't know when POV-Ray re-loads the
> aspect.ini file, or if it does.
> 
> Roland.
> --
> Roland Mas
> 
> Sauvez une souris, mangez votre chat.

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/POVring.htm
 mailto:inv### [at] aolcom?PoV


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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