POV-Ray : Newsgroups : povray.general : ImageWidth not declared? : Re: ImageWidth not declared? Server Time
16 Apr 2024 19:33:41 EDT (-0400)
  Re: ImageWidth not declared?  
From: William F Pokorny
Date: 15 Jan 2018 11:27:45
Message: <5a5cd681$1@news.povray.org>
On 01/15/2018 11:13 AM, Robert Kennedy wrote:
> So it's been a few years since I last used Povray, and I started on a scene
> today...only for my first command to throw an error.  Here's the source:
> 
> camera {
>   location <3, 1, 3>
>   look_at 0
>   right x*ImageWidth/ImageHeight
>   up y
>   }
> 
> Here's the error:
> 
> Persistence of Vision(tm) Ray Tracer Version 3.7.0.unofficial (g++ 5.2.1 @
>   i686-pc-linux-gnu)
> 
> File 'what.pov' line 4: Parse Error: Expected 'numeric expression', undeclared
>   identifier 'ImageWidth' found instead
> Fatal error in parser: Cannot parse input.
> Render failed
> 
> I verified the format by comparing it to the official documentation.  Checking
> further, I found that ImageHeight throws the same error.  As I said, it's been a
> few years.  Has somebody decided that ImageWidth and ImageHeight no longer need
> to exist?  Or have I forgotten something?
> 
> 
Try:

right x*image_width/image_height

All built in POV-Ray keywords are lower case. I find myself using the 
online keywords index all the time. You can find it at:

http://wiki.povray.org/content/Reference:Keywords

Bill P.


Post a reply to this message

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