POV-Ray : Newsgroups : povray.general : Aspect Ratio in POV Server Time
12 Aug 2024 19:40:11 EDT (-0400)
  Aspect Ratio in POV (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: John M  Dlugosz
Subject: Aspect Ratio in POV
Date: 14 Feb 1999 18:22:15
Message: <36c75aa7.0@news.povray.org>
In POV, there are two values that need to agree -- the up/right camera
ratio, and the render height and width.  If I design a scene to be, for
example, greeting card aspect (8:5) or square (1:1) or golden (1:phi), I set
the camera to suit.  Fine.

But using the GUI in POV-Windows, I have to choose a different INI file to
give appropreate resolution choices in the drop down box.  This would not be
an issue if I only needed to do it once, but this choice "sticks" and stays
that way no matter which image file I have loaded and "on top".

Is there a way to associate INI settings on a per-POV file basis, and tell
the GUI to read =that=, and still let me interactivly choose my mode (large,
small, low-Q, etc.) from my list of very common settings for that particular
image?

--John


Post a reply to this message

From: Spider
Subject: Re: Aspect Ratio in POV
Date: 15 Feb 1999 03:06:54
Message: <36C7D454.5201D01@bahnhof.se>
Edit the quickres.ini to something like this :

[200x200 LQ]
width =
height = 
.
.
.


//Spider

"John M. Dlugosz" wrote:
> 
> In POV, there are two values that need to agree -- the up/right camera
> ratio, and the render height and width.  If I design a scene to be, for
> example, greeting card aspect (8:5) or square (1:1) or golden (1:phi), I set
> the camera to suit.  Fine.
> 
> But using the GUI in POV-Windows, I have to choose a different INI file to
> give appropreate resolution choices in the drop down box.  This would not be
> an issue if I only needed to do it once, but this choice "sticks" and stays
> that way no matter which image file I have loaded and "on top".
> 
> Is there a way to associate INI settings on a per-POV file basis, and tell
> the GUI to read =that=, and still let me interactivly choose my mode (large,
> small, low-Q, etc.) from my list of very common settings for that particular
> image?
> 
> --John


Post a reply to this message

From: Bob Hughes
Subject: Re: Aspect Ratio in POV
Date: 15 Feb 1999 05:27:38
Message: <36C7F671.23C7F06A@aol.com>
Sounds like something for #write and #read. I've not touched anything
like this yet, but of course if you could output those parameters to a
single particular re-written file each time it's invoked, ie.
Aspect.ini, then all you'd need do is select that ini once and leave it.

#fopen ASPECT "Aspect.ini" write

#write (ASPECT,"\"WIDTH=\",", RIGHT,","/n","\"HEIGHT=\", UP,"\n")

This is only a guess as to how this syntax works. Like I say, don't know
how to use it yet.
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. These are
the first things setup along with file type and all. Although I may be
wrong and the image size could be before the image creation and after
the scene parsing. I'm still a bit lost in the newer DOC.
This would mean a first render to set things up if it didn't work out as
planned, then a second render of the same thing to get the right INI
settings. Back to square one. Sorry to get your hopes up, no help.
Boy, do I ever need to get at some of this new (though older and older)
stuff.


"John M. Dlugosz" wrote:
> 
> In POV, there are two values that need to agree -- the up/right camera
> ratio, and the render height and width.  If I design a scene to be, for
> example, greeting card aspect (8:5) or square (1:1) or golden (1:phi), I set
> the camera to suit.  Fine.
> 
> But using the GUI in POV-Windows, I have to choose a different INI file to
> give appropreate resolution choices in the drop down box.  This would not be
> an issue if I only needed to do it once, but this choice "sticks" and stays
> that way no matter which image file I have loaded and "on top".
> 
> Is there a way to associate INI settings on a per-POV file basis, and tell
> the GUI to read =that=, and still let me interactivly choose my mode (large,
> small, low-Q, etc.) from my list of very common settings for that particular
> image?
> 
> --John

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


Post a reply to this message

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

Goto Latest 10 Messages Next 3 Messages >>>

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