POV-Ray : Newsgroups : povray.general : Aspect Ratio in POV Server Time
12 Aug 2024 17:16:34 EDT (-0400)
  Aspect Ratio in POV (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: John M  Dlugosz
Subject: Re: Aspect Ratio in POV
Date: 15 Feb 1999 20:49:37
Message: <36c8ceb1.0@news.povray.org>
Spider wrote in message <36C### [at] bahnhofse>...
>Edit the quickres.ini to something like this :
>
>[200x200 LQ]
>width =
>height =
>.
>.
>.
>
>
>//Spider


You missed the point of the question.  I have multiple INI files to suit,
but want to automatically switch between them.  Or are you suggesting
putting =all= the different values I need in one INI file?  Again, not what
I'm looking for.


Post a reply to this message

From: Spider
Subject: Re: Aspect Ratio in POV
Date: 15 Feb 1999 21:45:19
Message: <36C8DA78.B90954E7@bahnhof.se>
Then I missed your point, and therefore can't help you very much
I have a solution of using several Qickres.
one with 1:1 scales, one with 1:3/4 and so on.

//Spider

"John M. Dlugosz" wrote:
> 
> Spider wrote in message <36C### [at] bahnhofse>...
> >Edit the quickres.ini to something like this :
> >
> >[200x200 LQ]
> >width =
> >height =
> >.
> >.
> >.
> >
> >
> >//Spider
> 
> You missed the point of the question.  I have multiple INI files to suit,
> but want to automatically switch between them.  Or are you suggesting
> putting =all= the different values I need in one INI file?  Again, not what
> I'm looking for.


Post a reply to this message

From: Stephen Lavedas
Subject: Re: Aspect Ratio in POV
Date: 15 Feb 1999 22:24:06
Message: <36C8E4F5.A77E64C8@virginia.edu>
Well, Moray does what you want, you choose the camera etc and basically
it creates the ini file to use for the render...you could write a short
program to do the same in most languages, but I don't believe POVRay has
the ability to do exactly what you want...

Steve


"John M. Dlugosz" wrote:
> 
> Spider wrote in message <36C### [at] bahnhofse>...
> >Edit the quickres.ini to something like this :
> >
> >[200x200 LQ]
> >width =
> >height =
> >.
> >.
> >.
> >
> >
> >//Spider
> 
> You missed the point of the question.  I have multiple INI files to suit,
> but want to automatically switch between them.  Or are you suggesting
> putting =all= the different values I need in one INI file?  Again, not what
> I'm looking for.


Post a reply to this message

From: John M  Dlugosz
Subject: Re: Aspect Ratio in POV
Date: 16 Feb 1999 02:48:21
Message: <36c922c5.0@news.povray.org>
Spider wrote in message <36C8DA78.B90954E7@bahnhof.se>...
>Then I missed your point, and therefore can't help you very much
>I have a solution of using several Qickres.
>one with 1:1 scales, one with 1:3/4 and so on.


That's what I'm doing now, too.
I was wondering if there was a way to automatically choose the right
quickres file to go with the image. especially useful if several image files
are open in the IDE at the same time.

--John


Post a reply to this message

From: Spider
Subject: Re: Aspect Ratio in POV
Date: 16 Feb 1999 14:52:31
Message: <36C9CB32.18D35592@bahnhof.se>
Well, #read and #write should bee your best bet...

//Spider

"John M. Dlugosz" wrote:
> 
> Spider wrote in message <36C8DA78.B90954E7@bahnhof.se>...
> >Then I missed your point, and therefore can't help you very much
> >I have a solution of using several Qickres.
> >one with 1:1 scales, one with 1:3/4 and so on.
> 
> That's what I'm doing now, too.
> I was wondering if there was a way to automatically choose the right
> quickres file to go with the image. especially useful if several image files
> are open in the IDE at the same time.
> 
> --John

-- 
#declare life = rand(seed(42))*sqrt(-1);


Post a reply to this message

From: Roland Mas
Subject: Re: Aspect Ratio in POV
Date: 17 Feb 1999 07:32:57
Message: <m3hfsl43d2.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

Sauvez une souris, mangez votre chat.


Post a reply to this message

From: Roland Mas
Subject: Re: Aspect Ratio in POV
Date: 17 Feb 1999 13:00:50
Message: <m3k8xjlw7z.fsf@clodomir.rezel.enst.fr>
Bob Hughes <inv### [at] aolcom> writes:

> Sounds like something for #write and #read.

[...]

I like that!  Nice idea!

> But never mind anyhow, because as far as I know you cannot affect the
> image size settings *after* parsing begins unless the information is
> already in the INI, not from within a scene which has begun.

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: 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 3 Messages Goto Initial 10 Messages

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