POV-Ray : Newsgroups : povray.unofficial.patches : ini_option "Width=..." Server Time
2 Sep 2024 16:18:53 EDT (-0400)
  ini_option "Width=..." (Message 1 to 3 of 3)  
From: mr art
Subject: ini_option "Width=..."
Date: 14 Dec 1999 20:26:43
Message: <3856EE46.C45A3B84@gci.net>
Just an observation for WinMegaPOV .2 
When I set the width and height of the
picture with the ini_option, the display
window is set to the size that I ask for but
the rendered image is the size set in the ini
file. Example: when I set
global_settings {ini_option "Width=800" ini_option "Height=600"}
in the scene file and use 160x120 in the ini file,
I get a large(800x600) display window that has a
160x120 sized portion of the total image in it.

Now, if I set +W800 +w600 on the command line
and select 160x120 from the ini file, I get the
800X600 sized image in full. As I would expect.
Have fun chasing this one down.
Mr. Art


Post a reply to this message

From: omniVERSE
Subject: Re: ini_option "Width=..."
Date: 14 Dec 1999 22:56:53
Message: <38571185@news.povray.org>
Neat feature.  Oh, oops, not.
Actually someone just might try and come up with a use for that mis-feature.
In fact, if it could be positioned as well... nah...

Bob

"mr.art" <mr.### [at] gcinet> wrote in message news:3856EE46.C45A3B84@gci.net...
> Just an observation for WinMegaPOV .2
> When I set the width and height of the
> picture with the ini_option, the display
> window is set to the size that I ask for but
> the rendered image is the size set in the ini
> file. Example: when I set
> global_settings {ini_option "Width=800" ini_option "Height=600"}
> in the scene file and use 160x120 in the ini file,
> I get a large(800x600) display window that has a
> 160x120 sized portion of the total image in it.
>
> Now, if I set +W800 +w600 on the command line
> and select 160x120 from the ini file, I get the
> 800X600 sized image in full. As I would expect.
> Have fun chasing this one down.
> Mr. Art


Post a reply to this message

From: Nathan Kopp
Subject: Re: ini_option "Width=..."
Date: 14 Dec 1999 23:24:48
Message: <38571810@news.povray.org>
Here's the problem:
At some point POV checks to see if you entered The End_Column and End_Row
ini options by checking if they are still set to -1 (which is how they
start).  If you did not, then it sets them to the size of the image.

Unfortunately, this is done for the first time after reading the command
line and INI files and before parsing (and reading ini_option).  After that
point, POV assumes that you purposely set End_Column and End_Row (which is
an incorrect assumption in this case).

A workaround is to explicitly set the Last_Column and Last_Line options
using ini_option.  Example:
global_settings{
  ini_option "Width=512"
  ini_option "Height=384"
  ini_option "End_Column=512"
  ini_option "End_Row=384"
}

This will be fixed in the next release.

-Nathan

mr.art <mr.### [at] gcinet> wrote...
> Just an observation for WinMegaPOV .2
> When I set the width and height of the
> picture with the ini_option, the display
> window is set to the size that I ask for but
> the rendered image is the size set in the ini
> file. Example: when I set
> global_settings {ini_option "Width=800" ini_option "Height=600"}
> in the scene file and use 160x120 in the ini file,
> I get a large(800x600) display window that has a
> 160x120 sized portion of the total image in it.
>
> Now, if I set +W800 +w600 on the command line
> and select 160x120 from the ini file, I get the
> 800X600 sized image in full. As I would expect.
> Have fun chasing this one down.
> Mr. Art


Post a reply to this message

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