POV-Ray : Newsgroups : povray.unofficial.patches : A question on image_width : Re: A question on image_width Server Time
2 Sep 2024 04:17:42 EDT (-0400)
  Re: A question on image_width  
From: Mr  Art
Date: 19 May 2000 02:04:23
Message: <3924D8FA.213C663C@gci.net>
In the search to get the scene file to recognize
Official from Mega I found this:

#version official 3.1;
camera	{location <0,.3,-1> right image_height/image_width*x look_at
<0,.2,0> angle 40 rotate -y*30}
sphere  {0,0 pigment {rgb 0}}

still renders in MegaPOV!

'image_height' and 'image_width' are not official but are not
disabled with the #version statement. Even without the
#version statement they are active.

Is this a bug or a feature? :)

"Mr. Art" wrote:
> 
> Are the keywords image_width and image_height functions
> or variables? I had assumed that the values were set
> during the parse processes and made to be variables.
> So I tried this:
> #ifndef (image_width)
>      #declare image_width=4;
>      #declare image_height=3;
> #end
> 
> And got this
> error: undeclared identifier expected but float function
> 'image_width' found instead.
> 
> All the docs had said was they were keywords.
> 
> I had wanted to set the values if I were using
> Official POV. Is there any way to do this?
> Maybe with a check of version....
> 
> Think I found my answer. Thanks for listening.
> 
> Mr. Art


Post a reply to this message

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