POV-Ray : Newsgroups : povray.general : Setting image width and height from .pov file Server Time
26 Nov 2024 18:27:36 EST (-0500)
  Setting image width and height from .pov file (Message 1 to 4 of 4)  
From: Chris
Subject: Setting image width and height from .pov file
Date: 14 Apr 2010 06:55:01
Message: <web.4bc59e742d895ef51a7e3a8c0@news.povray.org>
Is there any way to set the rendered image width and height (in pixels) from
inside a .pov file?

Failing that, can one access in a read-only way the image width and height (set
by Wxxx, +Hxxx at the command line) in the .pov file?

Cheers,

-Chris


Post a reply to this message

From: Warp
Subject: Re: Setting image width and height from .pov file
Date: 14 Apr 2010 07:42:09
Message: <4bc5aa11@news.povray.org>
Chris <chr### [at] abingdonorguk> wrote:
> Is there any way to set the rendered image width and height (in pixels) from
> inside a .pov file?

  No.

> Failing that, can one access in a read-only way the image width and height (set
> by Wxxx, +Hxxx at the command line) in the .pov file?

  image_width and image_height keywords.

-- 
                                                          - Warp


Post a reply to this message

From: Doctor John
Subject: Re: Setting image width and height from .pov file
Date: 14 Apr 2010 07:48:39
Message: <4bc5ab97@news.povray.org>
Chris wrote:
> Is there any way to set the rendered image width and height (in pixels) from
> inside a .pov file?

Not that I know of :-(

> Failing that, can one access in a read-only way the image width and height (set
> by Wxxx, +Hxxx at the command line) in the .pov file?
> 

Do you mean the image_height and image_width keywords? You can use those
for just about anything. e.g.
#if (image_height>600)
do something
#else
do something different
#end

John
-- 
Cogito sum,|| wbu### [at] tznvypbz (rot'ed) || GPG Key Fingerprint:
ergo sum,  ||   These opinions are mine alone,   || 0D9BCF4CF1B71CA2F5F7
cogito     ||     others can find their own      || BFBBCBC34EDEAEFCE453


Post a reply to this message

From: Chris
Subject: Re: Setting image width and height from .pov file
Date: 14 Apr 2010 07:55:00
Message: <web.4bc5ace022ff149e1a7e3a8c0@news.povray.org>
Thanks guys.

-Chris


Post a reply to this message

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