POV-Ray : Newsgroups : povray.general : ImageWidth not declared? Server Time
25 Apr 2024 07:08:16 EDT (-0400)
  ImageWidth not declared? (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: William F Pokorny
Subject: Re: ImageWidth not declared?
Date: 15 Jan 2018 12:56:32
Message: <5a5ceb50$1@news.povray.org>
On 01/15/2018 12:34 PM, Robert Kennedy wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> 
> Yeah, that was it.  As an excuse, I mention this web page:
> 
> http://www.povray.org/documentation/view/3.6.2/153/
> 
> which uses ImageWidth and ImageHeight.  Perhaps it needs to be updated?
> 
> 
Unsure the 3.6 docs will be touched at this point. The 3.7/3.8 
equivalent page:

http://wiki.povray.org/content/Knowledgebase:Language_Questions_and_Tips#Topic_19

has been updated with the correct keywords. It also strongly discourages 
use of the keywords to a degree with which I don't agree.

Bill P.


Post a reply to this message

From: Bald Eagle
Subject: Re: ImageWidth not declared?
Date: 15 Jan 2018 18:35:00
Message: <web.5a5d3a82ac415efc5cafe28e0@news.povray.org>
"Robert Kennedy" <nomail@nomail> wrote:

> Yeah, that was it.  As an excuse, I mention this web page:
>
> http://www.povray.org/documentation/view/3.6.2/153/
>
> which uses ImageWidth and ImageHeight.  Perhaps it needs to be updated?

I think it's been mentioned that the wiki is the best place to keep up with the
documentation.  I only use online help for posting links, for "real" help I use
the F1 Help, or the Insert Menu examples, or Friederich Lohmueller's site.

You might keep in mind that reserved internal variable names are highlighted in
that purple color - so if you reach the end of the variable name, and it doesn't
turn purple...   Sometimes I can't remember if there's an underscore for certain
ones....


Post a reply to this message

From: clipka
Subject: Re: ImageWidth not declared?
Date: 16 Jan 2018 02:57:54
Message: <5a5db082$1@news.povray.org>
Am 15.01.2018 um 18:34 schrieb Robert Kennedy:

> http://www.povray.org/documentation/view/3.6.2/153/
> 
> which uses ImageWidth and ImageHeight.  Perhaps it needs to be updated?

The code snippet in that section is a "general way to set the correct
aspect ratio piece of documentation", indicating that (or at least being
consistent with the interpretation that) "ImageWidth" and "ImageHeight"
are intended to be placeholders for the values you used for the INI
settings of the same names.


Post a reply to this message

From: clipka
Subject: Re: ImageWidth not declared?
Date: 16 Jan 2018 03:24:05
Message: <5a5db6a5$1@news.povray.org>
Am 15.01.2018 um 18:56 schrieb William F Pokorny:

> Unsure the 3.6 docs will be touched at this point. The 3.7/3.8
> equivalent page:
> 
> http://wiki.povray.org/content/Knowledgebase:Language_Questions_and_Tips#Topic_19
> 
> 
> has been updated with the correct keywords. It also strongly discourages
> use of the keywords to a degree with which I don't agree.

You're not the only one.

That's why POV-Ray 3.8.0-alpha will even use `right
x*image_width/image_height` as the default (provided you specify
`#version 3.8` at the very start of the file).


The reasons stated do have their merit, but I think they warrant no more
than to just advise some caution.

It should also be noted that scene authors worried about the issues can
use a construct like the following to enforce the intended aspect ratio:

    #if (image_width/image_height != 4/3)
      #error "Scene is designed for 4:3 aspect ratio!\n"
    #end

Users who may need to render to a non-square pixel format should indeed
opt for a fixed aspect ratio, and use a variation of the above test to
warn rather than abort:

    camera {
      right x*4/3
    }
    #if (image_width/image_height != 4/3)
      #warning "Scene is designed for 4:3 aspect ratio!\n"
      #warning "Rendering for non-square pixels.\n"
    #end


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: ImageWidth not declared?
Date: 17 Jan 2018 14:40:00
Message: <web.5a5fa64fac415efcfd3cadc90@news.povray.org>
"Robert Kennedy" <nomail@nomail> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > "Robert Kennedy" <nomail@nomail> wrote:
> > Has somebody decided that ImageWidth and ImageHeight no longer need
> > > to exist?  Or have I forgotten something?
> >
> > You forgot that capitalization means something.
> > The correct reserved internal variable names are:
> >
> > image_width
> > image_height
> >
> > You CAN do something like
> > #declare ImageHeight = image_height;
> > #declare ImageWidth = image_width;
> >
> > and then go from there.
>
> Yeah, that was it.  As an excuse, I mention this web page:
>
> http://www.povray.org/documentation/view/3.6.2/153/
>
> which uses ImageWidth and ImageHeight.  Perhaps it needs to be updated?

It is meant to explain that you should insert the image height and width - 3.6
had no image width and height keywords.


Post a reply to this message

From: Mike Horvath
Subject: Re: ImageWidth not declared?
Date: 18 Jan 2018 01:22:26
Message: <5a603d22@news.povray.org>
On 1/15/2018 6:34 PM, Bald Eagle wrote:
> I think it's been mentioned that the wiki is the best place to keep up with the
> documentation.  I only use online help for posting links, for "real" help I use
> the F1 Help, or the Insert Menu examples, or Friederich Lohmueller's site.

Unfortunately, Google prefers the POV 3.6 docs to the wiki.

Mike


Post a reply to this message

From: dick balaska
Subject: Re: ImageWidth not declared?
Date: 18 Jan 2018 01:51:25
Message: <5a6043ed$1@news.povray.org>
On 01/18/2018 01:22 AM, Mike Horvath wrote:
> On 1/15/2018 6:34 PM, Bald Eagle wrote:
>> I think it's been mentioned that the wiki is the best place to keep up 
>> with the
>> documentation.  I only use online help for posting links, for "real" 
>> help I use
>> the F1 Help, or the Insert Menu examples, or Friederich Lohmueller's 
>> site.
> 
> Unfortunately, Google prefers the POV 3.6 docs to the wiki.

Yeah I hate that.
Qt has the same problem. Google likes Qt-4.8 over Qt-5.10.

-- 
dik
Rendered 344576 of 345600 pixels (99%)


Post a reply to this message

From: clipka
Subject: Re: ImageWidth not declared?
Date: 18 Jan 2018 03:56:54
Message: <5a606156$1@news.povray.org>
Am 17.01.2018 um 20:38 schrieb Thorsten Froehlich:

> It is meant to explain that you should insert the image height and width - 3.6
> had no image width and height keywords.

It had; `image_width` and `image_height` were introduced with POV-Ray v3.5.


Post a reply to this message

From: Mike Horvath
Subject: Re: ImageWidth not declared?
Date: 18 Jan 2018 12:35:34
Message: <5a60dae6$1@news.povray.org>
On 1/18/2018 1:51 AM, dick balaska wrote:
> On 01/18/2018 01:22 AM, Mike Horvath wrote:
>>
>> Unfortunately, Google prefers the POV 3.6 docs to the wiki.
> 
> Yeah I hate that.
> Qt has the same problem. Google likes Qt-4.8 over Qt-5.10.
> 

It may be time to retire the POV 3.6 docs and take them down.


Mike


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: ImageWidth not declared?
Date: 31 Jan 2018 05:05:00
Message: <web.5a7193f6ac415efc91b9b16f0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 17.01.2018 um 20:38 schrieb Thorsten Froehlich:
>
> > It is meant to explain that you should insert the image height and width - 3.6
> > had no image width and height keywords.
>
> It had; `image_width` and `image_height` were introduced with POV-Ray v3.5.

Ah, yes, you are of course right - they were real keywords back then and just
converted to defines internally in 3.7.

Thorsten


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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